diff --git a/src/components/ADempiere/Form/VPOS/Order/index.vue b/src/components/ADempiere/Form/VPOS/Order/index.vue index 4738975aec0..e7a47f99b7c 100644 --- a/src/components/ADempiere/Form/VPOS/Order/index.vue +++ b/src/components/ADempiere/Form/VPOS/Order/index.vue @@ -145,13 +145,14 @@ popper-class="el-popper-info" placement="right-start" trigger="click" + width="300" :title="$t('form.productInfo.productInformation')" > - +
@@ -175,12 +176,14 @@ {{ $t('form.productInfo.description') }}: {{ scope.row.product.description }}
-
+
{{ $t('form.productInfo.price') }}: - {{ formatPrice(scope.row.product.priceActual, pointOfSalesCurrency.iSOCode) }} + {{ formatPrice(scope.row.priceList, pointOfSalesCurrency.iSOCode) }}
- {{ $t('form.productInfo.taxAmount') }}: - {{ scope.row.taxIndicator }} + {{ scope.row.taxRate.name }} +
+ {{ $t('form.productInfo.grandTotal') }}: + {{ formatPrice((scope.row.priceList * scope.row.taxRate.rate / 100) + scope.row.priceList, pointOfSalesCurrency.iSOCode) }}
{{ $t('form.productInfo.quantityAvailable') }}: {{ formatQuantity(scope.row.quantityOrdered) }} @@ -979,7 +982,7 @@ export default { diff --git a/src/components/ADempiere/Form/VPOS/posMixin.js b/src/components/ADempiere/Form/VPOS/posMixin.js index ca244016fbe..5b7dfd75181 100644 --- a/src/components/ADempiere/Form/VPOS/posMixin.js +++ b/src/components/ADempiere/Form/VPOS/posMixin.js @@ -548,31 +548,29 @@ export default { return this.formatPrice(this.currentOrder.grandTotal - this.currentOrder.totalLines, currency) }, deleteOrderLine(lineSelection) { - if (this.isPosRequiredPin) { - if (this.allowsModifyQuantity) { - deleteOrderLine({ - orderLineUuid: lineSelection.uuid + if (this.currentPointOfSales.isAllowsModifyQuantity) { + deleteOrderLine({ + orderLineUuid: lineSelection.uuid + }) + .then(response => { + this.$store.dispatch('reloadOrder', { orderUuid: this.$store.getters.posAttributes.currentPointOfSales.currentOrder.uuid }) }) - .then(response => { - this.$store.dispatch('reloadOrder', { orderUuid: this.$store.getters.posAttributes.currentPointOfSales.currentOrder.uuid }) - }) - .catch(error => { - console.error(error.message) - this.$message({ - type: 'error', - message: error.message, - showClose: true - }) + .catch(error => { + console.error(error.message) + this.$message({ + type: 'error', + message: error.message, + showClose: true }) - } else { - const attributePin = { - ...lineSelection, - type: 'deleteLine', - label: this.$t('form.pos.pinMessage.delete') - } - this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true }) - this.visible = true + }) + } else { + const attributePin = { + ...lineSelection, + type: 'deleteLine', + label: this.$t('form.pos.pinMessage.delete') } + this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true }) + this.visible = true } }, subscribeChanges() { diff --git a/src/lang/ADempiere/en.js b/src/lang/ADempiere/en.js index cb3e3796e8d..890e33999f5 100644 --- a/src/lang/ADempiere/en.js +++ b/src/lang/ADempiere/en.js @@ -548,7 +548,7 @@ export default { taxAmount: 'Tax Amount', grandTotal: 'Grand Total', grandTotalConverted: 'Grand Total Converted', - quantityAvailable: 'Quantity Avalible', + quantityAvailable: 'Available', upc: 'UPC / EAN' }, guideSteps: { diff --git a/src/lang/ADempiere/es.js b/src/lang/ADempiere/es.js index 7c701801591..57918408f55 100644 --- a/src/lang/ADempiere/es.js +++ b/src/lang/ADempiere/es.js @@ -524,7 +524,7 @@ export default { taxAmount: 'Monto de Impuesto', grandTotal: 'Total General', grandTotalConverted: 'Gran Total Convertido', - quantityAvailable: 'Cantidad Disponible', + quantityAvailable: 'Disponible', upc: 'Código de Barras' }, guideSteps: {