Openbravo Issue Tracking System - POS2
View Issue Details
0052833POS2POSpublic2023-06-22 14:192023-06-23 09:51
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
23Q1.423Q1.4 
No
0052833: Using a payment method defined as a safebox the check to ensure that enough cash is available for a return should be skipped
Using a payment method defined as a safebox the check to ensure that enough cash is available for a return should be skipped
In POS2 environemnt using VBS-2 terminal
Configure system to use safeboxes
(touchpoint type -> Use safe boxes)
(Touchpoint type - payment method (cash)) -> defined as safebox

Do login in POS
Select a safebox in the cashup
Review the starting cash of the payment method to make sure it is 0 for cash
(OB.App.State.getState().Cashup.cashPaymentMethodInfo)
Do a sale of Insect Repellent 14.50 paying by cash
Review the payment method to make sure it is 0 for cash and collections are 14.50
(OB.App.State.getState().Cashup.cashPaymentMethodInfo)
Try to do a return of the insect repellent. When payment is done by cash no issues -> OK
Remove the payment and go back
Change the price of the product to 15
Go to pay and add the negative payment by cash
Error is shown because there is no enough cash -> Error

For safeboxes we can't know the content of the safebox so this check should not be done

For safeboxes we can't know the content of the safebox so this check should not be done
No tags attached.
blocks defect 0052831 closed guilleaer Using a payment method defined as a safebox the check to ensure that enough cash is available for a return should be skipped 
Issue History
2023-06-22 14:19guilleaerTypedefect => backport
2023-06-22 14:19guilleaerTarget Version => 23Q1.4
2023-06-22 18:54hgbotNote Added: 0151516
2023-06-23 09:51hgbotResolutionopen => fixed
2023-06-23 09:51hgbotStatusscheduled => closed
2023-06-23 09:51hgbotFixed in Version => 23Q1.4
2023-06-23 09:51hgbotNote Added: 0151545
2023-06-23 09:51hgbotNote Added: 0151546

Notes
(0151516)
hgbot   
2023-06-22 18:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1915 [^]
(0151545)
hgbot   
2023-06-23 09:51   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 593866cb17a0f5058b6922aba7c760b53bb2b483
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 23-06-2023 07:51:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/593866cb17a0f5058b6922aba7c760b53bb2b483 [^]

fixed ISSUE-52833: Payment methods defined as safe boxes should not check cash...

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/processPayment.js
---
(0151546)
hgbot   
2023-06-23 09:51   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1915 [^]