Przeglądaj źródła

Intégration de l'option "use_credit_checked_default"

refactoring
Guillaume Bourgeois 5 lat temu
rodzic
commit
18dc7d0c21
2 zmienionych plików z 2 dodań i 3 usunięć
  1. +1
    -0
      producer/controllers/OrderController.php
  2. +1
    -3
      producer/web/js/vuejs/order-order.js

+ 1
- 0
producer/controllers/OrderController.php Wyświetl plik

@@ -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 Wyświetl plik

@@ -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) {

Ładowanie…
Anuluj
Zapisz