datecs_sk1_21 0.1.0
datecs_sk1_21: ^0.1.0 copied to clipboard
Complete Dart SDK for Datecs SK1-21 fiscal thermal printer. Supports fiscal receipts, reports, PLU items, VAT rates, electronic journal, fiscal memory, and display control via DUDE COM driver on Windows.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2024-01-18 #
Added #
Core Features
DatecsDudeDriver- Main driver using PowerShell + DUDE COM objectDatecsRestDriver- Alternative driver using LDREST.exe HTTP server- RS232 and TCP/IP connection support
Fiscal Receipt Operations
openFiscalReceipt()- Open fiscal receipt with operator and invoice optionsregisterSale()- Register sale items with tax groups, discounts, surchargessubtotal()- Print subtotal with optional discount/surchargeregisterPayment()- Register payments (10 payment types supported)closeFiscalReceipt()- Close and print fiscal receiptcancelFiscalReceipt()- Cancel current fiscal receiptprintFiscalText()- Print text in fiscal receipt
Non-Fiscal Receipt Operations
openNonFiscalReceipt()- Open non-fiscal receiptprintNonFiscalText()- Print text linescloseNonFiscalReceipt()- Close non-fiscal receipt
Reports
generateDailyReport()- X Report (read) and Z Report (reset)printOperatorsReport()- Print operators statisticsprintPluReport()- Print PLU items reportprintFiscalReportByDates()- Fiscal memory report by date rangeprintFiscalReportByZNumbers()- Fiscal memory report by Z-report numbersprintDiagnostic()- Print diagnostic information
Display Control
clearDisplay()- Clear external displaydisplayUpperLine()- Show text on upper linedisplayLowerLine()- Show text on lower line
Date/Time Operations
setDateTime()- Set printer date and timereadDateTime()- Read current date and time
VAT/Tax Operations
programVatRates()- Program tax rates for groups A-HreadVatRates()- Read current VAT rates
PLU (Price Look-Up) Operations
programPluItem()- Program PLU itemreadPluItem()- Read PLU item by codedeletePluItem()- Delete PLU itemsellProgrammedItem()- Sell programmed PLU item
Fiscal Memory Operations
getRemainingZReports()- Get remaining Z-reports capacitygetLastFiscalRecordDate()- Get date of last fiscal recordtestFiscalMemory()- Test fiscal memory integrityreadFiscalMemory()- Read fiscal memory recordsgetLastFiscalEntryInfo()- Get last fiscal entry information
Electronic Journal Operations
getJournalInfo()- Get journal statisticssearchJournalByDate()- Search journal by datesearchJournalByReceipt()- Search journal by receipt numberexportXmlFiles()- Export journal to XML
Information Queries
getStatus()- Get printer statusgetReceiptStatus()- Get current receipt statusgetCurrentReceiptInfo()- Get current receipt informationgetDailyTaxationInfo()- Get daily tax totalsgetAdditionalDailyInfo()- Get additional daily statisticsgetDepartmentInfo()- Get department informationgetItemGroupInfo()- Get item group informationgetOperatorInfo()- Get operator statisticsgetDiagnosticInfo()- Get diagnostic informationgetDeviceFullInfo()- Get complete device informationreadTaxNumber()- Read tax registration numberreadLastError()- Read last error description
Programming Operations
programHeaderLine()- Program receipt header linesprogramOperatorPassword()- Change operator password
Hardware Control
paperFeed()- Feed paper by linespaperCut()- Cut paperejectPaper()- Eject paper for useropenCashDrawer()- Open cash drawercashInOut()- Cash in/out operationsplaySound()- Play beep sound
Graphics Operations
printBarcode()- Print various barcode typesprintQRCode()- Print QR codesloadLogo()- Load logo imageloadStampImage()- Load stamp imageprintStamp()- Print stamp
Printing
printSeparatingLine()- Print separator line
Configuration
readParameter()- Read configuration parameterwriteParameter()- Write configuration parameter
Service Operations
fiscalize()- Fiscalize deviceprogramSerialNumber()- Program serial numberswitchMode()- Switch printer modeserviceOperation()- Execute service operations
Models
SaleItem- Sale item with name, price, quantity, tax groupPayment- Payment with type and amountTaxGroup- Tax groups A-H with ratesPaymentType- 10 payment typesReceiptType- Fiscal, non-fiscal, invoice typesPrinterStatus- Complete printer status with all flagsReceiptStatus- Current receipt stateReceiptInfo- Receipt totals and items countPluItem- PLU item definitionPluSale- PLU sale operationDepartment- Department data and statisticsItemGroup- Item group dataOperatorData- Operator statisticsFiscalMemoryRecord- Fiscal memory Z-report dataJournalInfo- Electronic journal informationDatecsErrorCode- Error code enumeration
Dependencies #
serial_port_win32: ^1.2.0- Serial port communicationhttp: ^1.1.0- HTTP client for REST driver