Browse Source

Intégration de l'option "use_credit_checked_default"

dev
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

'order_infos' => $producer->order_infos, 'order_infos' => $producer->order_infos,
'credit' => $producer->credit, 'credit' => $producer->credit,
'credit_functioning' => $producer->credit_functioning, 'credit_functioning' => $producer->credit_functioning,
'use_credit_checked_default' => $producer->use_credit_checked_default
] ; ] ;
// Distributions // Distributions

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

.then(function(response) { .then(function(response) {
app.producer = response.data.producer ; app.producer = response.data.producer ;
app.credit = response.data.credit ; app.credit = response.data.credit ;
app.useCredit = response.data.producer.use_credit_checked_default ;
app.calendar.attrs = [] ; app.calendar.attrs = [] ;
app.calendar.availableDates = [] ; app.calendar.availableDates = [] ;
var distributions = response.data.distributions ; var distributions = response.data.distributions ;


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

Loading…
Cancel
Save