fiskaltrust / middleware

The fiskaltrust.Middleware is an integrated set of highly configurable software components for POS systems to abstract the complexity of national fiscalization laws.
https://docs.fiskaltrust.eu
European Union Public License 1.2
9 stars 4 forks source link

Introduce line cancellation flag in German Middleware #360

Open TSchmiedlechner opened 1 week ago

TSchmiedlechner commented 1 week ago

Context

Right now, it's not officially supported to send line cancellations to the Middleware. However, this

  1. Doesn't stop people from doing it, and
  2. Leads to issues because most POS systems display them on their physical receipts, and PosCreators want them on the digital receipt as well.

Currently many PosCreators just sent them inversed, which leads to plenty of issues in the data exports, e.g. when it comes to DFKA and DSFinV-K sums (specifically when cancelling requests, see example below).

Solution

We'll introduce a position cancellation flag (to the ftChargeItemCase and ftPayItemCase) that works the same as in the future v2 of the Middleware interface - both the Amount and the Quantity of the sent item will have to be reversed.

The flag for both cases should be 0x0000_0000_0020_0000. When this flag is sent, we will:

Tasks

forsthug commented 5 days ago

PR-Exports

PR-mw

docu