From b7c38d9911493355f6626d5b9be2a53175323f63 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 3 Mar 2020 12:38:25 +0100 Subject: [PATCH] =?utf8?q?ZUGFeRD:=20richtige=20Typencodes=20f=C3=BCr=20St?= =?utf8?q?ornos?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/ZUGFeRD.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.20.1