Skip to content

Commit

Permalink
Merge branch 'new-markets' of https://github.com/fiskaltrust/middleware
Browse files Browse the repository at this point in the history
… into new-markets
  • Loading branch information
StefanKert committed Dec 6, 2024
2 parents f7f829d + 923e330 commit 24c253b
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 @@ -38,7 +37,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 @@ -62,7 +61,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 @@ -71,7 +69,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 24c253b

Please sign in to comment.