Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030888Retail ModulesWeb POSpublic2015-09-22 15:072016-02-05 13:49
guillermogil 
umartirena 
normalmajorN/A
closedfixed 
5
 
RR16Q2 
marvintm
No
0030888: It could be nice to have a different template for closed invoices
It could be nice to have a different template for closed invoices.
See attached screenshots.
N/A
It will be needed to create a new field on Organization window.
It will be needed also a new POS Print template type (‘Closed Invoice’).
Then it will be needed to send that template to WebPOS:

e.g.- (pointofsale-print.js)
this.templateclosedinvoice = new OB.DS.HWResource(terminal.printClosedInvoiceTemplate || OB.OBPOSPointOfSale.Print.ClosedInvoiceTemplate);
extendHWResource(this.templateclosedinvoice, "printClosedInvoiceTemplate");

OB.OBPOSPointOfSale.Print.ClosedInvoiceTemplate = '../org.openbravo.retail.posterminal/res/printclosedinvoice.xml';

Then create an structure to allow the printing of this template if it is an invoice and it is already paid.

A new base template needs to be added to posterminal: ‘printclosedinvoice.xml’. It need to be based on the current print invoice template with the label closed.
No tags attached.
blocks defect 0031044 closed adrianromero Print of a Paid Receipt using "Print this Receipt" menu option, fails. 
png Screenshot from 2015-09-22 14:51:19.png (122,220) 2015-09-22 15:07
https://issues.openbravo.com/file_download.php?file_id=8471&type=bug
png

png Screenshot from 2015-09-22 14:46:46.png (100,482) 2015-09-22 15:07
https://issues.openbravo.com/file_download.php?file_id=8472&type=bug
png

diff 30888.diff (29,324) 2015-10-06 15:02
https://issues.openbravo.com/file_download.php?file_id=8528&type=bug
Issue History
2015-09-22 15:07guillermogilNew Issue
2015-09-22 15:07guillermogilAssigned To => Retail
2015-09-22 15:07guillermogilTriggers an Emergency Pack => No
2015-09-22 15:07guillermogilFile Added: Screenshot from 2015-09-22 14:51:19.png
2015-09-22 15:07guillermogilFile Added: Screenshot from 2015-09-22 14:46:46.png
2015-10-06 15:02umartirenaFile Added: 30888.diff
2015-10-06 15:02umartirenaNote Added: 0080845
2015-10-20 17:29adrianromeroRelationship addedblocks 0031044
2015-10-20 17:47adrianromeroNote Added: 0081146
2016-02-04 07:53hgbotCheckin
2016-02-04 07:53hgbotNote Added: 0083906
2016-02-04 07:53hgbotStatusnew => resolved
2016-02-04 07:53hgbotResolutionopen => fixed
2016-02-04 07:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ab0b0ada2345ea9d6d4c48abf3e376f4fb56e736 [^]
2016-02-04 07:53hgbotCheckin
2016-02-04 07:53hgbotNote Added: 0083909
2016-02-04 10:22hgbotCheckin
2016-02-04 10:22hgbotNote Added: 0083918
2016-02-05 12:02marvintmAssigned ToRetail => guillermogil
2016-02-05 12:02marvintmReview Assigned To => marvintm
2016-02-05 12:02marvintmStatusresolved => closed
2016-02-05 12:02marvintmFixed in Version => RR16Q2
2016-02-05 13:49guillermogilAssigned Toguillermogil => umartirena

Notes
(0080845)
umartirena   
2015-10-06 15:02   
Find the resolution patch attached
(0081146)
adrianromero   
2015-10-20 17:47   
The diff attached has an error that is fixed in issue 31044
(0083906)
hgbot   
2016-02-04 07:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ab0b0ada2345ea9d6d4c48abf3e376f4fb56e736
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Oct 06 15:00:05 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ab0b0ada2345ea9d6d4c48abf3e376f4fb56e736 [^]

Fixes bug 30888: Added a template for Closed Invoices

---
M src-db/database/model/modifiedTables/AD_ORG.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_VAL_RULE.xml
M src-db/database/sourcedata/OBPOS_PRINT_TEMPLATE.xml
M src/org/openbravo/retail/posterminal/term/TerminalProperties.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
A web/org.openbravo.retail.posterminal/res/printclosedinvoice.xml
---
(0083909)
hgbot   
2016-02-04 07:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 74faf09c4dbfb124113afe3a6c1d911f74484802
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Wed Feb 03 15:49:42 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/74faf09c4dbfb124113afe3a6c1d911f74484802 [^]

Related to issue 30888: Fixed DBCons

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
---
(0083918)
hgbot   
2016-02-04 10:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a1706ba2d9adf8458f6df2b6a289df965d4656fe
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 04 10:21:18 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a1706ba2d9adf8458f6df2b6a289df965d4656fe [^]

Related to issue 30888: Fix copyright

---
M src/org/openbravo/retail/posterminal/term/TerminalProperties.java
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
M web/org.openbravo.retail.posterminal/res/printclosedinvoice.xml
---