Revision 20e6c669
Von Jan Büren vor mehr als 14 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
1777 | 1777 |
|
1778 | 1778 |
map { $form->{$_} = $saved_vars{$_} } keys %saved_vars; |
1779 | 1779 |
|
1780 |
&prepare_order; |
|
1781 |
|
|
1782 | 1780 |
# prepare_order assumes that the discount is in db-notation (0.05) and not user-notation (5) |
1783 |
# 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 |
|
1781 |
# and therefore multiplies the values by 100 in the case of reading from db or making an order |
|
1782 |
# from several quotation, so we convert this back into percent-notation for the user interface by multiplying with 0.01 |
|
1783 |
# ergänzung 03.10.2010 muss vor prepare_order passieren (s.a. Svens Kommentar zu Bug 1017) |
|
1784 |
# das parse_amount wird oben schon ausgeführt, deswegen an dieser stelle raus (wichtig: kommawerte bei discount testen) |
|
1784 | 1785 |
for my $i (1 .. $form->{rowcount}) { |
1785 |
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * 0.01);
|
|
1786 |
$form->{"discount_$i"} /=100;
|
|
1786 | 1787 |
}; |
1787 | 1788 |
|
1789 |
&prepare_order; |
|
1790 |
|
|
1788 | 1791 |
# format amounts |
1789 | 1792 |
for my $i (1 .. $form->{rowcount} - 1) { |
1790 | 1793 |
map { $form->{"${_}_$i"} =~ s/\"/"/g } qw(partnumber description unit); |
Auch abrufbar als: Unified diff
Fehlerbehebung für Bug 1017, die Anmerkung von Sven war korrekt, die Umformatierung muss vor prepare_order gemacht werden