X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Finventory%2Fwarehouse_selection_stock.html;fp=templates%2Fwebpages%2Finventory%2Fwarehouse_selection_stock.html;h=9aca162ba1d1257eee9184f4da79cffd6e8579c3;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=5901f6deb34d1d47823d7e04f8dd1d5357010a69;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;p=kivitendo-erp.git diff --git a/templates/webpages/inventory/warehouse_selection_stock.html b/templates/webpages/inventory/warehouse_selection_stock.html index 5901f6deb..9aca162ba 100644 --- a/templates/webpages/inventory/warehouse_selection_stock.html +++ b/templates/webpages/inventory/warehouse_selection_stock.html @@ -1,18 +1,19 @@ [%- USE T8 %] [%- USE L %] +[%- USE P %] [%- USE HTML %] [%- USE LxERP %]

[% title | html %]

-[%- PROCESS 'common/flash.html' %] +[%- INCLUDE 'common/flash.html' %] -
+ - + @@ -29,25 +30,20 @@ - + [% IF INSTANCE_CONF.get_show_bestbefore %] - + [%- END %] - - - - - + + + + + - +
[% 'Part' | $T8 %][% L.part_picker('part_id', SELF.part) %][% P.part.picker('part_id', SELF.part) %]
[% 'Charge number' | $T8 %][% L.input_tag('chargenumber', SELF.chargenumber, size=30) %][% L.input_tag('chargenumber', FORM.chargenumber, size=30) %]
[% 'Best Before' | $T8 %][% L.date_tag('bestbefore', SELF.bestbefore) %][% L.date_tag('bestbefore', FORM.bestbefore) %]
[% 'EAN' | $T8 %]
[% 'Quantity' | $T8 %] - + [% L.input_tag('qty', LxERP.format_amount(FORM.qty), size=10) %] [%- IF SELF.part.unit %] [% L.select_tag('unit_id', SELF.part.available_units, title_key='name', default=SELF.unit.id) %] [%- ELSE %] @@ -56,14 +52,16 @@
[% 'Select type of transfer in' | $T8 %]:[% L.select_tag('transfer_type_id', TRANSFER_TYPES, title_key='description') %]
[% 'Optional comment' | $T8 %][% L.input_tag('comment', FORM.comment, size=60) %]
- - -
@@ -81,14 +79,15 @@ function reload_warehouse_selection () { function reload_bin_selection () { $.post("controller.pl", { action: 'Inventory/warehouse_changed', warehouse_id: function(){ return $('#warehouse_id').val() } }, kivi.eval_json_result); } +function check_part_selection_before_stocking() { + if ($('#part_id').val() !== '') + return true; + + alert(kivi.t8('No article has been selected yet.')); + return false; +} $(function(){ $('#part_id').change(reload_warehouse_selection); - $('#part_id').change(function(){ - if ($('#part_id').val() > 0) - $('#action_stock').removeAttr('disabled'); - else - $('#action_stock').attr('disabled', 'disabled'); - }); $('#warehouse_id').change(reload_bin_selection); })