projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ZUGFeRD: richtige Typencodes für Stornos
[kivitendo-erp.git]
/
SL
/
DB
/
Helper
/
ZUGFeRD.pm
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 {