} else {
for my $sinfo (@{ $stock_info }) {
my $bin = SL::DB::Bin->load_cached($sinfo->{bin_id});
- $sinfo->{warehouse_description} = $bin->warehouse->description;
- $sinfo->{bin_description} = $bin->description;
+ $sinfo->{warehousedescription} = $bin->warehouse->description;
+ $sinfo->{bindescription} = $bin->description;
map { $sinfo->{"stock_$_"} = $sinfo->{$_} } qw(qty unit);
}
}
t8('Delete'),
call => [ 'kivi.DeliveryOrder.delete_order' ],
confirm => $::locale->text('Do you really want to delete this object?'),
- disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
+ disabled => !$self->order->id ? t8('This object has not been saved yet.') :
+ $self->order->delivered ? t8('The parts for this order have already been transferred') : undef,
only_if => $self->type_data->show_menu("delete"),
],