Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
  • Loading branch information
elsiosanchez and elsiosanchez authored Feb 5, 2022
1 parent 130e4c2 commit b946e4d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/ADempiere/Form/VPOS/Collection/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,14 @@ export default {
return rate
},
addCollectToList() {
if (this.isEmptyValue(this.listCurrency)) {
this.$message({
type: 'error',
showClose: true,
message: this.$t('form.pos.collect.emptyRate')
})
return
}
const containerUuid = this.containerUuid
const posUuid = this.currentPointOfSales.uuid
const orderUuid = this.$store.getters.posAttributes.currentPointOfSales.currentOrder.uuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,14 @@ export default {
containerUuid: 'Cash-Opening',
format: 'object'
})
if (this.isEmptyValue(this.listCurrency)) {
this.$message({
type: 'error',
showClose: true,
message: this.$t('form.pos.collect.emptyRate')
})
return
}
const selectCurrency = this.listCurrency.find(payemnt => payemnt.iso_code === this.currentFieldCurrency)
const paymentMethodsPos = this.availablePaymentMethods.find(payemnt => payemnt.uuid === this.currentFieldPaymentMethods)
payment.currency = this.currentFieldCurrency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,14 @@ export default {
containerUuid: 'Cash-Withdrawal',
format: 'object'
})
if (this.isEmptyValue(this.listCurrency)) {
this.$message({
type: 'error',
showClose: true,
message: this.$t('form.pos.collect.emptyRate')
})
return
}
const selectCurrency = this.listCurrency.find(payemnt => payemnt.iso_code === this.currentFieldCurrency)
const paymentMethodsPos = this.availablePaymentMethods.find(payemnt => payemnt.uuid === this.currentFieldPaymentMethods)
payment.currency = this.currentFieldCurrency
Expand Down

0 comments on commit b946e4d

Please sign in to comment.