Openbravo Issue Tracking System - POS2
View Issue Details
0051819POS2POSpublic2023-03-09 09:472023-05-08 08:30
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
 
No
0051819: 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.
depends on backport 005197123Q1.3 closed ebecerra Invalid cash change when using prepayments 
depends on backport 005217923Q2.1 closed ebecerra Invalid cash change when using prepayments 
png PrepaymentChange.png (91,852) 2023-03-09 09:47
https://issues.openbravo.com/file_download.php?file_id=18240&type=bug
png

png Payment.png (87,643) 2023-03-09 09:48
https://issues.openbravo.com/file_download.php?file_id=18241&type=bug
png

png ReceiptDelivery.png (93,721) 2023-03-09 09:48
https://issues.openbravo.com/file_download.php?file_id=18242&type=bug
png

png BO_Org.png (168,302) 2023-03-09 10:27
https://issues.openbravo.com/file_download.php?file_id=18243&type=bug
png

png OB_ChannelTouchpointType.png (131,832) 2023-03-09 10:45
https://issues.openbravo.com/file_download.php?file_id=18245&type=bug
png
Issue History
2023-03-09 09:47ebecerraNew Issue
2023-03-09 09:47ebecerraAssigned To => Retail
2023-03-09 09:47ebecerraFile Added: PrepaymentChange.png
2023-03-09 09:47ebecerraTriggers an Emergency Pack => No
2023-03-09 09:48ebecerraFile Added: Payment.png
2023-03-09 09:48ebecerraFile Added: ReceiptDelivery.png
2023-03-09 10:27ebecerraFile Added: BO_Org.png
2023-03-09 10:45ebecerraSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25667#r25667
2023-03-09 10:45ebecerraFile Added: OB_ChannelTouchpointType.png
2023-03-24 12:32ebecerraAssigned ToRetail => ebecerra
2023-03-24 12:32ebecerraStatusnew => scheduled
2023-03-24 13:05hgbotNote Added: 0147951
2023-03-29 13:53hgbotNote Added: 0148049
2023-03-29 13:54hgbotNote Added: 0148050
2023-03-29 13:59hgbotNote Added: 0148051
2023-03-29 16:01hgbotNote Added: 0148056
2023-04-20 11:21guilleaerStatusscheduled => acknowledged
2023-04-20 11:21guilleaerStatusacknowledged => scheduled
2023-04-20 11:22guilleaerNote Deleted: 0148056
2023-04-20 11:22guilleaerNote Deleted: 0147951
2023-04-20 11:22guilleaerNote Deleted: 0148049
2023-04-20 11:22guilleaerNote Deleted: 0148050
2023-05-08 08:30hgbotNote Added: 0149417
2023-05-08 08:30hgbotResolutionopen => fixed
2023-05-08 08:30hgbotStatusscheduled => closed
2023-05-08 08:30hgbotFixed in Version => RR23Q3
2023-05-08 08:30hgbotNote Added: 0149418

Notes
(0148051)
hgbot   
2023-03-29 13:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1118 [^]
(0149417)
hgbot   
2023-05-08 08:30   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1118 [^]
(0149418)
hgbot   
2023-05-08 08:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 3fe31428cc9df76101b061c2fb37562d8637ed02
Author: Eduardo Becerra (OB) <eduardo.becerra@openbravo.com>
Date: 08-05-2023 06:30:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/3fe31428cc9df76101b061c2fb37562d8637ed02 [^]

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