diff --git a/components/ADempiere/Form/VPOS/Order/index.vue b/components/ADempiere/Form/VPOS/Order/index.vue index cfadbefd..ebb1f962 100644 --- a/components/ADempiere/Form/VPOS/Order/index.vue +++ b/components/ADempiere/Form/VPOS/Order/index.vue @@ -182,7 +182,7 @@ placement="right" trigger="click" :title="$t('form.pos.tableProduct.editQuantities')" - width="600" + width="700" @hide="showFieldLine = false" > - - - + + - + {{ item.label }} - {{ item.qty }} + {{ item.sumaryQty }} @@ -250,10 +241,14 @@ export default { defaultLineWarehouse = listWarehouseLine.find(stock => stock.uuid === this.currentLine.warehouse.uuid) } if (this.isEmptyValue(defaultLineWarehouse)) { - const list = listWarehouseLine.push({ + listWarehouseLine.push({ ...this.currentLine.warehouse, - qty: 0 + label: this.currentLine.warehouse.name, + id: this.currentLine.warehouse.id, + uuid: this.currentLine.warehouse.uuid, + sumaryQty: 0 }) + const list = listWarehouseLine return list } return listWarehouseLine @@ -410,6 +405,22 @@ export default { orderLineUuid: this.currentLine.uuid, warehouseUuid: value }) + .then(response => { + this.$message({ + type: 'success', + message: 'Acción a realizar', + showClose: true + }) + }) + .catch(error => { + this.stock = this.currentLine.warehouse.uuid + console.warn(error.message) + this.$message({ + type: 'error', + message: error.message, + showClose: true + }) + }) }, subscribeChanges() { return this.$store.subscribe((mutation, state) => {