Revision ed3bf4aa
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
1576 | 1576 |
$form->{subtotal_nofmt} = $form->{ordtotal}; |
1577 | 1577 |
} |
1578 | 1578 |
|
1579 |
$form->{ordtotal} = ($form->{taxincluded}) ? $form->{ordtotal} : $form->{ordtotal} + $tax; |
|
1579 |
my $grossamount = ($form->{taxincluded}) ? $form->{ordtotal} : $form->{ordtotal} + $tax; |
|
1580 |
$form->{ordtotal} = $form->round_amount( $grossamount, 2, 1); |
|
1581 |
$form->{rounding} = $form->round_amount( |
|
1582 |
$form->{ordtotal} - $form->round_amount($grossamount, 2), |
|
1583 |
2 |
|
1584 |
); |
|
1580 | 1585 |
|
1581 | 1586 |
# format amounts |
1587 |
$form->{rounding} = $form->format_amount($myconfig, $form->{rounding}, 2); |
|
1582 | 1588 |
$form->{quototal} = $form->{ordtotal} = $form->format_amount($myconfig, $form->{ordtotal}, 2); |
1583 | 1589 |
|
1584 | 1590 |
$form->set_payment_options($myconfig, $form->{$form->{type} =~ /_quotation/ ? 'quodate' : 'orddate'}, $form->{type}); |
Auch abrufbar als: Unified diff
added roundings on prints