Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f53a118d

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID f53a118d7c22a85f3fd32876d9a3d1a5af3846c5
  • Vorgänger 8172364e
  • Nachfolger 2d4d9d7f

PaymentTerm: Schreibfehler in Doku gefixt & neues Beispiel in Übersicht

Unterschiede anzeigen:

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