From: Moritz Bunkus Date: Tue, 3 Mar 2020 11:38:25 +0000 (+0100) Subject: ZUGFeRD: richtige Typencodes für Stornos X-Git-Tag: release-3.5.6.1~245^2~18 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b7c38d9911493355f6626d5b9be2a53175323f63;p=kivitendo-erp.git ZUGFeRD: richtige Typencodes für Stornos --- diff --git a/SL/DB/Helper/ZUGFeRD.pm b/SL/DB/Helper/ZUGFeRD.pm index ae64c7981..d4e5b4294 100644 --- a/SL/DB/Helper/ZUGFeRD.pm +++ b/SL/DB/Helper/ZUGFeRD.pm @@ -50,7 +50,10 @@ sub _type_code { # 381 (Credit note) # 389 (Credit note, self billed invoice) - return $type eq 'credit_note' ? 381 : 380; + return $type eq 'credit_note' ? 381 + : $type eq 'invoice_storno' ? 457 + : $type eq 'credit_note_storno' ? 458 + : 380; } sub _unit_code {