diff --git a/src/components/ADempiere/Form/VPOS/Order/line/fieldsListLine.js b/src/components/ADempiere/Form/VPOS/Order/line/fieldsListLine.js index e9d13e4d..4ebf53a7 100644 --- a/src/components/ADempiere/Form/VPOS/Order/line/fieldsListLine.js +++ b/src/components/ADempiere/Form/VPOS/Order/line/fieldsListLine.js @@ -47,7 +47,6 @@ export default [ overwriteDefinition: { size: 24, sequence: 10, - isReadOnly: true, handleActionPerformed: true, handleContentSelection: true, handleActionKeyPerformed: true diff --git a/src/components/ADempiere/Form/VPOS/Order/line/index.vue b/src/components/ADempiere/Form/VPOS/Order/line/index.vue index a2b75cb7..52f56eb5 100644 --- a/src/components/ADempiere/Form/VPOS/Order/line/index.vue +++ b/src/components/ADempiere/Form/VPOS/Order/line/index.vue @@ -26,9 +26,53 @@ + + + + + + + + + + + {{ + isPosRequiredPin + }} + + + @@ -81,7 +125,25 @@ export default { isLoadedField: false, panelType: 'custom', fieldsListLine, - fieldsList: [] + fieldsList: [], + input: '', + visible: false + } + }, + computed: { + isModifyPrice() { + const pos = this.$store.getters.getCurrentPOS + if (!this.isEmptyValue(pos.isModifyPrice)) { + return this.$store.getters.getCurrentPOS.isModifyPrice + } + return false + }, + isPosRequiredPin() { + const pos = this.$store.getters.getCurrentPOS + if (!this.isEmptyValue(pos.isPosRequiredPin)) { + return this.$store.getters.getCurrentPOS.isPosRequiredPin + } + return false } }, watch: { @@ -89,7 +151,6 @@ export default { if (value && this.isEmptyValue(this.metadataList) && (this.dataLine.uuid === this.currentLine.uuid)) { this.setFieldsList() this.metadataList = this.setFieldsList() - this.metadataList.sort(this.sortFields) this.isLoadedField = true } if (value) { @@ -98,7 +159,6 @@ export default { quantityOrdered: this.currentLine.quantity, discount: this.currentLine.discountRate }) - this.metadataList.sort(this.sortFields) this.isLoadedField = true } } @@ -155,14 +215,8 @@ export default { }) } }, - sortFields(field, nextField) { - if (field.sequence < nextField.sequence) { - return 1 - } - if (field.sequence > nextField.sequence) { - return -1 - } - return 0 + closePing() { + this.$refs.ping[this.$refs.ping.length - 1].showPopper = false } } }