Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045875Retail ModulesRT-Printerpublic2021-02-09 15:052022-01-10 11:14
psanjuan 
marvintm 
urgentmajoralways
scheduledopen 
30Openbravo Appliance 14.04
 
 
No
0045875: RT Printer v 2.0 - Lottery code
Lottery Law starting from January 2021

Below attached Specs describe Lottery Code implementation in Openbravo as the way to capture customer lottery code in any sale transaction.
See https://docs.google.com/document/d/1HbMchAGxTTEA0q52J0jd_km9u0Vlm9fYaSG5dnKx6Gs/edit [^] (IT Receitp Lottery - Functional Specs).

n/a
Once captured, that lottery code needs to be sent to the RT-Printer by using below listed command:

* Send Lottery personal ID CODE (1-135). Use the Direct-IO command 1-135 to send to the printer the Lottery personal ID Code.

Same way, this lottery code needs to be printed in the commercial document.

To print the lottery code, the sequence of the commands is as follow:
* BeginFiscalReceipt
* PrintRecItem
* PrintRecTotal
* DirectIO
* EndFiscalReceipt

See document https://drive.google.com/drive/folders/1ba9z6aJ5Vs_CnESXNNkXAX0ZbCm28JzW [^]
(Workshop_ONLINE_RT_lOTTERY_XML2_0_REV05_confidential.pdf

To print out a Lottery Refund/Void receipt the commands sequence is as follow:
* PrintRecMessage (Void/Refund text)
* BeginFiscalReceipt
* PrintRecRefund
* PrintRecTotal
* DirectIO (LotteryIDCode)
* EndFiscalReceipt

The LotteryIDCode must be sent if the original sales receipt was not found in the EJ of the RT Printer. If the original receipt is found in the EJ the RT add the Lottery ID Code available in the original receipt.

In Openbravo terms, verified returns will capture the LotteryIDCode of the original sale, so that one can be sent.
No tags attached.
related to feature request 0046170 acknowledged psanjuan RT Printer v 2.0 - XML 7 changes 
Issue History
2021-02-09 15:05psanjuanNew Issue
2021-02-09 15:05psanjuanTriggers an Emergency Pack => No
2021-03-03 11:21psanjuanSummaryNew Payment Method configuration (Fiscal Department/Fiscal Index) => RT Printer v 2.0 - Lottery code + XML 2.0
2021-03-03 11:21psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22160#r22160
2021-03-03 11:40psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22161#r22161
2021-03-03 11:55psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22162#r22162
2021-03-03 11:59psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22163#r22163
2021-03-03 14:12psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22164#r22164
2021-03-03 14:19psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22165#r22165
2021-03-04 10:15psanjuanNote Added: 0126495
2021-03-04 15:35psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22177#r22177
2021-03-04 16:13psanjuanNote Edited: 0126495bug_revision_view_page.php?bugnote_id=0126495#r22179
2021-03-04 16:13psanjuanNote Edited: 0126495bug_revision_view_page.php?bugnote_id=0126495#r22180
2021-03-29 10:52psanjuanStatusnew => scheduled
2021-03-29 10:53psanjuanIssue cloned0046170
2021-03-29 11:55psanjuanSummaryRT Printer v 2.0 - Lottery code + XML 2.0 => RT Printer v 2.0 - Lottery code
2021-03-29 11:55psanjuanDescription Updatedbug_revision_view_page.php?rev_id=22268#r22268
2021-03-29 11:55psanjuanProposed Solution updated
2021-03-29 11:55psanjuanNote Edited: 0126495bug_revision_view_page.php?bugnote_id=0126495#r22269
2021-03-29 11:56psanjuanNote Edited: 0126495bug_revision_view_page.php?bugnote_id=0126495#r22270
2021-03-29 11:56psanjuanRelationship addedrelated to 0046160
2021-03-29 12:00psanjuanNote Added: 0126981
2021-03-29 12:05psanjuanRelationship deletedrelated to 0046160
2021-03-29 12:06psanjuanRelationship addedrelated to 0046170
2021-04-20 15:42psanjuanAssigned To => adrianromero
2021-04-20 15:44psanjuanAssigned Toadrianromero => Retail
2022-01-10 11:12psanjuanNote Added: 0134162
2022-01-10 11:14psanjuanAssigned ToRetail => marvintm

Notes
(0126495)
psanjuan   
2021-03-04 10:15   
(edited on: 2021-03-29 11:56)
Lottery part done, missing RT Version 2.0 (new requirements). See issue related.

(0126981)
psanjuan   
2021-03-29 12:00   
Done (see https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.rtprinter/-/commit/a9a0b231f65b9212973f5a5e4685224f31e8180d [^]), but do not published in the Forge.
(0134162)
psanjuan   
2022-01-10 11:12   
Hi Antonio,
As it seems the commit of this issue is already merged but the issue is not closed.
Can you please double check and close the issue if applicable?
Thanks,
Patricia.