Openbravo Issue Tracking System - POS2
View Issue Details
0054028POS2POSpublic2023-11-26 19:222025-02-26 10:26
Daria_Sh 
sreehari 
normalminorhave not tried
scheduledopen 
5
 
 
No
0054028: Possible to process a refund using the 'Sell on Credit' option even if the Customer Current Balance is equal to 0
When a product is added to the order, the 'Convert to return' option is applied, and the order is refunded using the 'Sell on Credit' option, the customer's initial zero balance decreases by the order amount (resulting in a negative value), while the Available Credit amount for the customer increases by the order amount.

Apply the following setting to enable 'Sell on Credit' option
In the 'Channel Touchpoint Type' window
-Open 'POS2SD VBS POS2 Terminal Type' touchpoint
-Tick 'Allow Pay on Credit' checkbox 

In the 'Business Partner' window:
-Select 'Arturo Montoro' customer
-Specify the 'Credit Line Limit' = 10000' in the 'More Information' section
-Ensure Customer Balance is equal to 0.00
1.Go to POS2 (user:vallblanca/password:openbravo)
2.Push 'VBS Customer' button → Specify 'Arturo Montoro' → Push 'Search' button
3.Push 3 dots in the bottom of the Orders area → Select 'Convert to return' option
3.Add 'Base camp duffel 70L' product to the order → Push 'Refund' button
4.Click 'Sell on Credit' button
5.Push 'Yes, sell on Credit' on the pop-up
6.Go to Customers → Push 'View Details' option for the Arturo Montoro customer
7.Pay attention to the 'Available Credit' amount which is increased by the Order amount

Actual result: Possible to process a refund using the 'Sell on Credit' option even if the Customer Current Balance is equal to 0
Expected result: It should be restricted to process a refund using the 'Sell on Credit' option when the Customer Current Balance is equal to 0.00
No tags attached.
png Screenshot_1.png (73,461) 2023-11-26 19:26
https://issues.openbravo.com/file_download.php?file_id=19181&type=bug
png
Issue History
2023-11-26 19:22Daria_ShNew Issue
2023-11-26 19:22Daria_ShAssigned To => Retail
2023-11-26 19:22Daria_ShTriggers an Emergency Pack => No
2023-11-26 19:22Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27193#r27193
2023-11-26 19:26Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27194#r27194
2023-11-26 19:26Daria_ShFile Added: Screenshot_1.png
2025-02-02 12:39marvintmAssigned ToRetail => migueldejuana
2025-02-05 15:52migueldejuanaAssigned Tomigueldejuana => Daria_Sh
2025-02-05 15:52migueldejuanaAssigned ToDaria_Sh => guilleaer
2025-02-20 06:46sreehariAssigned Toguilleaer => sreehari
2025-02-20 06:46sreehariStatusnew => scheduled
2025-02-20 11:57hgbotNote Added: 0175967
2025-02-20 11:58hgbotNote Added: 0175968
2025-02-26 10:26hgbotNote Added: 0176140

Notes
(0175967)
hgbot   
2025-02-20 11:57   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3528 [^]
(0175968)
hgbot   
2025-02-20 11:58   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1928 [^]
(0176140)
hgbot   
2025-02-26 10:26   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/ci/mobile-test/-/merge_requests/455 [^]