From: G. Richardson Date: Tue, 23 Jun 2020 07:22:50 +0000 (+0200) Subject: S:D:Order: deliverydate Methode für PTC X-Git-Tag: release-3.5.6.1~168 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9f809e7f551c8341f97dbff418c4ea4162ce3239;p=kivitendo-erp.git S:D:Order: deliverydate Methode für PTC --- diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index bba7fc8ef..37322428a 100644 --- 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;