CVar->get_non_editable_ic_cvars(form => $form,
dbh => $dbh,
- row => $i,
+ row => $i,
sub_module => 'delivery_order_items',
may_converted_from => ['orderitems', 'delivery_order_items']);
CVar->get_non_editable_ic_cvars(form => $form,
dbh => $dbh,
- row => $i,
+ row => $i,
sub_module => 'delivery_order_items',
may_converted_from => ['orderitems', 'delivery_order_items']);
'transfer_type' => $params{direction} eq 'in' ? 'stock' : 'shipped',
'project_id' => $request->{project_id},
'delivery_order_items_stock_id' => $request->{delivery_order_items_stock_id},
+ 'comment' => $request->{comment},
};
}
CVar->get_non_editable_ic_cvars(form => $form,
dbh => $dbh,
- row => $i,
+ row => $i,
sub_module => 'invoice',
may_converted_from => ['delivery_order_items', 'orderitems', 'invoice']);
CVar->get_non_editable_ic_cvars(form => $form,
dbh => $dbh,
- row => $i,
+ row => $i,
sub_module => 'invoice',
may_converted_from => ['delivery_order_items', 'orderitems', 'invoice']);
sub transfer_out {
$::lxdebug->enter_sub;
- my ($self, $form, $dbh) = @_;
+ my ($self, $form, $dbh) = @_;
my (@errors, @transfers);
$form->{"id_$i"},
$form->{"qty_$i"},
$form->{"unit_$i"});
-
+ next if ($err eq 'ignore service');
if (!@{ $err } && $wh_id && $bin_id) {
push @transfers, {
'parts_id' => $form->{"id_$i"},
'src_bin_id' => $bin_id,
'project_id' => $form->{"project_id_$i"},
'invoice_id' => $form->{"invoice_id_$i"},
+ 'comment' => $::locale->text("Default transfer invoice"),
};
}
# ignore service if they are not configured to be transfered
if ($part->is_service && !$conf->get_transfer_default_services) {
$::lxdebug->leave_sub(2);
- return;
+ return 'ignore service';
}
# test negative qty
my $diff_qty = $max_qty - $part_unit_qty;
if (!@errors && $diff_qty < 0) {
push @errors, $::locale->text("For part \"#1\" there are missing #2 #3 in the default warehouse/bin \"#4/#5\"",
- $part->description,
+ $part->description,
$::form->format_amount(\%::myconfig, -1*$diff_qty),
$part->unit_obj->name,
SL::DB::Warehouse->new(id => $wh_id)->load->description,
'bin_id' => $part_info_map{$form->{"id_$i"}}{bin_id},
'qty' => $qty,
'parts_id' => $form->{"id_$i"},
- 'comment' => 'Default transfer DO',
- 'ok' => 1,
+ 'comment' => $locale->text("Default transfer delivery order"),
'unit' => $part_info_map{$form->{"id_$i"}}{unit},
'warehouse_id' => $part_info_map{$form->{"id_$i"}}{warehouse_id},
'oe_id' => $form->{id},
</tr>
<tr>
- <td align="right" nowrap="true">[% LxERP.t8('Default Warehouse with ignoring on hand') %]</td>
+ <td align="right" nowrap="true">[% LxERP.t8('Default Warehouse with ignoring onhand') %]</td>
<td>
[% L.select_tag('defaults.warehouse_id_ignore_onhand', SELF.all_warehouses, id='warehouse_id_ignore_onhand', with_empty=1, default=SELF.defaults.warehouse_id_ignore_onhand, title_key='description',
onchange="warehouse_selected(this.selectedIndex == 0 ? -1 : warehouses[this.selectedIndex - 1].id, -1, 'bin_id_ignore_onhand')") %]
</td>
<td>
- [% LxERP.t8('This is the default bin for ignoring onhand') %]<br>
- [% LxERP.t8('If the default transfer out always succeed use this bin for negative stock quantity.') %]<br>
+ [% LxERP.t8('This is the default warehouse for ignoring onhand') %]<br>
</td>
</tr>
<tr>
<td align="right" nowrap="true">[% LxERP.t8('Default Bin with ignoring onhand') %]</td>
<td>[% L.select_tag('defaults.bin_id_ignore_onhand', [], id='bin_id_ignore_onhand', with_empty=1) %]</td>
+ <td>[% LxERP.t8('If the default transfer out always succeed use this bin for negative stock quantity.') %]</td>
</tr>
-
<tr><td colspan="3"><hr /></td></tr>
<tr>
<td align="right">[% LxERP.t8('Transfer out on posting sales invoices?') %]</td>
[% LxERP.t8('Transfer out all items of a sales invoice when posting it. Items are transfered out acording to the settings above.') %]
</td>
</tr>
-
<tr><td colspan="3"><hr /></td></tr>
<tr>
<tr>
[% LxERP.t8('The default delivery plan only checks if all delivery orders have been created not if the goods are transferred. This feature will check if all the goods are transferred. Caveat: Only the state of the delivery orders are checked not partial transferred delivery orders (in technical terms: the table inventory is not checked') %]
</td>
</tr>
-
</table>
</div>