From: Moritz Bunkus Date: Tue, 21 Feb 2017 08:25:59 +0000 (+0100) Subject: PaymentTerm: Schreibfehler in Doku gefixt & neues Beispiel in Übersicht X-Git-Tag: release-3.5.4~1433 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f53a118d7c22a85f3fd32876d9a3d1a5af3846c5;p=kivitendo-erp.git PaymentTerm: Schreibfehler in Doku gefixt & neues Beispiel in Übersicht --- diff --git a/SL/DB/PaymentTerm.pm b/SL/DB/PaymentTerm.pm index b78da528d..db443e947 100644 --- a/SL/DB/PaymentTerm.pm +++ b/SL/DB/PaymentTerm.pm @@ -57,8 +57,15 @@ SL::DB::PaymentTerm - Rose model for the payment_terms table =head1 SYNOPSIS my $terms = SL::DB::PaymentTerm->new(id => $::form->{payment_id})->load; - my $due_date_net = $erms->calc_date(terms => 'net'); # uses terms_netto - my $due_date_discount = $erms->calc_date(terms => 'discount'); # uses terms_skonto + my $due_date_net = $terms->calc_date(terms => 'net'); # uses terms_netto + my $due_date_discount = $terms->calc_date(terms => 'discount'); # uses terms_skonto + + # Calculate due date taking the existing invoice date and the due + # date entered by the user into account: + my $due_date = $terms->calc_date( + reference_date => $::form->{invdate}, + due_date => $::form->{duedate}, + ); =head1 FUNCTIONS