Sfoglia il codice sorgente

Intégration de l'option "use_credit_checked_default"

refactoring
parent
commit
18dc7d0c21
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +1
    -0
      producer/controllers/OrderController.php
  2. +1
    -3
      producer/web/js/vuejs/order-order.js

+ 1
- 0
producer/controllers/OrderController.php Vedi 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 Vedi 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…
Annulla
Salva