? SL::DB::Manager::TransferType->find_by(direction => "id", description => "stock")
: SL::DB::Manager::TransferType->find_by(direction => "out", description => "shipped");
? SL::DB::Manager::TransferType->find_by(direction => "id", description => "stock")
: SL::DB::Manager::TransferType->find_by(direction => "out", description => "shipped");
for my $stock (@{ $item->delivery_order_stock_entries }) {
my $transfer = SL::DB::Inventory->new_from($stock);
$transfer->trans_type($trans_type);
for my $stock (@{ $item->delivery_order_stock_entries }) {
my $transfer = SL::DB::Inventory->new_from($stock);
$transfer->trans_type($trans_type);