From: Bernd Bleßmann Date: Thu, 13 Aug 2015 14:42:10 +0000 (+0200) Subject: Auftrags-Controller: mit set_fat_item des Partpickers Preis vorausfüllen. X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=318d679b5f406db60eb41219cb742d1ae0683c3b;p=kivitendo-erp.git Auftrags-Controller: mit set_fat_item des Partpickers Preis vorausfüllen. --- diff --git a/templates/webpages/order/tabs/_item_input.html b/templates/webpages/order/tabs/_item_input.html index 3cadcd7f7..e3f4db17a 100644 --- a/templates/webpages/order/tabs/_item_input.html +++ b/templates/webpages/order/tabs/_item_input.html @@ -13,7 +13,7 @@ - [% L.part_picker('add_item.parts_id', '', style='width: 300px', class="add_item_input") %] + [% L.part_picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input") %] [% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right', class="add_item_input") %] [% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right', class="add_item_input") %] [% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right', class="add_item_input") %] diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 40badd23f..a46f7898b 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -232,6 +232,7 @@ function display_linetotal(item_id, amount) { $(function(){ $('#order_[%- cv_id %]').change(reload_cv_dependend_selections); $('[id^="order_orderitems"][id$="parts_id"]').change(set_item_values); + $('#add_item_parts_id').on('set_item:PartPicker', function(e,o) { $('#add_item_sellprice_as_number').val(kivi.format_amount(o.sellprice, -2)) }); $('.add_item_input').keydown(function(event) { if(event.keyCode == 13) { event.preventDefault();