Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040181Retail ModulesWeb POSpublic2019-02-11 18:312019-02-28 08:54
aaroncalero 
rqueralta 
highmajoralways
closedfixed 
5
 
RR19Q2 
jorge-garcia
No
0040181: 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.
depends on backport 0040191RR19Q1 closed rqueralta Closed Invoice template is no longer used when reprinting invoices in Web POS 
Issue History
2019-02-11 18:31aaroncaleroNew Issue
2019-02-11 18:31aaroncaleroAssigned To => Retail
2019-02-11 18:31aaroncaleroResolution time => 1551135600
2019-02-11 18:31aaroncaleroTriggers an Emergency Pack => No
2019-02-11 20:46rqueraltaAssigned ToRetail => rqueralta
2019-02-11 20:47rqueraltaStatusnew => scheduled
2019-02-13 05:19hgbotCheckin
2019-02-13 05:19hgbotNote Added: 0109785
2019-02-13 05:19hgbotStatusscheduled => resolved
2019-02-13 05:19hgbotResolutionopen => fixed
2019-02-13 05:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a67707bed965a7471bd4277a2e21d56058f7f3cd [^]
2019-02-13 15:32marvintmStatusresolved => new
2019-02-13 15:32marvintmResolutionfixed => open
2019-02-13 15:32marvintmStatusnew => scheduled
2019-02-13 15:32marvintmStatusscheduled => resolved
2019-02-13 15:32marvintmResolutionopen => fixed
2019-02-28 08:42jorge-garciaReview Assigned To => jorge-garcia
2019-02-28 08:54jorge-garciaNote Added: 0110115
2019-02-28 08:54jorge-garciaStatusresolved => closed
2019-02-28 08:54jorge-garciaFixed in Version => RR19Q2

Notes
(0109785)
hgbot   
2019-02-13 05:19   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a67707bed965a7471bd4277a2e21d56058f7f3cd
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Feb 11 16:35:31 2019 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a67707bed965a7471bd4277a2e21d56058f7f3cd [^]

Fixed issue 40181: 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
---
(0110115)
jorge-garcia   
2019-02-28 08:54   
Code reviewed and tested