From 64262cd7d40e179101b61e14600741abb287c420 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 12 Apr 2013 16:46:44 +0200 Subject: [PATCH] =?utf8?q?Rose-Fremdschl=C3=BCssel=20richtig=20benennen:?= =?utf8?q?=20wiederkehrende=20Rechnungen=20fixen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Invoice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 77d6769a8..861c92ae4 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -90,7 +90,7 @@ sub new_from { croak("Unsupported source object type '" . ref($source) . "'") unless ref($source) =~ m/^ SL::DB:: (?: Order | DeliveryOrder ) $/x; croak("Cannot create invoices for purchase records") unless $source->customer_id; - my $terms = $source->can('payment_id') && $source->payment_id ? $source->payment_term->terms_netto : 0; + my $terms = $source->can('payment_id') && $source->payment_id ? $source->payment_terms->terms_netto : 0; my %args = ( map({ ( $_ => $source->$_ ) } qw(customer_id taxincluded shippingpoint shipvia notes intnotes curr salesman_id cusordnumber ordnumber quonumber department_id cp_id language_id payment_id delivery_customer_id delivery_vendor_id taxzone_id shipto_id -- 2.20.1