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:
fea9489
)
Auftrags-Controller: Zahlungsbedingungen nach flatten_to_form zurücksetzen, …
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 23 Sep 2015 13:07:49 +0000
(15:07 +0200)
committer
G. Richardson
<information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:58 +0000
(16:15 +0100)
… wenn sie in der Maske nicht gesetzt wurden.
SL/Controller/Order.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Order.pm
b/SL/Controller/Order.pm
index
8c3ca54
..
b6b87a8
100644
(file)
--- a/
SL/Controller/Order.pm
+++ b/
SL/Controller/Order.pm
@@
-532,6
+532,8
@@
sub _create_pdf {
$print_form->{media} = $params->{media} || 'file';
$order->flatten_to_form($print_form, format_amounts => 1);
+ # flatten_to_form sets payment_terms from customer/vendor - we do not want that here
+ delete $print_form->{payment_terms} if !$print_form->{payment_id};
my @errors = ();
$print_form->throw_on_error(sub {