[%- USE HTML -%][%- USE LxERP -%][%- USE L -%]
[% LxERP.t8('Default Transfer') %] [% L.yes_no_tag('defaults.transfer_default', SELF.defaults.transfer_default) %] [% LxERP.t8('Show Transfer via default') %]
[% LxERP.t8('Default Transfer with services') %] [% L.yes_no_tag('defaults.transfer_default_services', SELF.defaults.transfer_default_services) %] [% LxERP.t8('Transfer services via default') %]
[% LxERP.t8('Default Warehouse') %] [% L.select_tag('defaults.warehouse_id', SELF.all_warehouses, id='warehouse_id', with_empty=1, default=SELF.defaults.warehouse_id, title_key='description', onchange="warehouse_selected(this.selectedIndex == 0 ? -1 : warehouses[this.selectedIndex - 1].id, -1)") %] [% LxERP.t8('This is the default bin for parts') %]
[% LxERP.t8('If configured this bin will be preselected for all new parts. Also this bin will be used as the master default bin, if default transfer out with master bin is activated.') %]
[% LxERP.t8('Default Bin') %] [% L.select_tag('defaults.bin_id', [], id='bin_id', with_empty=1) %]
[% LxERP.t8('Default Transfer with Master Bin') %] [% L.yes_no_tag('defaults.transfer_default_use_master_default_bin', SELF.defaults.transfer_default_use_master_default_bin) %] [% LxERP.t8('Use master default bin for Default Transfer, if no default bin for the part is configured') %]

[% LxERP.t8('Default Transfer Out with negative inventory') %] [% L.yes_no_tag('defaults.transfer_default_ignore_onhand', SELF.defaults.transfer_default_ignore_onhand) %] [% LxERP.t8('Default Transfer Out always succeed. The current part onhand is ignored and the inventory can have negative stocks (not recommended).') %]
[% LxERP.t8('Default Warehouse with ignoring onhand') %] [% 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')") %] [% LxERP.t8('This is the default warehouse for ignoring onhand') %]
[% LxERP.t8('Default Bin with ignoring onhand') %] [% L.select_tag('defaults.bin_id_ignore_onhand', [], id='bin_id_ignore_onhand', with_empty=1) %] [% LxERP.t8('If the default transfer out always succeed use this bin for negative stock quantity.') %]

[% LxERP.t8('Transfer out on posting sales invoices?') %] [% L.yes_no_tag('defaults.is_transfer_out', SELF.defaults.is_transfer_out) %] [% LxERP.t8('Transfer out all items of a sales invoice when posting it. Items are transfered out acording to the settings above.') %]
[% LxERP.t8('Match Sales Invoice Serial numbers with inventory charge numbers?') %] [% L.yes_no_tag('defaults.sales_serial_eq_charge', SELF.defaults.sales_serial_eq_charge) %] [% LxERP.t8('If one or more space separated serial numbers are assigned in a sales invoice, match the charge number of the inventory item. Assumes that Serial Number and Charge Number have 1:1 relation. Otherwise throw a error message for the default sales invoice transfer.') %]

[% LxERP.t8('Show Bestbefore') %] [% L.yes_no_tag('defaults.show_bestbefore', SELF.defaults.show_bestbefore) %] [% LxERP.t8('Show fields used for the best before date?') %]
[% LxERP.t8('ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.') %]
[% LxERP.t8('This can be done with the following query:') %]

UPDATE inventory SET bestbefore = NULL;

[% LxERP.t8('Any stock contents containing a best before date will be impossible to stock out otherwise.') %]
[% LxERP.t8('Undo Transfer Interval') %] [% L.input_tag('defaults.undo_transfer_interval', LxERP.format_amount(SELF.defaults.undo_transfer_interval, 0), style=style) %] [% LxERP.t8('Defines the interval where undoing transfers from a delivery order are allowed.') %]
[% LxERP.t8("Produce Assembly Configuration") %]
[% LxERP.t8('Assembly creation warehouse dependent') %] [% L.yes_no_tag('defaults.produce_assembly_same_warehouse', SELF.defaults.produce_assembly_same_warehouse) %] [% LxERP.t8('Produce assembly only if all parts are in the same warehouse') %]
[% LxERP.t8('Assembly creation transfers services') %] [% L.yes_no_tag('defaults.produce_assembly_transfer_service', SELF.defaults.produce_assembly_transfer_service) %] [% LxERP.t8('Produce assembly consumes services if assigned as a assembly item') %]
[% LxERP.t8("Services in Delivery Orders") %]
[% LxERP.t8('Sales Orders Services are deliverable') %] [% L.yes_no_tag('defaults.sales_delivery_order_check_service', SELF.defaults.sales_delivery_order_check_service) %] [% LxERP.t8('Ignore services for the sales orders state of delivery') %]
[% LxERP.t8('Purchase Orders Services are deliverable') %] [% L.yes_no_tag('defaults.purchase_delivery_order_check_service', SELF.defaults.purchase_delivery_order_check_service) %] [% LxERP.t8('Ignore services for the purchase orders state of delivery') %]
[% LxERP.t8("Shipped Quantity Algorithm") %]
[% LxERP.t8('Require stock out to consider a delivery order position delivered?') %] [% L.yes_no_tag('defaults.shipped_qty_require_stock_out', SELF.defaults.shipped_qty_require_stock_out) %] [% LxERP.t8('If yes, delivery order positions are considered "delivered" only if they have been stocked out of the inventory. Otherwise saving the delivery order is considered delivered.') %]