Openbravo Issue Tracking System - POS2
View Issue Details
0047724POS2POSpublic2021-09-21 08:332024-01-02 15:08
AtulOpenbravo 
Retail 
normalmajoralways
closedunable to reproduce 
5
 
 
Pre packaging ( pi )
2021-09-03
pi
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/31ed4a022dee3010eb690e25b9c66d929c5fd634 [^]
No
0047724: Cash Payments are not created in BackOffice for Return Tickets
Cash Payments are not created in BackOffice for Return Tickets
- Login into POS2
- Create a ticket with few products.
- Set ticket as Return Order
- Pay the ticket using Cash payment method
- Complete the ticket.
- Login into BackOffice
- Navigate to Return From Customer and check the recent return order created.
- Check Payment Details Tab in Payment Plan
- Realize that there is no record in Payment Details.
Instead of calculating totalPaid as

const totalPaid = ticket.payments.reduce((total, payment) => {
  return OB.DEC.add(total, OB.DEC.mul(payment.amount, payment.rate));
}, 0);

use as below:-

const totalPaid = ticket.paymentWithSign;
No tags attached.
Issue History
2021-09-21 08:33AtulOpenbravoNew Issue
2021-09-21 08:33AtulOpenbravoAssigned To => Retail
2021-09-21 08:33AtulOpenbravoTriggers an Emergency Pack => No
2021-09-21 08:36AtulOpenbravoRegression level => Pre packaging ( pi )
2021-09-21 08:36AtulOpenbravoRegression date => 2021-09-03
2021-09-21 08:36AtulOpenbravoRegression introduced in release => pi
2021-09-21 08:36AtulOpenbravoRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/31ed4a022dee3010eb690e25b9c66d929c5fd634 [^]
2021-09-21 08:36AtulOpenbravoStatusnew => scheduled
2021-09-21 20:39AtulOpenbravoProposed Solution updated
2024-01-02 15:08Daria_ShNote Added: 0158772
2024-01-02 15:08Daria_ShStatusscheduled => closed
2024-01-02 15:08Daria_ShResolutionopen => unable to reproduce

Notes
(0158772)
Daria_Sh   
2024-01-02 15:08   
The issue is not reproducible in livebuilds