Browse Source

Intégration de l'option "use_credit_checked_default"

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
18dc7d0c21
2 changed files with 2 additions and 3 deletions
  1. +1
    -0
      producer/controllers/OrderController.php
  2. +1
    -3
      producer/web/js/vuejs/order-order.js

+ 1
- 0
producer/controllers/OrderController.php View File

@@ -455,6 +455,7 @@ class OrderController extends ProducerBaseController
'order_infos' => $producer->order_infos,
'credit' => $producer->credit,
'credit_functioning' => $producer->credit_functioning,
'use_credit_checked_default' => $producer->use_credit_checked_default
] ;
// Distributions

+ 1
- 3
producer/web/js/vuejs/order-order.js View File

@@ -110,7 +110,7 @@ var app = new Vue({
.then(function(response) {
app.producer = response.data.producer ;
app.credit = response.data.credit ;
app.useCredit = response.data.producer.use_credit_checked_default ;
app.calendar.attrs = [] ;
app.calendar.availableDates = [] ;
var distributions = response.data.distributions ;
@@ -248,8 +248,6 @@ var app = new Vue({

validatePointSale: function(idPointSale) {
this.pointSaleActive = this.getPointSale(idPointSale) ;
this.useCredit = true ;
this.changeStep('products') ;
},
productQuantityClick: function(product, quantity) {

Loading…
Cancel
Save