Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040191Retail ModulesWeb POSpublic2019-02-11 18:312019-03-05 17:31
aaroncalero 
rqueralta 
highmajoralways
closedfixed 
5
 
RR19Q1 
jorge-garcia
No
0040191: Closed Invoice template is no longer used when reprinting invoices in Web POS
Closed Invoice template is no longer used when reprinting invoices in Web POS. When an invoice is printed, the Closed Receipt template is used.
Login in Web POS
Create a new ticket
Go to the menu and click on Invoice this receipt
Add a product to the ticket
Pay and complete the receipt.
Load the receipt again.
Go to the menu > Print this receipt
Select the invoice and click on Print Invoices
Verify on the Network tab of devtools that the printclosedreceipt.xml file has been requested, instead of printclosedinvoice.xml
When a ticket is printed, the code looks for an isInvoice flag to see if the printed model is an invoice.
This flag only exists when an invoice is generated for the first time (during the synchronization of the receipt).

When the OpenInvoices process is called to load the invoices to be printed, and the invoice models are generated, the isInvoice flag needs to be set.
No tags attached.
blocks defect 0040181 closed rqueralta Closed Invoice template is no longer used when reprinting invoices in Web POS 
Issue History
2019-02-13 15:32marvintmTypedefect => backport
2019-02-13 15:32marvintmTarget Version => RR19Q1
2019-03-04 15:00hgbotCheckin
2019-03-04 15:00hgbotNote Added: 0110194
2019-03-04 15:00hgbotStatusscheduled => resolved
2019-03-04 15:00hgbotResolutionopen => fixed
2019-03-04 15:00hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a67707bed965a7471bd4277a2e21d56058f7f3cd [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/c4f8121f30707fed7a68ebb2d5bdb8bfb133020a [^]
2019-03-05 17:31jorge-garciaReview Assigned To => jorge-garcia
2019-03-05 17:31jorge-garciaNote Added: 0110238
2019-03-05 17:31jorge-garciaStatusresolved => closed

Notes
(0110194)
hgbot   
2019-03-04 15:00   
Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: c4f8121f30707fed7a68ebb2d5bdb8bfb133020a
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Mar 04 08:59:44 2019 -0500
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/c4f8121f30707fed7a68ebb2d5bdb8bfb133020a [^]

Fixed issue 40191: Closed Invoice template is no longer used when reprinting
invoices in Web POS

- isInvoice property was seted into OpenInvoices process

---
M web/org.openbravo.retail.posterminal/js/components/modalinvoices.js
---
(0110238)
jorge-garcia   
2019-03-05 17:31   
Code reviewed and tested