Revision 64262cd7
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
90 | 90 |
croak("Unsupported source object type '" . ref($source) . "'") unless ref($source) =~ m/^ SL::DB:: (?: Order | DeliveryOrder ) $/x; |
91 | 91 |
croak("Cannot create invoices for purchase records") unless $source->customer_id; |
92 | 92 |
|
93 |
my $terms = $source->can('payment_id') && $source->payment_id ? $source->payment_term->terms_netto : 0; |
|
93 |
my $terms = $source->can('payment_id') && $source->payment_id ? $source->payment_terms->terms_netto : 0;
|
|
94 | 94 |
|
95 | 95 |
my %args = ( map({ ( $_ => $source->$_ ) } qw(customer_id taxincluded shippingpoint shipvia notes intnotes curr salesman_id cusordnumber ordnumber quonumber |
96 | 96 |
department_id cp_id language_id payment_id delivery_customer_id delivery_vendor_id taxzone_id shipto_id |
Auch abrufbar als: Unified diff
Rose-Fremdschlüssel richtig benennen: wiederkehrende Rechnungen fixen