Middleware 1.3.92
With this release, we improved the reliability of several German SCUs (Swissbit Cloud V2, Fiskaly Certified, Deutsche Fiskal and Swissbit Cloud) and fixed the TAR and DSFinV-K exports after a TSE replacement. Germany also gets new charge item cases for cash-in and cash-out receipts with VAT, which the POS System API now uses as well, and the Swissbit SCU works with an expired TSE certificate. In Italy, the Epson RT printer SCU no longer reports false "unknown document state" errors, and the "Queue started" journal entry now includes the Launcher version in Belgium, Greece, Poland, Portugal, Spain and the EU market. The LocalPosSystemApi helper now keeps its data across restarts and streams journals, maps more German receipt case flags correctly, and signs cash payments of previously issued invoices in Austria.
Customers in Austria and France should continue to use version 1.2 of the middleware. We are working on a unified version for all markets.
🇩🇪 Bug Fix: Swissbit Cloud V2 TSE no longer fails after a successful retry (fiskaltrust/middleware#885)
A successful retry after a short-lived server error is no longer reported as a failure, which could previously put the queue into failed mode.
The start of a transaction is no longer retried automatically, and the SwissbitCloudV2Timeout setting is now applied consistently in milliseconds.
Affected packages:
- fiskaltrust.Middleware.SCU.DE.SwissbitCloudV2
🇩🇪 Bug Fix: SCU switch setup is now reliably applied after a restart (fiskaltrust/middleware#879)
An SCU switch set up in the Portal is now always applied when the Queue starts, so the "initiate SCU switch" receipt no longer fails with a "source SCU not set up correctly" error. Starting the Queue with an older cached configuration now resets the switch setup to what that configuration contains.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
- fiskaltrust.Middleware.Queue.EF
- fiskaltrust.Middleware.Queue.MySQL
- fiskaltrust.Middleware.Queue.SQLite
🇩🇪 Bug Fix: Reliable storage of fiscal journal export files in the cloud cashbox (fiskaltrust/middleware#873)
We've fixed an issue where a storage failure was not handled correctly, which could lead to journal entries being stored without content.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
🇩🇪 Bug Fix: Correct TAR and DSFinV-K exports after a TSE replacement (fiskaltrust/middleware#871)
The TAR export now contains one archive per TSE and the DSFinV-K export uses the certificate of the TSE that signed each daily closing.
If your queue has used more than one TSE, the TAR export is an outer TAR with one TSE-<serial number>.tar per TSE, so you need to unpack it one additional level.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
- fiskaltrust.Middleware.Queue.EF
- fiskaltrust.Middleware.Queue.MySQL
- fiskaltrust.Middleware.Queue.SQLite
🇩🇪 Improvement: New charge item cases for cash-in and cash-out receipts with VAT (fiskaltrust/middleware#817, fiskaltrust/service-possystem-api#232)
The new ftChargeItemCase values 0x4445_0000_0000_00B1 to 0x4445_0000_0000_00B7 let you send cash-in (Einzahlung) and cash-out (Auszahlung) receipts with VAT (19 %, 7 %, 10.7 %, 5.5 %, not taxable, zero-rated or unknown), so the VAT is included in the DSFinV-K.
Existing receipts using 0x4445_0000_0000_0095 and 0x4445_0000_0000_0096 keep working as before.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
- fiskaltrust.Middleware.Queue.EF
- fiskaltrust.Middleware.Queue.MySQL
- fiskaltrust.Middleware.Queue.SQLite
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
🇩🇪 Bug Fix: Swissbit TSE with expired certificate can be initialized and exported again (fiskaltrust/middleware#857)
The Swissbit SCU now starts even with an expired TSE certificate, so the data stored on the TSE can still be exported for a tax audit. Signing is still not possible with an expired TSE, so it must be replaced for ongoing operation.
Affected packages:
- fiskaltrust.Middleware.SCU.DE.Swissbit
🇩🇪 Improvement: Swissbit TSE library updated to SDK version 6.0.2 (fiskaltrust/middleware#865)
The Swissbit SCU now uses version 6.0.2 of the Swissbit TSE library on Windows, Linux and Android, with no functional changes.
Affected packages:
- fiskaltrust.Middleware.SCU.DE.Swissbit
🇩🇪 Bug Fix: Clients removed from the Fiscal Cloud Connector no longer block the Deutsche Fiskal and Swissbit Cloud SCUs (fiskaltrust/middleware#838)
A client that had been removed from the Fiscal Cloud Connector (FCC) could cause requests, such as starting a transaction, to fail for every queue that used the same SCU. The SCUs now ignore removed clients.
Affected packages:
- fiskaltrust.Middleware.SCU.DE.DeutscheFiskal
- fiskaltrust.Middleware.SCU.DE.SwissbitCloud
🇩🇪 Bug Fix: More reliable Fiskaly login for the Fiskaly Certified SCU (fiskaltrust/middleware#805)
The SCU no longer floods Fiskaly with repeated login requests when Fiskaly responds slowly, and a successful retry after a temporary server error is no longer reported as an error. While Fiskaly is unavailable, receipts now fail immediately instead of waiting for a timeout.
Affected packages:
- fiskaltrust.Middleware.SCU.DE.FiskalyCertified
🇩🇪 Bug Fix: Fiskaly TSE export no longer fails when there is nothing new to export (fiskaltrust/middleware#800)
Requesting a TAR or journal export right after the last export, for example after a daily closing, now returns an empty result instead of failing. An empty export no longer creates an empty journal entry.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
- fiskaltrust.Middleware.Queue.EF
- fiskaltrust.Middleware.Queue.MySQL
- fiskaltrust.Middleware.Queue.SQLite
- fiskaltrust.Middleware.SCU.DE.FiskalyCertified
🇩🇪 Feature: [v2] Categories for cash movements without a sale in the POS System API (fiskaltrust/service-possystem-api#221)
The POS System API now supports categories for German cash movements without a sale (Geldtransit, Privateinlage/Privatentnahme, Lohnzahlung, Anfangsbestand and DifferenzSollIst).
The category is set in the local flag of the ftChargeItemCase, for example 0x4445_2091_0000_00A8 for a Geldtransit.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
🇩🇪 Bug Fix: [v2] Resending and late signing of receipts via the POS System API (fiskaltrust/service-possystem-api#248)
German receipts with the LateSigning or ReceiptRequested flag were previously mapped to an unknown receipt case.
The POS System API now handles both flags correctly, so receipts can be resent without being signed twice.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
🇩🇪 Bug Fix: [v2] Receipt case flags of handwritten, zero and lifecycle receipts are mapped correctly (fiskaltrust/service-possystem-api#242)
The HandWritten flag, the flags of zero receipts (TSE information, TSE-TAR download or bypass, TSE self-test and master data update) and the lifecycle flag for registration or de-registration only were previously mapped to an unknown receipt case that was processed as a late-signed receipt.
The POS System API now maps these flags as documented.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
🇮🇹 Bug Fix: Epson RT printers left in Z state after a manual closure no longer cause "unknown document state" errors (fiskaltrust/middleware#848)
After a daily closure performed directly on the printer, the first sale could be reported as "unknown document state" even though the receipt was printed. The SCU now returns the printer to its normal registration state before the first sale.
Affected packages:
- fiskaltrust.Middleware.SCU.IT.EpsonRTPrinter
🇦🇹 Bug Fix: [v2] Cash payment of a previously issued invoice is now signed by the POS System API (fiskaltrust/service-possystem-api#249)
The cash payment of a previously issued invoice was not signed and not added to the turnover counter. The fix is in the POS System API mapping; the Austrian Middleware itself is unchanged.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
Improvement: Launcher version now recorded in the "Queue started" journal entry (fiskaltrust/middleware#866)
The "Queue started" action journal entry now includes the Launcher version, which makes support cases and audits easier.
Affected packages:
- fiskaltrust.Middleware.Queue.AzureTableStorage
- fiskaltrust.Middleware.Queue.EF
- fiskaltrust.Middleware.Queue.MySQL
- fiskaltrust.Middleware.Queue.SQLite
Improvement: The LocalPosSystemApi helper now keeps its data across restarts (fiskaltrust/service-possystem-api#204, fiskaltrust/middleware-helper#15)
The helper now stores its operations in a local database file in the Middleware service folder instead of in memory, so they are still available after the Launcher restarts.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi
Improvement: Journal exports of the LocalPosSystemApi helper are streamed (fiskaltrust/service-possystem-api#250, fiskaltrust/middleware-helper#23)
Journal data requested through the local POS System API is now passed on to the caller as it is received instead of being loaded into memory first, which makes large journals more efficient to export.
Affected packages:
- fiskaltrust.Middleware.Helper.LocalPosSystemApi