Revision d5285906
Von Sven Schöling vor fast 3 Jahren hinzugefügt
SL/DB/Inventory.pm | ||
---|---|---|
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
sub new_from_delivery_order_stock { |
36 |
my ($stock) = @_; |
|
36 |
my ($class, $stock) = @_;
|
|
37 | 37 |
|
38 | 38 |
my $project = $stock->delivery_order_item->effective_project; |
39 | 39 |
|
40 |
return __PACKAGE__->new(
|
|
40 |
return $class->new(
|
|
41 | 41 |
delivery_order_items_stock_id => $stock->id, |
42 | 42 |
parts_id => $stock->delivery_order_item->parts_id, |
43 |
qty => $stock->unit->convert_to($stock->qty => $stock->delivery_order_item->part->unit_obj), |
|
44 |
unit => $stock->delivery_order_item->part->unit_obj, |
|
43 |
qty => $stock->unit_obj->convert_to($stock->qty => $stock->delivery_order_item->part->unit_obj), |
|
45 | 44 |
warehouse_id => $stock->warehouse_id, |
46 | 45 |
bin_id => $stock->bin_id, |
47 | 46 |
chargenumber => $stock->chargenumber, |
Auch abrufbar als: Unified diff
DeliveryOrder: transfer_inventory fixes