Revision 47cc9344
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
949 | 949 |
This method cannot handle already partly assigned bank transactions, i.e. |
950 | 950 |
a bank transaction that has a invoice_amount <> 0 but not the fully |
951 | 951 |
transaction amount (invoice_amount == amount). |
952 |
Currently this state is impossible from the point of the user interface, |
|
953 |
but for double safety and further reliance posting an bank_transaction |
|
954 |
where some invoice_amount is already assigned or a RecordLink from |
|
955 |
bank to document exists will not be accepted. |
|
956 | 952 |
|
957 | 953 |
If the amount of the bank transaction is higher than the sum of |
958 | 954 |
the assigned invoices (1 .. n) the last invoice will be overpayed. |
959 | 955 |
|
960 |
Therefore this function implements not all valid uses cases. |
|
961 |
|
|
962 | 956 |
The whole function is wrapped in a database transaction. If an |
963 | 957 |
exception occurs the bank transaction is not posted at all. The same |
964 | 958 |
is true if the code detects an error during the execution, e.g. a bank |
Auch abrufbar als: Unified diff
BankTransaction.pm POD verbessert, Feedback von Sven verarbeitet