Openbravo Issue Tracking System - POS2
View Issue Details
0051971POS2POSpublic2023-03-09 09:472023-05-08 15:10
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
23Q1.3 
No
0051971: 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-03-24 12:32ebecerraTypedefect => backport
2023-03-24 12:32ebecerraTarget Version => 23Q1.1
2023-03-28 12:40guillermogilTarget Version23Q1.1 => 23Q1.2
2023-05-03 09:46hgbotNote Added: 0149180
2023-05-04 11:32marvintmTarget Version23Q1.2 => 23Q1.3
2023-05-08 15:10hgbotResolutionopen => fixed
2023-05-08 15:10hgbotStatusscheduled => closed
2023-05-08 15:10hgbotNote Added: 0149440
2023-05-08 15:10hgbotFixed in Version => RR23Q1.3
2023-05-08 15:10hgbotNote Added: 0149441

Notes
(0149180)
hgbot   
2023-05-03 09:46   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1173 [^]
(0149440)
hgbot   
2023-05-08 15:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1173 [^]
(0149441)
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: e68227235c0540a34d5de401837e775851e5a3f9
Author: Eduardo Becerra <eduardo.becerra@openbravo.com>
Date: 08-05-2023 13:10:07
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/e68227235c0540a34d5de401837e775851e5a3f9 [^]

Fixes ISSUE-51971: 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
---