Skip to content

Commit

Permalink
Switching from document type (#987)
Browse files Browse the repository at this point in the history
* Switching from document type

* minimal changes

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
  • Loading branch information
elsiosanchez and elsiosanchez authored Jul 14, 2021
1 parent 80b9e9e commit fe28675
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
6 changes: 4 additions & 2 deletions src/api/ADempiere/form/price-checking.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export function getProductPrice({
name,
posUuid,
businessPartnerUuid,
validFrom
validFrom,
priceListUuid
}) {
return request({
url: `${config.priceChecking.endpoint}/product-price`,
Expand All @@ -39,7 +40,8 @@ export function getProductPrice({
name,
pos_uuid: posUuid,
business_partner_uuid: businessPartnerUuid,
valid_from: validFrom
valid_from: validFrom,
price_list_uuid: priceListUuid
}
})
.then(productPriceResponse => {
Expand Down
9 changes: 4 additions & 5 deletions src/components/ADempiere/Form/VPOS/Order/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
</el-col>
<el-col :span="5" :style="styleTab">
<el-form-item>
<br>
<template slot="label" />
<el-dropdown
v-if="!isEmptyValue(currentWarehouse)"
v-if="!isEmptyValue(currentDocumentType)"
trigger="click"
class="info-pos"
style="padding-top: 10%;font-size: 15px;color: black;"
@command="changeDocumentType"
>
<span>
<svg-icon icon-class="tree" />
<icon class="el-icon-document" />
<b style="cursor: pointer"> {{ currentDocumentType.name }} </b>
</span>
<el-dropdown-menu slot="dropdown">
Expand All @@ -75,7 +75,6 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<br>
</el-form-item>
</el-col>
<el-col :span="isEmptyValue(currentOrder) ? 1 : 4" :style="isShowedPOSKeyLayout ? 'padding: 0px; margin-top: 3.%;' : 'padding: 0px; margin-top: 2.4%;'">
Expand Down
11 changes: 0 additions & 11 deletions src/components/ADempiere/Form/VPOS/posMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,17 +359,6 @@ export default {
message: error.message,
showClose: true
})

this.$store.commit('updateValueOfField', {
containerUuid: 'Products-Price-List',
columnName: 'ProductValue',
value: `${searchProduct}`
})

this.$store.commit('showListProductPrice', {
attribute: 'isShowPopoverField',
isShowed: true
})
})
.finally(() => {
this.$store.commit('updateValuesOfContainer', {
Expand Down
15 changes: 11 additions & 4 deletions src/store/modules/ADempiere/pointOfSales/order/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ export default {
createOrder({ commit, dispatch, rootGetters }, {
posUuid,
customerUuid,
documentTypeUuid
documentTypeUuid,
warehouseUuid
}) {
return createOrder({
posUuid,
customerUuid,
warehouseUuid: rootGetters.currentWarehouse.uuid,
documentTypeUuid
documentTypeUuid,
warehouseUuid
})
.then(order => {
commit('setOrder', order)
Expand Down Expand Up @@ -115,7 +116,13 @@ export default {
}) {
createOrderLine({
orderUuid,
productUuid
warehouseUuid,
productUuid,
chargeUuid,
description,
quantity,
price,
discountRate
})
.then(orderLine => {
dispatch('updateOrderLines', orderLine)
Expand Down

0 comments on commit fe28675

Please sign in to comment.