Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031395Retail ModulesWeb POSpublic2015-11-06 14:422016-02-02 19:34
adrianromero 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
RR16Q2 
marvintm
No
0031395: Printing receipt or jasper based on receipt conditions
When closing a receipt in Web POS, and based on receipt conditions, it may be printed a regular receipt or a jasper reports.

Currently it is possible to configure the Web POS to print when closing the receipt either a regular receipt or a jasper report but it is not possible to select what kind of document to print based on information included in the receipt. This type of functionality is needed to localize the Web POS to some countries.
N/A
Proof of concept in diff attached
No tags attached.
diff printingJASPERorXML.diff (22,105) 2015-12-21 12:51
https://issues.openbravo.com/file_download.php?file_id=8831&type=bug
diff unittests-issue-31395.diff (8,132) 2016-01-22 11:55
https://issues.openbravo.com/file_download.php?file_id=8962&type=bug
Issue History
2015-11-06 14:42adrianromeroNew Issue
2015-11-06 14:42adrianromeroAssigned To => adrianromero
2015-11-06 14:42adrianromeroTriggers an Emergency Pack => No
2015-12-21 12:51adrianromeroProposed Solution updated
2015-12-21 12:51adrianromeroFile Added: printingJASPERorXML.diff
2016-01-20 09:05adrianromeroStatusnew => scheduled
2016-01-20 09:08adrianromeroNote Added: 0083427
2016-01-20 09:09adrianromeroReview Assigned To => marvintm
2016-01-22 11:55adrianromeroFile Added: unittests-issue-31395.diff
2016-01-27 12:23adrianromeroNote Added: 0083633
2016-01-28 18:23hgbotCheckin
2016-01-28 18:23hgbotNote Added: 0083692
2016-01-28 18:23hgbotStatusscheduled => resolved
2016-01-28 18:23hgbotResolutionopen => fixed
2016-01-28 18:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d78f0ae3bdec08a627619e9ca77f1fde108375aa [^]
2016-02-01 09:37hgbotCheckin
2016-02-01 09:37hgbotNote Added: 0083768
2016-02-02 19:34marvintmStatusresolved => closed
2016-02-02 19:34marvintmFixed in Version => RR16Q2

Notes
(0083427)
adrianromero   
2016-01-20 09:08   
Documentation
http://wiki.openbravo.com/wiki/Retail:Developers_Guide/Javascript_template_engine_for_receipt_printer_and_customer_displays_documents#Executing_a_report_receipt [^]
http://wiki.openbravo.com/wiki/How_to_create_a_receipt_report#Introduction [^]
(0083633)
adrianromero   
2016-01-27 12:23   
successful retail-try build
https://ci.openbravo.com/job/try-ret-init/2492/ [^]
(0083692)
hgbot   
2016-01-28 18:23   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d78f0ae3bdec08a627619e9ca77f1fde108375aa
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Jan 19 12:44:28 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d78f0ae3bdec08a627619e9ca77f1fde108375aa [^]

Fixes issue 0031395: Printing receipt or jasper based on receipt conditions
* Evaluate template data to print to decide whether print a jasper report or follow the default path of printing the receipt

---
M web/org.openbravo.retail.posterminal/js/datasource.js
---
(0083768)
hgbot   
2016-02-01 09:37   
Repository: tools/automation/pi-mobile
Changeset: 82840b1883ed438635be38cf5e77025d89d5685a
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jan 28 18:47:01 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/82840b1883ed438635be38cf5e77025d89d5685a [^]

Tests for issue 31395: Printing receipt or jasper based on receipt conditions

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/printing/AllPrintingTests.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/printing/Feature31395_UnitTestsPrinting.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/printing/testJRXMLHardwareManager.js
---