Openbravo Issue Tracking System - POS2
View Issue Details
0046876POS2POSpublic2021-05-27 16:562021-06-03 13:43
gorka_gil 
gorka_gil 
highmajoralways
closedfixed 
5
 
TAP 
No
No
0046876: Change not printed in the ticket
When pay more than needed, the change appear in the pos but not in the ticket.

To print the ticket it is called the utility function getChangeLabelFromTicket, that uses the getState().ticket.changePayments.

But looks like in pos2 is missing the changePayments.
Pay an order with cash, with more amount that needed, for example pay with 100€ a ticket of 50€.
The change appear in the pos, but the printed ticket doesn't appear the change.
In old pos, after addPayment it calls to calculateChange as part of updatePending.

Probably needed to move the calculateChange inside the addpPayment action
No tags attached.
blocks defect 0046875 closed gorka_gil Change not printed in the ticket 
Issue History
2021-05-27 17:00gorka_gilTypedefect => backport
2021-05-27 17:00gorka_gilTarget Version => TAP
2021-05-27 17:01guilleaerResolution time1620684000 => 1623362400
2021-06-03 13:42gorka_gilNote Added: 0129017
2021-06-03 13:43gorka_gilStatusscheduled => resolved
2021-06-03 13:43gorka_gilResolutionopen => fixed
2021-06-03 13:43gorka_gilStatusresolved => closed

Notes
(0129017)
gorka_gil   
2021-06-03 13:42   
Fixed on this MR: https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.posterminal/-/merge_requests/4 [^]