Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Dec 6, 2024
1 parent 1dd8f2c commit d3b29ad
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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!
}
}
};
Expand All @@ -58,7 +57,6 @@ private static List<Product> GetProducts(List<ReceiptRequest> receiptRequest)
private static TaxTable GetTaxTable(List<ReceiptRequest> receiptRequest)
{
var lines = receiptRequest.SelectMany(x => x.cbChargeItems).Select(GetLine);

var taxTableEntries = lines.Select(x => new TaxTableEntry
{
TaxType = x.Tax.TaxType,
Expand All @@ -67,7 +65,6 @@ private static TaxTable GetTaxTable(List<ReceiptRequest> receiptRequest)
Description = "",
TaxPercentage = x.Tax.TaxPercentage
}).DistinctBy(x => x.TaxCode).ToList();

return new TaxTable
{
TaxTableEntry = taxTableEntries
Expand Down

0 comments on commit d3b29ad

Please sign in to comment.