Openbravo Issue Tracking System - POS2
View Issue Details
0052831POS2POSpublic2023-06-22 14:192023-06-23 09:51
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
23Q3 
approved
Gold
No
0052831: 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.
depends on backport 005283223Q2.2 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 
depends on backport 005283323Q1.4 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:19guilleaerNew Issue
2023-06-22 14:19guilleaerAssigned To => guilleaer
2023-06-22 14:19guilleaerOBNetwork customer => Gold
2023-06-22 14:19guilleaerTriggers an Emergency Pack => No
2023-06-22 14:19guilleaerStatusnew => scheduled
2023-06-22 14:38hgbotMerge Request Status => open
2023-06-22 14:38hgbotNote Added: 0151506
2023-06-23 08:56hgbotMerge Request Statusopen => approved
2023-06-23 09:51hgbotResolutionopen => fixed
2023-06-23 09:51hgbotStatusscheduled => closed
2023-06-23 09:51hgbotNote Added: 0151547
2023-06-23 09:51hgbotFixed in Version => 23Q3
2023-06-23 09:51hgbotNote Added: 0151548

Notes
(0151506)
hgbot   
2023-06-22 14:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1913 [^]
(0151547)
hgbot   
2023-06-23 09:51   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1913 [^]
(0151548)
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: 6602f9f24bb22b0cd39a4a2d1b67da572fa7e699
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 23-06-2023 07:51:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6602f9f24bb22b0cd39a4a2d1b67da572fa7e699 [^]

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

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/processPayment.js
---