Revision 5629b51b
Von Waldemar Toews vor fast 11 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1918 | 1918 |
} else { |
1919 | 1919 |
$i = $form->{assembly_rows}; |
1920 | 1920 |
} |
1921 |
$form->{"qty_$i"} = 1 unless ($form->{"qty_$i"}); |
|
1921 |
$form->{"qty_$i"} = 1 unless ($form->{"qty_$i"} > 0);
|
|
1922 | 1922 |
|
1923 | 1923 |
$form->{sellprice} -= $form->{"sellprice_$i"} * $form->{"qty_$i"}; |
1924 | 1924 |
$form->{weight} -= $form->{"weight_$i"} * $form->{"qty_$i"}; |
... | ... | |
1935 | 1935 |
|
1936 | 1936 |
# set values for last invoice/order item |
1937 | 1937 |
$i = $form->{rowcount}; |
1938 |
$form->{"qty_$i"} = 1 unless ($form->{"qty_$i"}); |
|
1938 |
$form->{"qty_$i"} = 1 unless ($form->{"qty_$i"} > 0);
|
|
1939 | 1939 |
|
1940 | 1940 |
map { $form->{"${_}_$i"} = $newform{$_} } qw(partnumber description bin unit listprice inventory_accno income_accno expense_accno sellprice lastcost price_factor_id); |
1941 | 1941 |
map { $form->{"ic_${_}_$i"} = $newform{$_} } @ic_cvar_fields; |
Auch abrufbar als: Unified diff
Artikelmenge nach Hinzufügen übernehmen
Behebt #2281