Revision a1358f12
Von Sven Schöling vor fast 14 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
865 | 865 |
map { $form->{"${_}_$form->{rowcount}"} = $ref->{$_} } keys %{ $ref }; |
866 | 866 |
map { $form->{"${_}_$form->{rowcount}"} = $form->format_amount(\%myconfig, $ref->{$_}) } qw(qty sellprice lastcost); |
867 | 867 |
|
868 |
if ($vc_discount){ # falls wir einen Lieferanten/Kundenrabatt haben
|
|
868 |
if ($vc_discount){ # falls wir einen Lieferanten/Kundenrabatt haben |
|
869 | 869 |
# und keinen anderen discount wert an $i ... |
870 | 870 |
$form->{"discount_$form->{rowcount}"} ||= $vc_discount; # ... nehmen wir diesen Rabatt |
871 | 871 |
} |
... | ... | |
1310 | 1310 |
foreach my $request (@{ DO->unpack_stock_information('packed' => $form->{"stock_out_$i"}) }) { |
1311 | 1311 |
$request->{parts_id} = $form->{"id_$i"}; |
1312 | 1312 |
$request->{base_qty} = $request->{qty} * $units->{$request->{unit}}->{factor} / $base_unit_factor; |
1313 |
$request->{project_id} = $form->{"project_id_$i"} ? $form->{"project_id_$i"} : $form->{globalproject_id};
|
|
1313 |
$request->{project_id} = $form->{"project_id_$i"} ? $form->{"project_id_$i"} : $form->{globalproject_id}; |
|
1314 | 1314 |
|
1315 | 1315 |
my $map_key = join '--', ($form->{"id_$i"}, @{$request}{qw(warehouse_id bin_id chargenumber bestbefore)}); |
1316 | 1316 |
|
Auch abrufbar als: Unified diff
Fixt eure Editoren!