Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039423Retail ModulesLayaway orderpublic2018-10-09 16:352018-10-09 23:21
lbressan 
rqueralta 
normalminoralways
scheduledopen 
5
pi 
 
No
0039423: Layaway with multiple payments prints a ticket with null dates, except for the last payment
When paying a layaway with multiple payments, the printed ticket will show 'null' instead of the payment date for all the payments except the last one.
This happens wether the layway is paid fully, or partially (using the "layaway" button).
See attached screenshot.
1. Create a layaway using the menu option "Receipt this layaway".
2. Add any product(s).
3. Add a partial payment and press the "Layaway" button.
4. Retrieve the created document via the "Open Receipt" button.
5. Add another payment (full or partial).
6. Press either the "Done" button or the "Layaway" button.
7. Observe the printed ticket. It would display:
Payment Method Name - Date - Amount

Except that for the first payment, the date will be shown as "null".
Apparently the payment date property for an open layaway is of type String, instead of Date. So then the formatting utility returns null.
Either make that property to be always of Date type, or modify the printed layaway template in order to support all cases.
No tags attached.
png Screen Shot 2018-10-09 at 11.20.39.png (466,783) 2018-10-09 16:35
https://issues.openbravo.com/file_download.php?file_id=12248&type=bug
Issue History
2018-10-09 16:35lbressanNew Issue
2018-10-09 16:35lbressanAssigned To => Retail
2018-10-09 16:35lbressanFile Added: Screen Shot 2018-10-09 at 11.20.39.png
2018-10-09 16:35lbressanTriggers an Emergency Pack => No
2018-10-09 16:42PracticsIssue Monitored: Practics
2018-10-09 23:15rqueraltaAssigned ToRetail => rqueralta
2018-10-09 23:21rqueraltaStatusnew => scheduled

There are no notes attached to this issue.