diff --git a/src/api/ADempiere/form/point-of-sales.js b/src/api/ADempiere/form/point-of-sales.js
index b11c8e9b..121c96c5 100644
--- a/src/api/ADempiere/form/point-of-sales.js
+++ b/src/api/ADempiere/form/point-of-sales.js
@@ -910,7 +910,7 @@ export function listTenderTypes({
posUuid
}) {
return request({
- url: `${config.pointOfSales.endpoint}/available-tender-types`,
+ url: `${config.pointOfSales.endpoint}/available-payment-methods`,
method: 'get',
params: {
pos_uuid: posUuid
diff --git a/src/components/ADempiere/Form/VPOS/Collection/fieldsListCollection.js b/src/components/ADempiere/Form/VPOS/Collection/fieldsListCollection.js
index 10a3d38a..68877aaa 100644
--- a/src/components/ADempiere/Form/VPOS/Collection/fieldsListCollection.js
+++ b/src/components/ADempiere/Form/VPOS/Collection/fieldsListCollection.js
@@ -61,7 +61,7 @@ export default [
handleActionKeyPerformed: true,
handleActionPerformed: true,
handleContentSelection: true,
- displayLogic: `@TenderType@<>'X'`,
+ displayLogic: `@TenderType@<>'X'&@TenderType@<>'Z'`,
size: 24,
isActiveLogics: true,
isMandatory: true
@@ -168,5 +168,21 @@ export default [
isActiveLogics: true,
isMandatory: true
}
+ },
+ {
+ elementColumnName: 'EMail',
+ columnName: 'EMail',
+ tableName: 'AD_user',
+ isFromDictionary: true,
+ overwriteDefinition: {
+ sequence: 4,
+ handleActionKeyPerformed: true,
+ handleContentSelection: true,
+ handleActionPerformed: true,
+ size: 24,
+ displayLogic: `@TenderType@=='Z'`,
+ isActiveLogics: true,
+ isMandatory: true
+ }
}
]
diff --git a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/index.vue b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/index.vue
index ef19712a..f1a32172 100644
--- a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/index.vue
+++ b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/index.vue
@@ -32,6 +32,52 @@
{{ $t('form.pos.collect.overdrawnInvoice.adjustDocument') }}
+
+
+ {{ $t('form.pos.collect.overdrawnInvoice.above') }}
+
+
+ {{ selectionTypeRefund.name }}
+
+
+
+ {{ $t('form.pos.collect.overdrawnInvoice.dailyLimit') }}: {{ formatPrice(maximumDailyRefundAllowed, refundReferenceCurrency) }}
+ {{ $t('form.pos.collect.overdrawnInvoice.customerLimit') }}: {{ formatPrice(maximumRefundAllowed, refundReferenceCurrency) }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ payment.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('form.pos.collect.overdrawnInvoice.above') }}
@@ -72,7 +118,7 @@
-
+
@@ -84,7 +130,7 @@
@@ -128,32 +174,17 @@
@@ -222,7 +253,7 @@ export default {
computed: {
componentRender() {
let typePay
- switch (this.selectionTypeRefund.key) {
+ switch (this.selectionTypeRefund.tender_type) {
case 'P':
typePay = () => import('./paymentTypeChange/MobilePayment/index')
break
@@ -243,7 +274,7 @@ export default {
},
renderComponentContainer() {
let container
- switch (this.selectionTypeRefund.key) {
+ switch (this.selectionTypeRefund.tender_type) {
case 'P':
container = 'MobilePayment'
break
@@ -328,12 +359,20 @@ export default {
return this.$store.getters.getFieldsListEmptyMandatory({ containerUuid: 'OverdrawnInvoice', formatReturn: 'name' })
},
paymentTypeList() {
+ return this.$store.getters.getPaymentTypeList.filter(type => type.is_allowed_to_refund_open)
+ },
+ paymentTypeListRefund() {
return this.$store.getters.getPaymentTypeList.filter(type => type.is_allowed_to_refund)
},
refundLoaded() {
return this.$store.getters.getRefundLoaded
}
},
+ watch: {
+ option(value) {
+ this.selectionTypeRefund = {}
+ }
+ },
mounted() {
this.selectionTypeRefund = {}
},
@@ -342,9 +381,12 @@ export default {
imageCard(typeRefund) {
let image
switch (typeRefund) {
- case 'P':
+ case 'D':
image = 'MobilePayment.jpg'
break
+ case 'P':
+ image = 'Mobile.jpg'
+ break
case 'X':
image = 'Cash.jpg'
break
@@ -396,6 +438,7 @@ export default {
})
this.$store.dispatch('addRefundLoaded', values)
this.selectionTypeRefund = {}
+ this.success()
},
success() {
const customerDetails = []
@@ -458,13 +501,6 @@ export default {
showClose: true
})
})
- .catch(error => {
- this.$message({
- type: 'error',
- message: error.message,
- showClose: true
- })
- })
this.$store.commit('dialogoInvoce', { show: false, success: true })
} else {
this.$message({
@@ -476,8 +512,22 @@ export default {
}
break
default:
- this.completePreparedOrder(posUuid, orderUuid, payments)
- this.$store.commit('dialogoInvoce', { show: false, success: true })
+ console.log(this.$store.getters.posAttributes.currentPointOfSales.isPosRequiredPin)
+ if (this.$store.getters.posAttributes.currentPointOfSales.isPosRequiredPin) {
+ const attributePin = {
+ posUuid,
+ orderUuid,
+ payments,
+ action: 'openBalanceInvoice',
+ type: 'actionPos',
+ label: this.$t('form.pos.pinMessage.invoiceOpen')
+ }
+ this.visible = true
+ this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true })
+ } else {
+ this.completePreparedOrder(posUuid, orderUuid, payments)
+ this.$store.commit('dialogoInvoce', { show: false, success: true })
+ }
break
}
},
diff --git a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/fieldsListACH.js b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/fieldsListACH.js
index c783a33b..0e0eaca0 100644
--- a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/fieldsListACH.js
+++ b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/fieldsListACH.js
@@ -25,7 +25,7 @@ export default [
tabindex: '1',
isFromDictionary: true,
overwriteDefinition: {
- sequence: 0,
+ sequence: 1,
isCustomField: true,
size: 24,
isMandatory: true
@@ -38,7 +38,7 @@ export default [
isFromDictionary: true,
tabindex: '0',
overwriteDefinition: {
- sequence: 1,
+ sequence: 0,
isCustomField: true,
size: 24,
isMandatory: true
@@ -50,7 +50,7 @@ export default [
columnName: 'C_Bank_ID',
isFromDictionary: true,
overwriteDefinition: {
- sequence: 6,
+ sequence: 3,
handleActionKeyPerformed: true,
handleActionPerformed: true,
handleContentSelection: true,
@@ -66,7 +66,7 @@ export default [
columnName: 'AccountNo',
isFromDictionary: true,
overwriteDefinition: {
- sequence: 8,
+ sequence: 4,
handleActionKeyPerformed: true,
handleContentSelection: true,
handleActionPerformed: true,
@@ -81,7 +81,7 @@ export default [
tableName: 'AD_user',
isFromDictionary: true,
overwriteDefinition: {
- sequence: 9,
+ sequence: 2,
handleActionKeyPerformed: true,
handleContentSelection: true,
handleActionPerformed: true,
@@ -96,7 +96,7 @@ export default [
columnName: 'PayAmt',
isFromDictionary: true,
overwriteDefinition: {
- sequence: 3,
+ sequence: 6,
handleContentSelection: true,
handleActionPerformed: true,
size: 24,
diff --git a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/index.vue b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/index.vue
index ceb58a29..2621dc9d 100644
--- a/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/index.vue
+++ b/src/components/ADempiere/Form/VPOS/Collection/overdrawnInvoice/paymentTypeChange/ACH/index.vue
@@ -32,10 +32,11 @@
:metadata-field="field"
/>
-
+
-
+
-
+
{{ item.name }}
@@ -80,7 +81,7 @@
-
+
@@ -174,6 +175,7 @@
{{ $t('form.productInfo.code') }}: {{ scope.row.product.value }}
{{ $t('form.productInfo.name') }}: {{ scope.row.product.name }}
{{ $t('form.productInfo.description') }}: {{ scope.row.product.description }}
+ {{ $t('form.productInfo.UM') }}: {{ scope.row.product.uomName }}
diff --git a/src/components/ADempiere/Form/VPOS/posMixin.js b/src/components/ADempiere/Form/VPOS/posMixin.js
index 5b7dfd75..1721d16a 100644
--- a/src/components/ADempiere/Form/VPOS/posMixin.js
+++ b/src/components/ADempiere/Form/VPOS/posMixin.js
@@ -295,6 +295,8 @@ export default {
break
case 'openBalanceInvoice':
this.$store.commit('dialogoInvoce', { show: true, type: 2 })
+ this.$store.commit('dialogoInvoce', { show: false })
+ this.refundAllowed(action.posUuid, action.orderUuid, action.payments)
break
}
}
diff --git a/src/image/ADempiere/pos/typePayment/Mobile.jpg b/src/image/ADempiere/pos/typePayment/Mobile.jpg
new file mode 100644
index 00000000..a2c8e869
Binary files /dev/null and b/src/image/ADempiere/pos/typePayment/Mobile.jpg differ
diff --git a/src/lang/ADempiere/en.js b/src/lang/ADempiere/en.js
index 79b42eef..d964f846 100644
--- a/src/lang/ADempiere/en.js
+++ b/src/lang/ADempiere/en.js
@@ -551,7 +551,8 @@ export default {
grandTotal: 'Grand Total',
grandTotalConverted: 'Grand Total Converted',
quantityAvailable: 'Available',
- upc: 'UPC / EAN'
+ upc: 'UPC / EAN',
+ UM: 'UM'
},
guideSteps: {
productValue: {
diff --git a/src/lang/ADempiere/es.js b/src/lang/ADempiere/es.js
index 4191b921..087a5288 100644
--- a/src/lang/ADempiere/es.js
+++ b/src/lang/ADempiere/es.js
@@ -527,7 +527,8 @@ export default {
grandTotal: 'Total General',
grandTotalConverted: 'Gran Total Convertido',
quantityAvailable: 'Disponible',
- upc: 'Código de Barras'
+ upc: 'Código de Barras',
+ UM: 'UM'
},
guideSteps: {
productValue: {