From d3b29ad80299cde741efbb49007b32e77ed2d770 Mon Sep 17 00:00:00 2001 From: Stefan Kert Date: Fri, 6 Dec 2024 13:46:00 +0100 Subject: [PATCH] Fix --- .../Exports/SAFTPT/SAFTSchemaPT10401/SAFTMapping.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/queue/src/fiskaltrust.Middleware.Localization.QueuePT/Exports/SAFTPT/SAFTSchemaPT10401/SAFTMapping.cs b/queue/src/fiskaltrust.Middleware.Localization.QueuePT/Exports/SAFTPT/SAFTSchemaPT10401/SAFTMapping.cs index 84db0a941..f1bfdae59 100644 --- a/queue/src/fiskaltrust.Middleware.Localization.QueuePT/Exports/SAFTPT/SAFTSchemaPT10401/SAFTMapping.cs +++ b/queue/src/fiskaltrust.Middleware.Localization.QueuePT/Exports/SAFTPT/SAFTSchemaPT10401/SAFTMapping.cs @@ -4,7 +4,6 @@ using fiskaltrust.Api.POS.Models.ifPOS.v2; using fiskaltrust.Middleware.Localization.QueuePT.Exports.SAFTPT; using fiskaltrust.Middleware.Localization.QueuePT.Interface; -using fiskaltrust.Middleware.Storage.PT; using fiskaltrust.storage.V0; using fiskaltrust.storage.V0.MasterData; @@ -34,7 +33,7 @@ public static AuditFile CreateAuditFile(AccountMasterData accountMasterData, Lis NumberOfEntries = invoices.Count, TotalDebit = invoices.SelectMany(x => x!.Line).Sum(x => x.DebitAmount ?? 0.0m), TotalCredit = invoices.SelectMany(x => x!.Line).Sum(x => x.CreditAmount), - Invoice = invoices!, + Invoice = invoices! } } }; @@ -58,7 +57,6 @@ private static List GetProducts(List receiptRequest) private static TaxTable GetTaxTable(List receiptRequest) { var lines = receiptRequest.SelectMany(x => x.cbChargeItems).Select(GetLine); - var taxTableEntries = lines.Select(x => new TaxTableEntry { TaxType = x.Tax.TaxType, @@ -67,7 +65,6 @@ private static TaxTable GetTaxTable(List receiptRequest) Description = "", TaxPercentage = x.Tax.TaxPercentage }).DistinctBy(x => x.TaxCode).ToList(); - return new TaxTable { TaxTableEntry = taxTableEntries