Revision 9c8e598e
Von Jan Büren vor mehr als 3 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
1365 | 1365 |
die "guru meditation error: Can only assign amount to one bank account booking" if scalar @{ $payment } > 1; |
1366 | 1366 |
|
1367 | 1367 |
# credit/debit * -1 matches the sign for bt.amount and bt.invoice_amount |
1368 |
die "Can only assign the full (partial) bank amount to a single general ledger booking" |
|
1369 |
unless $bt->not_assigned_amount == $payment->[0]->amount * -1; |
|
1368 |
|
|
1369 |
die "Can only assign the full (partial) bank amount to a single general ledger booking" . $bt->not_assigned_amount . " " . ($payment->[0]->amount * -1) |
|
1370 |
unless (abs($bt->not_assigned_amount - ($payment->[0]->amount * -1)) < 0.001); |
|
1370 | 1371 |
|
1371 | 1372 |
$bt->update_attributes(invoice_amount => $bt->invoice_amount + ($payment->[0]->amount * -1)); |
1372 | 1373 |
|
Auch abrufbar als: Unified diff
Bankimport im Dialog verbuchen, Fließkommazahlen/Rundungsfehler erlauben