diff --git a/queue/src/fiskaltrust.Middleware.Queue/SignProcessor.cs b/queue/src/fiskaltrust.Middleware.Queue/SignProcessor.cs index f14c07f15..2f1b503c8 100644 --- a/queue/src/fiskaltrust.Middleware.Queue/SignProcessor.cs +++ b/queue/src/fiskaltrust.Middleware.Queue/SignProcessor.cs @@ -351,7 +351,7 @@ public async Task CreateReceiptJournalAsync(ftQueue queue, ftQ } else { - receiptjournal.ftReceiptTotal = (receiptrequest?.cbChargeItems?.Sum(ci => ci.Amount)).GetValueOrDefault(); + receiptjournal.ftReceiptTotal = (receiptrequest?.cbChargeItems?.Sum(ci => Math.Sign(ci.Quantity) * ci.Amount)).GetValueOrDefault(); } receiptjournal.ftReceiptHash = _cryptoHelper.GenerateBase64ChainHash(queue.ftReceiptHash, receiptjournal, queueItem); await _receiptJournalRepository.InsertAsync(receiptjournal).ConfigureAwait(false);