Revision 524bc23e
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
SL/DB/Helper/Payment.pm | ||
---|---|---|
778 | 778 |
|
779 | 779 |
Transdate can either be a date object or a date string. |
780 | 780 |
Chart_id is the id of the payment booking chart. |
781 |
Amount is either a postive or negative number, but never 0. |
|
781 |
Amount is either a positive or negative number, but never 0. |
|
782 |
|
|
783 |
CAVEAT! The helper tries to get the sign right and all calls from BankTransaction are |
|
784 |
positive (abs($value)) values. |
|
782 | 785 |
|
783 | 786 |
|
784 | 787 |
Example: |
Auch abrufbar als: Unified diff
Kommentar zum Payment-Helper
Außer in den Testfällen wird der Helper nicht mit einem
negativen Amount aufgerufen. Im Helper befindet sich etwas
zuviel automagie. Eigentlich braucht man den Param amount nicht,
wird aber überall in kivi übergeben. Eigentlich darf der negativ
sein, verfälscht aber das multiplizieren im Helper.