Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Feb 17, 2022
1 parent 85d5a81 commit 43d6a61
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/ADempiere/Form/VPOS/Collection/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -876,38 +876,38 @@ export default {
containerUuid,
columnName: 'PayAmt'
})
const paymentDate = this.$store.getters.getValueOfField({
containerUuid,
columnName: 'DateTrx'
})
const tenderTypeCode = this.currentAvailablePaymentMethods.tender_type
const paymentMethodUuid = this.currentAvailablePaymentMethods.uuid
const referenceNo = this.$store.getters.getValueOfField({
containerUuid,
columnName: 'ReferenceNo'
})
const values = this.$store.getters.getValuesView({
containerUuid,
format: 'object'
})
const params = { referenceNo: values.DocumentNo, description: values.Description, paymentDate: values.DateTrx }
if (this.sendToServer) {
this.$store.dispatch('setPaymentBox', {
...params,
posUuid,
orderUuid,
bankUuid,
referenceNo,
amount: this.round(this.amontSend, this.standardPrecision),
convertedAmount: this.amontSend * this.dayRate.divideRate,
paymentDate,
tenderTypeCode,
paymentMethodUuid,
currencyUuid: this.dayRate.currencyTo.uuid
})
} else {
this.$store.dispatch('createPayments', {
...params,
posUuid,
orderUuid,
bankUuid,
referenceNo,
amount: this.round(this.amontSend, this.standardPrecision),
convertedAmount: this.amontSend * this.dayRate.divideRate,
paymentDate,
paymentMethodUuid,
tenderTypeCode,
currencyUuid: this.dayRate.currencyTo.uuid
Expand Down

0 comments on commit 43d6a61

Please sign in to comment.