Revision b65a230d
Von Sven Schöling vor fast 15 Jahren hinzugefügt
bin/mozilla/wh.pl | ||
---|---|---|
170 | 170 |
my @contents = WH->get_warehouse_report("warehouse_id" => $form->{warehouse_id}, |
171 | 171 |
"bin_id" => $form->{bin_id}, |
172 | 172 |
"chargenumber" => $form->{chargenumber}, |
173 |
"partnumber" => $form->{partnumber},
|
|
174 |
"ean" => $form->{ean},
|
|
173 |
"partnumber" => $form->{partnumber},
|
|
174 |
"ean" => $form->{ean},
|
|
175 | 175 |
"description" => $form->{description}); |
176 | 176 |
|
177 | 177 |
$form->show_generic_error($locale->text("The selected warehouse is empty.")) if (0 == scalar(@contents)); |
... | ... | |
310 | 310 |
} elsif (($form->{partnumber} && ($form->{partnumber} ne $form->{old_partnumber})) || $form->{description} || $form->{ean}) { |
311 | 311 |
|
312 | 312 |
$form->{no_services} = 1; |
313 |
$form->{no_assemblies} = 0; # assemblies duerfen eingelagert werden (z.B. bei retouren)
|
|
313 |
$form->{no_assemblies} = 0; # assemblies duerfen eingelagert werden (z.B. bei retouren)
|
|
314 | 314 |
|
315 | 315 |
my $parts = Common->retrieve_parts(\%myconfig, $form, 'description', 1); |
316 | 316 |
|
... | ... | |
424 | 424 |
$form->show_generic_error($locale->text('Invalid quantity.'), 'back_button' => 1); |
425 | 425 |
} |
426 | 426 |
# TODO Es wäre schön, hier schon die maximale Anzahl der zu fertigenden Erzeugnisse zu haben |
427 |
#else { if ($form->{qty} > $maxcreate) { #s.o.
|
|
428 |
# $form->show_generic_error($locale->text('Can not create that quantity with current stock'), 'back_button' => 1);
|
|
429 |
# $form->show_generic_error('Maximale Stückzahl' . $maxcreate , 'back_button' => 1);
|
|
430 |
# }
|
|
427 |
#else { if ($form->{qty} > $maxcreate) { #s.o.
|
|
428 |
# $form->show_generic_error($locale->text('Can not create that quantity with current stock'), 'back_button' => 1);
|
|
429 |
# $form->show_generic_error('Maximale Stückzahl' . $maxcreate , 'back_button' => 1);
|
|
430 |
# }
|
|
431 | 431 |
# } |
432 | 432 |
|
433 | 433 |
if (!$form->{warehouse_id} || !$form->{bin_id}) { |
Auch abrufbar als: Unified diff
Tabs aus *.pl Dateien entfernt.