Revision c0cc8bb2
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
519 | 519 |
$form->{nodiscount} = $form->format_amount($myconfig, $nodiscount, 2); |
520 | 520 |
$form->{yesdiscount} = $form->format_amount($myconfig, $form->{nodiscount_total} - $nodiscount, 2); |
521 | 521 |
|
522 |
$form->{invtotal} = ($form->{taxincluded}) ? $form->{total} : $form->{total} + $tax; |
|
523 |
$form->{total} = $form->format_amount($myconfig, $form->{invtotal} - $form->{paid}, 2); |
|
522 |
my $grossamount = ($form->{taxincluded}) ? $form->{total} : $form->{total} + $tax; |
|
523 |
$form->{invtotal} = $form->round_amount($grossamount, 2, 1); |
|
524 |
$form->{rounding} = $form->round_amount( |
|
525 |
$form->{invtotal} - $form->round_amount($grossamount, 2), |
|
526 |
2 |
|
527 |
); |
|
524 | 528 |
|
529 |
$form->{rounding} = $form->format_amount($myconfig, $form->{rounding}, 2); |
|
530 |
$form->{total} = $form->format_amount($myconfig, $form->{invtotal} - $form->{paid}, 2); |
|
525 | 531 |
$form->{invtotal} = $form->format_amount($myconfig, $form->{invtotal}, 2); |
526 | 532 |
$form->{paid} = $form->format_amount($myconfig, $form->{paid}, 2); |
527 | 533 |
|
Auch abrufbar als: Unified diff
added roundings on prints