projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50fb51d
)
ZUGFeRD: richtige Typencodes für Stornos
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 3 Mar 2020 11:38:25 +0000
(12:38 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 3 Mar 2020 11:38:25 +0000
(12:38 +0100)
SL/DB/Helper/ZUGFeRD.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/ZUGFeRD.pm
b/SL/DB/Helper/ZUGFeRD.pm
index
ae64c79
..
d4e5b42
100644
(file)
--- 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 {