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