private static AccountingEntryLineDto ToDto(AccountingEntryLine line) { return(new AccountingEntryLineDto() { AccountNumber = line.Number.Value, ProductName = line.Name.Value, Sum = line.NetSum, Dimension = null, DimensionItem = null, VatPercentage = line.GetVatPercentage(), VatType = VatTypeMappings[line.VatType], }); }
private static int AscendingVatPercent(AccountingEntryLine line) { return(line.Vat == null ? FirstOrder : line.Vat.Value); }