1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

fix: Delete order line and edit quantity. (#530)

Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@oulook.com>
This commit is contained in:
Edwin Betancourt 2020-10-28 18:35:43 -04:00 committed by GitHub
parent 6e54d93b9b
commit a54eb50793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -268,7 +268,7 @@ export function requestCreateOrderLine({
}
// updateOrderLine orders from pos uuid
export function updateOrderLine({
export function requestUpdateOrderLine({
orderLineUuid,
description,
quantity,
@ -278,7 +278,7 @@ export function updateOrderLine({
return requestRest({
url: '/pos/update-order-line',
data: {
is_add_quantity: true,
// is_add_quantity: true,
order_line_uuid: orderLineUuid,
description,
quantity,
@ -299,7 +299,7 @@ export function requestDeleteOrderLine({
orderLineUuid
}) {
return requestRest({
url: '/pos/create-order-line',
url: '/pos/delete-order-line',
data: {
order_line_uuid: orderLineUuid
}

View File

@ -1,6 +1,6 @@
import {
requestCreateOrderLine,
updateOrderLine,
requestUpdateOrderLine,
requestDeleteOrderLine
} from '@/api/ADempiere/form/point-of-sales.js'
import { formatPercent } from '@/utils/ADempiere/valueFormat.js'
@ -107,7 +107,7 @@ export default {
break
}
updateOrderLine({
requestUpdateOrderLine({
orderLineUuid: this.currentOrderLine.uuid,
quantity,
price,