Revision f53a118d
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
SL/DB/PaymentTerm.pm | ||
---|---|---|
57 | 57 |
=head1 SYNOPSIS |
58 | 58 |
|
59 | 59 |
my $terms = SL::DB::PaymentTerm->new(id => $::form->{payment_id})->load; |
60 |
my $due_date_net = $erms->calc_date(terms => 'net'); # uses terms_netto |
|
61 |
my $due_date_discount = $erms->calc_date(terms => 'discount'); # uses terms_skonto |
|
60 |
my $due_date_net = $terms->calc_date(terms => 'net'); # uses terms_netto |
|
61 |
my $due_date_discount = $terms->calc_date(terms => 'discount'); # uses terms_skonto |
|
62 |
|
|
63 |
# Calculate due date taking the existing invoice date and the due |
|
64 |
# date entered by the user into account: |
|
65 |
my $due_date = $terms->calc_date( |
|
66 |
reference_date => $::form->{invdate}, |
|
67 |
due_date => $::form->{duedate}, |
|
68 |
); |
|
62 | 69 |
|
63 | 70 |
=head1 FUNCTIONS |
64 | 71 |
|
Auch abrufbar als: Unified diff
PaymentTerm: Schreibfehler in Doku gefixt & neues Beispiel in Übersicht