1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-12 22:29:59 +08:00

Fixed error with undefined value for current pos

This commit is contained in:
Yamel Senih 2020-11-30 21:09:39 -04:00
parent 1cbe1c264c
commit ed461de521

View File

@ -189,7 +189,7 @@ export default {
let customerUuid let customerUuid
if (update.columnName === 'C_BPartner_ID_UUID') { if (update.columnName === 'C_BPartner_ID_UUID') {
customerUuid = update.value customerUuid = update.value
if (this.isEmptyValue(customerUuid)) { if (this.isEmptyValue(customerUuid) && !this.isEmptyValue(this.currentPoint)) {
customerUuid = this.currentPoint.templateBusinessPartner.uuid customerUuid = this.currentPoint.templateBusinessPartner.uuid
} }
} }
@ -426,13 +426,14 @@ export default {
case 'C_BPartner_ID_UUID': { case 'C_BPartner_ID_UUID': {
const bPartnerValue = mutation.payload.value const bPartnerValue = mutation.payload.value
const bPartnerPOS = this.currentPoint.templateBusinessPartner.uuid if (!this.isEmptyValue(this.currentPoint)) {
// Does not send values to server, when empty values are set or const bPartnerPOS = this.currentPoint.templateBusinessPartner.uuid
// if BPartner set equal to BPartner POS template // Does not send values to server, when empty values are set or
if (this.isEmptyValue(bPartnerValue) || bPartnerValue === bPartnerPOS) { // if BPartner set equal to BPartner POS template
break if (this.isEmptyValue(bPartnerValue) || bPartnerValue === bPartnerPOS) {
break
}
} }
this.updateOrder(mutation.payload) this.updateOrder(mutation.payload)
break break
} }