Openbravo Issue Tracking System - POS2
View Issue Details
0057608POS2POSpublic2025-01-10 10:012025-01-22 07:32
igor_trebol 
Bimla_vm 
normalmajoralways
scheduledopen 
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.
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

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 [^]