From: Moritz Bunkus Date: Tue, 30 Jun 2020 13:54:20 +0000 (+0200) Subject: ZUGFeRD: Gesamtsteuer nach PTC-Strukturänderung richtig ermitteln X-Git-Tag: release-3.5.6.1~164 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5b6abfd0f8a19c90851045afa3a04cf7f0afc2d0;p=kivitendo-erp.git ZUGFeRD: Gesamtsteuer nach PTC-Strukturänderung richtig ermitteln --- diff --git a/SL/DB/Helper/ZUGFeRD.pm b/SL/DB/Helper/ZUGFeRD.pm index 7ab425d48..211e88535 100644 --- a/SL/DB/Helper/ZUGFeRD.pm +++ b/SL/DB/Helper/ZUGFeRD.pm @@ -325,7 +325,7 @@ sub _totals { $params{xml}->dataElement("ram:LineTotalAmount", _r2($self->netamount)); $params{xml}->dataElement("ram:TaxBasisTotalAmount", _r2($self->netamount)); - $params{xml}->dataElement("ram:TaxTotalAmount", _r2(sum(values %{ $params{ptc_data}->{taxes} })), currencyID => "EUR"); + $params{xml}->dataElement("ram:TaxTotalAmount", _r2(sum(values %{ $params{ptc_data}->{taxes_by_tax_id} })), currencyID => "EUR"); $params{xml}->dataElement("ram:GrandTotalAmount", _r2($self->amount)); $params{xml}->dataElement("ram:TotalPrepaidAmount", _r2($self->paid)); $params{xml}->dataElement("ram:DuePayableAmount", _r2($self->amount - $self->paid));