Skip to content

Commit

Permalink
Fix: POS Error Creating Sales Order With Document Type (adempiere#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Oct 2, 2023
1 parent 1be028d commit 6b62490
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/components/ADempiere/Form/VPOS/Options/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2386,10 +2386,10 @@ export default {
containerUuid: this.$route.meta.uuid,
columnName: 'C_BPartner_ID'
})
const documentTypeUuid = this.$store.getters.getValueOfField({
containerUuid: this.$route.meta.uuid,
columnName: 'C_DocTypeTarget_ID_UUID'
})
// const documentTypeUuid = this.$store.getters.getValueOfField({
// containerUuid: this.$route.meta.uuid,
// columnName: 'C_DocTypeTarget_ID_UUID'
// })
let customerUuid = isEmptyValue(bpartner) ? this.$store.getters.getNewCustomer.uuid : bpartner
// TODO: Validate this static identifier
if (isEmptyValue(customerUuid) || id === 1000006) {
Expand All @@ -2399,7 +2399,7 @@ export default {
posUuid,
customerUuid: this.currentPointOfSales.templateCustomer.uuid,
salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid,
documentTypeUuid
documentTypeUuid: this.currentPointOfSales.documentType.uuid
})
.then(response => {
this.$store.dispatch('reloadOrder', { orderUuid: response.uuid })
Expand Down
10 changes: 5 additions & 5 deletions src/components/ADempiere/Form/VPOS/OrderList/fastOrder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,10 @@ export default {
}
this.$store.commit('setShowPOSCollection', false)
const posUuid = this.currentPointOfSales.uuid
const documentTypeUuid = this.$store.getters.getValueOfField({
containerUuid: this.$route.meta.uuid,
columnName: 'C_DocTypeTarget_ID_UUID'
})
// const documentTypeUuid = this.$store.getters.getValueOfField({
// containerUuid: this.$route.meta.uuid,
// columnName: 'C_DocTypeTarget_ID_UUID'
// })
const bpartner = this.$store.getters.getValueOfField({
containerUuid: this.$route.meta.uuid,
columnName: 'DisplayColumn_C_BPartner_UUID' // this.parentMetadata.columnName
Expand All @@ -701,7 +701,7 @@ export default {
customerUuid: this.currentPointOfSales.templateCustomer.uuid,
salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid,
priceListUuid: this.$store.getters.currentPriceList.uuid,
documentTypeUuid
documentTypeUuid: this.currentPointOfSales.documentType.uuid
})
.then(response => {
this.$store.commit('setCurrentPriceList', response.priceList)
Expand Down

0 comments on commit 6b62490

Please sign in to comment.