Openbravo Issue Tracking System - POS2
View Issue Details
0057608POS2POSpublic2025-01-10 10:012025-02-13 12:46
igor_trebol 
Bimla_vm 
normalmajoralways
closedfixed 
5
 
 
No
0057608: Cancel order with pre-payment error
When creating a pre-paid order and trying to cancel it, the payments are wrong both in the POS and in the backoffice. In the example in the video, the refund is304.20 (twice the amount of the item minus the prepayment), when it should just be 33.8. The backoffice also shows a wrong payment plan in the cancel order.
1. Configure prepayments:
    - Touchpoint type: 'Check Allow Prepayments and Partial Payments'
    - Organization: Set Prepayment Percentage and Prepayment Percentage Limit to a number lower than 100.

2. Select Arturo Montoro as BP.

3. Pick any product, and set it to 'Pickup in Store' by clicking on the line and Delivery Mode.

4. Make a partial payment and complete the order.

5. Go to orders screen, click on the three dots on that order and selet Cancel Order.

6. Go to payments.
No tags attached.
depends on backport 005788325Q1 closed Bimla_vm Cancel order with pre-payment error 
has duplicate defect 0057874 closed inaki_luque Error on the cancel order on the POS with partial payment 
has duplicate defect 0057925 closed dmytro_tarasov Wrong Prepayments quantity in the Header when we cancel partially paid order. 
Issue History
2025-01-10 10:01igor_trebolNew Issue
2025-01-10 10:01igor_trebolAssigned To => Retail
2025-01-10 10:01igor_trebolTriggers an Emergency Pack => No
2025-01-10 10:18igor_trebolDescription Updatedbug_revision_view_page.php?rev_id=29032#r29032
2025-01-10 10:18igor_trebolSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29034#r29034
2025-01-10 13:17aaroncaleroAssigned ToRetail => jorgewederago
2025-01-10 13:17aaroncaleroStatusnew => acknowledged
2025-01-10 13:22aaroncaleroNote Added: 0174009
2025-01-13 04:45Bimla_vmAssigned Tojorgewederago => Bimla_vm
2025-01-13 04:45Bimla_vmStatusacknowledged => scheduled
2025-01-22 07:32hgbotNote Added: 0174489
2025-01-22 07:32hgbotNote Added: 0174490
2025-02-06 10:21jorgewederagoRelationship addedhas duplicate 0057874
2025-02-06 10:21jorgewederagoStatusscheduled => feedback
2025-02-06 10:22jorgewederagoStatusfeedback => scheduled
2025-02-10 14:53hgbotNote Added: 0175399
2025-02-10 15:20migueldejuanaRelationship addedhas duplicate 0057925
2025-02-13 12:46hgbotResolutionopen => fixed
2025-02-13 12:46hgbotStatusscheduled => closed
2025-02-13 12:46hgbotFixed in Version => RR25Q2
2025-02-13 12:46hgbotNote Added: 0175592
2025-02-13 12:46hgbotNote Added: 0175593

Notes
(0174009)
aaroncalero   
2025-01-10 13:22   
Note for the developer fixing the issue: It seems that the problem is that the isNegative field is not properly set when executing the Cancel Order action.
Since the isNegative field is incorrect, this causes the payment info to calculate incorrectly
(0174489)
hgbot   
2025-01-22 07:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1885 [^]
(0174490)
hgbot   
2025-01-22 07:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3396 [^]
(0175399)
hgbot   
2025-02-10 14:53   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3396 [^]
(0175592)
hgbot   
2025-02-13 12:46   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: bdf2811abebc39393892cfb534698ec51516ebf2
Author: Bimla Mayavan <b.mayavan@external.orisha.com>
Date: 13-02-2025 12:23:18
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/bdf2811abebc39393892cfb534698ec51516ebf2 [^]

Fixed ISSUE-57608: Set skipTaxCalculation value on cancel Ticket action

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CreateCancelTicket.js
---
(0175593)
hgbot   
2025-02-13 12:46   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1885 [^]