Revision 6c3fd7c4
Von Tamino Steinert vor 10 Monaten hinzugefügt
scripts/import_variant_csv.pl | ||
---|---|---|
607 | 607 |
} |
608 | 608 |
} else { |
609 | 609 |
foreach my $stock (@stocks) { |
610 |
my $current_part_qty = |
|
611 |
sum0 |
|
612 |
map {$_->qty} |
|
613 |
@{SL::DB::Manager::Inventory->get_all( |
|
614 |
part => $variant, |
|
615 |
warehouse => $stock->{warehouse}, |
|
616 |
bin => $stock->{warehouse}->bins->[0], |
|
617 |
)}; |
|
610 |
my $current_part_qty = get_stock( |
|
611 |
part => $variant, |
|
612 |
warehouse => $stock->{warehouse}, |
|
613 |
bin => $stock->{warehouse}->bins->[0] |
|
614 |
) || 0; |
|
615 |
|
|
618 | 616 |
next if $current_part_qty == $stock->{part_qty}; |
619 | 617 |
|
620 | 618 |
my $transfer_type_correction = SL::DB::Manager::TransferType->find_by( |
Auch abrufbar als: Unified diff
kuw: CSV-Import-Script: Beschleunigen von Lagerüberprüfung