Fixed error with undefined value for current pos
parent
1cbe1c264c
commit
ed461de521
|
@ -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
|
||||||
|
if (!this.isEmptyValue(this.currentPoint)) {
|
||||||
const bPartnerPOS = this.currentPoint.templateBusinessPartner.uuid
|
const bPartnerPOS = this.currentPoint.templateBusinessPartner.uuid
|
||||||
// Does not send values to server, when empty values are set or
|
// Does not send values to server, when empty values are set or
|
||||||
// if BPartner set equal to BPartner POS template
|
// if BPartner set equal to BPartner POS template
|
||||||
if (this.isEmptyValue(bPartnerValue) || bPartnerValue === bPartnerPOS) {
|
if (this.isEmptyValue(bPartnerValue) || bPartnerValue === bPartnerPOS) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.updateOrder(mutation.payload)
|
this.updateOrder(mutation.payload)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue