Openbravo Issue Tracking System - POS2
View Issue Details
0052179POS2POSpublic2023-03-09 09:472023-05-08 15:10
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
23Q2.1 
No
0052179: Invalid cash change when using prepayments
When you pay an order with cash prepayment and change the amount of advance payment, the change value is incorrect.
1. Configure the POS to allow prepayments and use "Deliver Receipt Options"
   a. Open the organization window and select "Vall Blanca Store" and in the section "Retail configuration" change "Prepayment Percentage" to 50 (See screenshot: BO_Org.png)
   b. Open the Channel - Touchpoint Type window and select "POS2SD VBS POS2 Terminal Type" and in section "Openbravo POS Terminal Configuration" check "Allow prepayments and partial payments" and "Deliver Receipt Options" (See screenshot: OB_ChannelTouchpointType.png)

2. Create an order and set customer and delivery condition
   a. Add product "Avalanche transceiver"
   b. Select customer "John Doo"
   c. Change delivery condition to: "Pickup in store"
 
3. Change de prepayment amount (See screenshot: PaymentChange.png)
   a. Press "Pay" button
   b. Change "Prepayment" amount from 75.25 to 90

4. Make the prepayment with Cash (See screenshot: Payment.png)
   a. Add a payment of 90 in Cash

5. Complete the order (See screenshot: ReceiptDeliver.png)
   a. Press "Done" button

   
No tags attached.
blocks defect 0051819 closed ebecerra Invalid cash change when using prepayments 
Issue History
2023-04-20 11:21guilleaerTypedefect => backport
2023-04-20 11:21guilleaerTarget Version => 23Q2
2023-05-02 16:37guilleaerTarget Version23Q2 => 23Q2.1
2023-05-03 09:57hgbotNote Added: 0149181
2023-05-08 15:10hgbotResolutionopen => fixed
2023-05-08 15:10hgbotStatusscheduled => closed
2023-05-08 15:10hgbotFixed in Version => RR23Q2
2023-05-08 15:10hgbotNote Added: 0149438
2023-05-08 15:10hgbotNote Added: 0149439

Notes
(0149181)
hgbot   
2023-05-03 09:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1174 [^]
(0149438)
hgbot   
2023-05-08 15:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 3cd5ee2352bb9bbb92421c5f38c520d5e0115e6b
Author: Eduardo Becerra <eduardo.becerra@openbravo.com>
Date: 08-05-2023 06:31:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/3cd5ee2352bb9bbb92421c5f38c520d5e0115e6b [^]

Fixes ISSUE-52179: Calculate prepayment amount using paymentSubtotals (only defined in POS2)

---
A web-test/model/business-object/ticket/TicketUtils-Prepayments.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0149439)
hgbot   
2023-05-08 15:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1174 [^]