Revision 6e1c5716
Von Jan Büren vor mehr als 2 Jahren hinzugefügt
SL/DB/Helper/Payment.pm | ||
---|---|---|
Chart_id is the id of the payment booking chart.
|
||
Amount is either a positive or negative number, and for the case 'free_skonto' might be zero.
|
||
|
||
If the parameters currency and exchangerate exists the method will determine gain and
|
||
loss rates for exchangerates.
|
||
|
||
If the parameters fx_book is true and fx_fee_amount exists as number the method will book the costs of
|
||
foreign exchanges with a link GL Record.
|
||
|
||
CAVEAT! The helper tries to get the sign right and all calls from BankTransaction are
|
||
positive (abs($value)) values.
|
||
|
||
... | ... | |
$ap->pay_invoice(chart_id => $bank->chart_id,
|
||
amount => 500,
|
||
currency => 'USD',
|
||
exchangerate => 0.9820,
|
||
transdate => DateTime->now->to_kivitendo,
|
||
memo => 'foobar',
|
||
source => 'barfoo',
|
Auch abrufbar als: Unified diff
POD Anpassung für neue Parameter bei pay_invoice