Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6e1c5716

Von Jan Büren vor fast 2 Jahren hinzugefügt

  • ID 6e1c57166234886deebb9df46910c29f5053793b
  • Vorgänger dc0a81db
  • Nachfolger 5a321e6b

POD Anpassung für neue Parameter bei pay_invoice

Unterschiede anzeigen:

SL/DB/Helper/Payment.pm
866 866
Chart_id is the id of the payment booking chart.
867 867
Amount is either a positive or negative number, and for the case 'free_skonto' might be zero.
868 868

  
869
If the parameters currency and exchangerate exists the method will determine gain and
870
loss rates for exchangerates.
871

  
872
If the parameters fx_book is true and fx_fee_amount exists as number the method will book the costs of
873
foreign exchanges with a link GL Record.
874

  
869 875
CAVEAT! The helper tries to get the sign right and all calls from BankTransaction are
870 876
positive (abs($value)) values.
871 877

  
......
896 902
  $ap->pay_invoice(chart_id      => $bank->chart_id,
897 903
                   amount        => 500,
898 904
                   currency      => 'USD',
905
                   exchangerate  => 0.9820,
899 906
                   transdate     => DateTime->now->to_kivitendo,
900 907
                   memo          => 'foobar',
901 908
                   source        => 'barfoo',

Auch abrufbar als: Unified diff