Revision 51e25e57
Von Geoffrey Richardson vor mehr als 15 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
1623 | 1623 |
|
1624 | 1624 |
&prepare_order; |
1625 | 1625 |
|
1626 |
# prepare_order assumes that the discount is in db-notation (0.05) and not user-notation (5) |
|
1627 |
# and therefore multiplies the values by 100 in the case of reading from db or making an order from several quotation, so we convert this back into percent-notation for the user interface by multiplying with 0.01 |
|
1628 |
for $i (1 .. $form->{rowcount}) { |
|
1629 |
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * 0.01); |
|
1630 |
}; |
|
1631 |
|
|
1626 | 1632 |
# format amounts |
1627 | 1633 |
for $i (1 .. $form->{rowcount} - 1) { |
1628 | 1634 |
map { $form->{"${_}_$i"} =~ s/\"/"/g } qw(partnumber description unit); |
Auch abrufbar als: Unified diff
Fix von bug 1017
Erläuterung im Code