From 3a430340c1f81581f66ca34d263fa97e3e3a40c0 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Fri, 26 May 2023 19:19:18 +0330 Subject: [PATCH] fix(com-pwa): order_item_qty_add round to 80 --- uniquely/com-pwa/src/manager/controller/order.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uniquely/com-pwa/src/manager/controller/order.ts b/uniquely/com-pwa/src/manager/controller/order.ts index 99479b3f1..df81056fc 100644 --- a/uniquely/com-pwa/src/manager/controller/order.ts +++ b/uniquely/com-pwa/src/manager/controller/order.ts @@ -309,7 +309,12 @@ finiteStateMachineProvider.defineSignals('order_fsm', [ signalId: 'order_item_qty_add', callback: (event: ClickSignalType, fsmInstance): void => { const orderItem = event.detail; - orderItem.qty += config.order.pallet.boxSize; + if (orderItem.qty === 1) { + orderItem.qty = config.order.pallet.boxSize; + } + else { + orderItem.qty += config.order.pallet.boxSize; + } fsmInstance.transition('request_update'); }, },