|
|
@@ -681,12 +681,12 @@ Vue.component('modal', { |
|
|
|
}) |
|
|
|
|
|
|
|
Vue.component('order-form',{ |
|
|
|
props: ['date', 'dateFormat', 'pointsSale','meansPayment', 'users', 'products', 'order', 'producer', 'loadingUpdateProductOrder'], |
|
|
|
props: ['date', 'dateFormat', 'pointsSale', 'idActivePointSale', 'meansPayment', 'users', 'products', 'order', 'producer', 'loadingUpdateProductOrder'], |
|
|
|
emits: ['updateProductPrice'], |
|
|
|
data: function() { |
|
|
|
return { |
|
|
|
errors: [], |
|
|
|
idPointSale: 0, |
|
|
|
idPointSale: 0, |
|
|
|
idUser: 0, |
|
|
|
username : '', |
|
|
|
comment: '', |
|
|
@@ -813,7 +813,9 @@ Vue.component('order-form',{ |
|
|
|
idUser: app.order.id_user, |
|
|
|
}}) |
|
|
|
.then(function(response) { |
|
|
|
app.order.id_point_sale = response.data.id_favorite_point_sale ; |
|
|
|
if(app.idActivePointSale == 0) { |
|
|
|
app.order.id_point_sale = response.data.id_favorite_point_sale ; |
|
|
|
} |
|
|
|
app.updateProductOrderPrices(true) ; |
|
|
|
}) ; |
|
|
|
}, |