From 9d6f6ee4598cdce78dead47818dc584292eae5a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 17 Aug 2015 14:01:51 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Scrollbar=20f=C3=BCr=20Po?= =?utf8?q?sitions-Tabelle=20und=20ans=20Ende=20scrollen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Order.pm | 1 + templates/webpages/order/tabs/basic_data.html | 53 +++++++++++-------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index d12596893..6d7da9f10 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -157,6 +157,7 @@ sub action_add_item { ->val('#add_item_qty_as_number', '') ->val('#add_item_sellprice_as_number', '') ->val('#add_item_discount_as_percent', '') + ->run('row_table_scroll_down') ->focus('#add_item_parts_id_name'); $self->_js_redisplay_amounts_and_taxes; diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 3bc64558e..f57cde89d 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -107,30 +107,34 @@ @@ -206,6 +210,9 @@ function display_linetotal(item_id, amount) { $('#item_' + item_id).parents("tr").first().find('[name="linetotal"]').html(amount); } +function row_table_scroll_down() { + $('#row_table_scroll_id').scrollTop($('#row_table_scroll_id')[0].scrollHeight); +} $(function(){ $('#order_[%- cv_id %]').change(reload_cv_dependend_selections); -- 2.20.1
- - - - - - - - - - - - - - - - - - - [%- FOREACH item = SELF.order.items_sorted %] - [%- PROCESS order/tabs/_row.html ITEM=item %] - [%- END %] - -
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+
+ + + + + + + + + + + + + + + + + + + [%- FOREACH item = SELF.order.items_sorted %] + [%- PROCESS order/tabs/_row.html ITEM=item %] + [%- END %] + + +
[%- LxERP.t8('reorder item') %][%- LxERP.t8('delete item') %][%- 'Partnumber' | $T8 %] [%- 'Description' | $T8 %] [%- 'Qty' | $T8 %] [%- 'Price Factor' | $T8 %] [%- 'Unit' | $T8 %] [%- 'Price' | $T8 %] [%- 'Discount' | $T8 %] [%- 'Extended' | $T8 %]
+
+