139 Commits

Author SHA1 Message Date
83bcdcb47e
Print: improve printing receipt:
- call prn_cut() 200ms after prn_switchPower(true)
 - make an "emergency cut" on error
 - improve log output on error
2025-05-13 13:44:12 +02:00
10b0e494b2
requestPrintTicket: switch to legacy, if no template list is configured 2025-04-08 08:58:29 +02:00
c8508a0c62
Read config TICKET_TEMPLATES: read list- or string-value 2025-03-25 12:26:18 +01:00
fbfbe3d243
prepareDynTemplateData: setup for all TICKET_VARIANTs 2025-03-12 16:12:44 +01:00
cbc0dd0ad6
Ticket: Use printer templates from config 2025-03-12 15:56:51 +01:00
1abd6bfa90
default templateList is empty 2025-03-12 14:25:33 +01:00
a03dfe87a5
requestPrintTicket: improve debug output: print template list 2025-03-12 14:07:23 +01:00
03b192fb60
Read ticket templates from config:
- config group is [TICKET_TEMPLATES]
 - reads list of printer templates for each TICKET_VARIANT
2025-03-12 13:57:36 +01:00
bf1bdc34bb
Fix: onNewVoltage: Unit is "mV" 2024-11-20 14:04:35 +01:00
73ae01573d
cashInputFinished: set errorCode/-description 2024-10-10 15:20:49 +02:00
bc595e1c7e
Printing: set "productText" to dynTicketData.dynDat5 2024-10-08 16:49:59 +02:00
18104b7271
Start dc_autoRequest() on wokeup 2024-09-25 12:33:52 +02:00
3fff6a0ebe
PayUp: CashCollect(amount) 2024-09-16 15:09:04 +02:00
c84050091b
Fix: TICKET_ID for FINE_PAYMENT 2024-08-09 14:08:53 +02:00
3e4db6cfcc
Add test code for printing date-strings 2024-08-08 10:21:55 +02:00
f20957c14a
Use TicketUtils to format date string on ticket 2024-08-08 10:12:35 +02:00
a43af8ab86
Print ticket-number on ticket 2024-08-07 15:29:12 +02:00
d7443974e2
requestPrintTicket() add new product names 2024-07-23 14:36:45 +02:00
346c953175
Print ticket FREE_TICKET 2024-07-23 11:01:13 +02:00
72dbc8b858
Print receipt: encode QString 2024-06-27 11:55:35 +02:00
32d70abf44
Proposal for usage of TICKET_VARIANT::FINE_PAYMENT 2024-06-27 11:48:16 +02:00
492d3a107a
Diag: set timeout for diagRequest from config ...
Option: "ATBDeviceControllerPlugin/diagTimeout"
 Description: Timeout for diagRequest in seconds.
 Default value: 45s
2024-06-03 12:09:34 +02:00
962cd01eac
Re-enable sending DC-State after closing doors 2024-06-03 11:53:58 +02:00
560b6d3221
Print: count undefined print result values and retry 2024-05-16 15:21:25 +02:00
b946dc5a92
T_dynData: do not dynamically create struct 2024-05-16 15:18:30 +02:00
ea7542a248
DiagRequest: start also on wakeupSimulation (mains powered machines) 2024-04-11 12:40:02 +02:00
4541699ec3
Load/init libCA in plugin init method (not in contructor) 2024-03-20 11:43:31 +01:00
87d50a05dd
Check error-state if doors are closed 2024-03-19 13:43:45 +01:00
6a08cf0b62
Implement new interface method sendDeviceParameter() 2024-03-18 17:02:49 +01:00
f94f33862f
Printing: dynamically set template dyn-data using Ticket-class
See DC_printer_interface.graphml/pdf
2024-03-11 14:06:05 +01:00
f81369944c
FOOD_STAMP: build template list ...
Ths last template printed is different (this includes e.g. a full cut
whereas the other templates have only a semi-cut.
2024-03-08 13:09:19 +01:00
6072970bf0
Rework Printing: add private methods depending on TICKET_VARIANT 2024-03-08 13:06:53 +01:00
8659627171
Add object variable currentTicketType 2024-03-08 13:04:28 +01:00
d0ee6d175e
Print tickets for products DAY_TICKET_ADULT, DAY_TICKET_TEEN 2024-02-28 16:42:35 +01:00
3eaf98fb09
Change product-names 2024-02-21 16:34:23 +01:00
bab7423965
Propagate Signal coinAttached 2024-02-21 16:33:39 +01:00
0cc89cefab
Read dc-firmware-version: filter return value (null-character) 2024-01-31 12:22:18 +01:00
14755cd5b4
Start physical layer, if only master lib is available (e.g. in Szeged) 2024-01-31 11:38:32 +01:00
d2efe566c5
Add persistentData to store dc-fw-version
Reading dc-fw-version is somehow complicated ...
Id does not work reliable on startup, so we do read it also on every
diagRequest().
Version string is then stored in persistent data.
This data can be used e.g. by other tools to show the
device-controller-firmware-version.
2024-01-31 11:34:00 +01:00
b058b6aee0
Changer: skip polling, if amount due to change is 0 2024-01-25 14:26:19 +01:00
bdb0f9911b
Print: set font on bank-receipt 2024-01-08 17:29:44 +01:00
1c643c6caf
Update DeviceControllerInterface to 1.1.1 2023-12-22 09:26:13 +01:00
07bb1bde50
Send interface signal on VaultDoor opened 2023-12-15 11:54:36 +01:00
80c7992d5b
Start autoRequest allways ...
... we need this!
2023-12-13 09:23:03 +01:00
c603313d73
PrintTicket: skip check of serial port 2023-12-11 18:32:37 +01:00
25cb23a587
Send cashPaymentFinished() onCashChangerState() ...
This is for checking changer result and includes lot of debug code!
2023-12-08 12:41:57 +01:00
60c4d5896a
Set 'printerLocale' from settings 2023-12-01 15:07:29 +01:00
d2a0491bba
cashInputFinished: return coins/notes/change 2023-11-30 18:18:43 +01:00
96db7be126
Add object variable cashStartAmountInt
Used to track proposed change amount.
2023-11-30 18:17:44 +01:00
247abb7520
Add class CashUtils: utility methods for CashProcessing 2023-11-30 18:15:07 +01:00