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:
d04f241
)
S:D:Order: deliverydate Methode für PTC
author
G. Richardson
<grichardson@kivitec.de>
Tue, 23 Jun 2020 07:22:50 +0000
(09:22 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 26 Jun 2020 11:45:16 +0000
(13:45 +0200)
SL/DB/Order.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Order.pm
b/SL/DB/Order.pm
index
bba7fc8
..
3732242
100644
(file)
--- a/
SL/DB/Order.pm
+++ b/
SL/DB/Order.pm
@@
-85,6
+85,12
@@
sub is_type {
return shift->type eq shift;
}
+sub deliverydate {
+ # oe doesn't have deliverydate, but PTC checks for deliverydate or transdate to determine tax
+ # oe can't deal with deviating tax rates, but at least make sure PTC doesn't barf
+ return shift->transdate;
+}
+
sub displayable_type {
my $type = shift->type;