diff options
Diffstat (limited to 'src/countries/nl.cpp')
| -rw-r--r-- | src/countries/nl.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/countries/nl.cpp b/src/countries/nl.cpp index 4d507f4..795aff6 100644 --- a/src/countries/nl.cpp +++ b/src/countries/nl.cpp @@ -65,7 +65,7 @@ bool _nl_add_billing_item_to_tax_report(tax_report* report, invoice* inv, billin // https://goedestartbelastingdienst.nl/wiki/view/7494ecb4-f6d2-4f85-a200-5a3ee5d45b75/btw-aangifte-het-invullen-van-de-verschillende-rubrieken tax_rate rate; - a_err err = administration::tax_rate_get_by_id(&rate, item->tax_rate_id); + a_err err = administration::tax_rate_get_by_internal_code(&rate, item->tax_internal_code); if (err != A_ERR_SUCCESS) return 0; tax_subtotal totals = administration::billing_item_convert_to_default_currency(inv, *item); @@ -127,17 +127,17 @@ bool _nl_add_billing_item_to_tax_report(tax_report* report, invoice* inv, billin if (strops::equals(inv->supplier.address.country_code, "NL")) { - if (strops::equals(rate.category_code, "AE")) { // NL reverse charge. - tax_line* tl = administration::get_tax_line_from_report(report, "2a"); - tl->total_net += totals.net; - tl->total_tax += totals.net * 0.21f; // TODO fr? - - a5->total_tax += totals.net * 0.21f; - b5->total_tax += totals.net * 0.21f; - } - else { - b5->total_tax += totals.tax; - } + // if (strops::equals(rate., "AE")) { // NL reverse charge. + // tax_line* tl = administration::get_tax_line_from_report(report, "2a"); + // tl->total_net += totals.net; + // tl->total_tax += totals.net * 0.21f; // TODO fr? + + // a5->total_tax += totals.net * 0.21f; + // b5->total_tax += totals.net * 0.21f; + // } + // else { + // b5->total_tax += totals.tax; + // } } else if (!country::is_EU(inv->supplier.address.country_code)) { tax_line* tl = administration::get_tax_line_from_report(report, "4a"); |
