Revision cb253140
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
158 | 158 |
$linetotal = $form->round_amount($form->{"sellprice_$i"} * $form->{"qty_$i"} / $price_factor, 2); |
159 | 159 |
|
160 | 160 |
if ($form->{taxincluded}) { |
161 |
|
|
161 |
|
|
162 | 162 |
$taxamount = $linetotal * ($taxrate / (1 + $taxrate)); |
163 | 163 |
$form->{"sellprice_$i"} = $form->{"sellprice_$i"} * (1 / (1 + $taxrate)); |
164 | 164 |
|
... | ... | |
388 | 388 |
# income accounts, it is enough to add the total rounding error to one of |
389 | 389 |
# the income accounts, with the one assigned to the last row being used |
390 | 390 |
# (lastinventoryaccno) |
391 |
|
|
391 |
|
|
392 | 392 |
# in the purchase invoice case rounding errors may be split between |
393 | 393 |
# inventory accounts and expense accounts. After rounding, an error of 1 |
394 | 394 |
# cent is introduced if the total rounding error exceeds 0.005. The total |
... | ... | |
1067 | 1067 |
push @values, $form->{"partnumber_$i"}; |
1068 | 1068 |
} |
1069 | 1069 |
|
1070 |
if ($form->{"id_${i}"}) { |
|
1071 |
$where .= qq| AND p.id = ?|; |
|
1072 |
push @values, $form->{"id_${i}"}; |
|
1073 |
} |
|
1074 |
|
|
1070 | 1075 |
if ($form->{"description_$i"}) { |
1071 | 1076 |
$where .= " ORDER BY p.description"; |
1072 | 1077 |
} else { |
Auch abrufbar als: Unified diff
Bei Artikelauswahl nur ID als Hidden mitschleifen, nicht alle Artikeldetails
Fix für Bug 1670.