Add lottery code to RequestResponse in Epson, Custom PrinterRT and RT…#699
Merged
danielscainifiskaltrust merged 1 commit intoJun 30, 2026
Conversation
✅ CLA SignedAll contributors have signed the CLA. Thank you! |
SCU.IT Test Results 8 files 8 suites 2s ⏱️ Results for commit 4effe22. |
6 tasks
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
accodev
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
For sale receipts (
POSRECEIPT), the EpsonRTPrinter and CustomRTPrinter SCUs did notexpose the receipt lottery code (
codicelotteria) in theReceiptResponsesignatures:RTCodiceLotteriawas hardcoded to an empty string. As a result the code did not appearin either of the two places the QueueIT layer derives it from:
<rt-lottery-id>signature, andCodice Lotteria:line in the[www.fiskaltrust.it]footer (built by the queue fromRTLotteryID).This aligns both printer SCUs with the existing behavior: populating
RTCodiceLotteriaon the sale signature data drives both outputs automatically.
Changes
EpsonRTPrinter (
EpsonRTPrinterSCU.cs)GetLotteryCode(ReceiptRequest)helper(
GetLotteryData()?.servizi_lotteriadegliscontrini_gov_it?.codicelotteria ?? "").RTCodiceLotteriaon everyPOSRECEIPTsignature path:PerformProtocolReceiptAsync,PerformClassicReceiptAsync, and the two network-recoverypaths
RetryReceiptWithRecoveryAsyncandApplyRecoveredDoc(the latter gained a
lotteryCodeparameter, passed by its callers that hold theReceiptRequest).CustomRTPrinter (
CustomRTPrinterSCU.cs)PerformDeliveryNoteAsync(POSRECEIPT) now reads the lottery code and setsRTCodiceLotteria.PerformClassicReceiptAsyncalready set it → unchanged.Refund / Void / management documents keep
RTCodiceLotteria = "": the lottery code is onlyattached to sale receipts (
POSRECEIPT), consistent with the rest of the IT integration.Resulting signature output
For a sale carrying a lottery code, the response now contains:
<rt-lottery-id>→ftSignatureType 0x4954200000000015,ftSignatureFormat 0x1,Data = <code>[www.fiskaltrust.it]footer (ftSignatureType 0x4954200000000001) with aCodice Lotteria: <code>lineTesting
Issue
#696