In order to easily interface with different brands of fiscal printers and use their same functions, this module defines a unified interactive data structure and interfaces. By implementing these interfaces to interact with a certain certain brand of fiscal printer.
Interactive data structure
Fiscal.Receipt
Name
Desc
operator
to identify the operator
sales
sale items or cancel sale items
lottery
national lottery unique customer code
refunds
refund items or cancel refunds
subtotals
payments
barCode
qrCode
graphicCoupon
openDrawer
Fiscal.Report
Name
Desc
type
report type: daily financial report or daily fiscal closure or both