From 9993e7c68b407f582442d08d18adb7ed6a92118a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 10 Aug 2015 14:36:30 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20recalc=5Flinetotal=20in?= =?utf8?q?=20display=5Flinetotal=20umbenannt,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit da hier nichts berechntet wird. --- SL/Controller/Order.pm | 2 +- templates/webpages/order/tabs/basic_data.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 781babd5f..62ef86204 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -170,7 +170,7 @@ sub action_set_item_values { ->val( '#' . $::form->{unit_dom_id}, $item->unit) ->val( '#' . $::form->{sellprice_dom_id}, $item->sellprice_as_number) ->val( '#' . $::form->{discount_dom_id}, $item->discount_as_percent) - ->run('recalc_linetotal', $::form->{item_id}, $::form->format_amount(\%::myconfig, $item->{linetotal}, -2)) + ->run('display_linetotal', $::form->{item_id}, $::form->format_amount(\%::myconfig, $item->{linetotal}, -2)) ->render($self); } diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 67ce0e2fa..736520ade 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -217,7 +217,7 @@ function set_item_values(event) { $.post("controller.pl", data, kivi.eval_json_result); } -function recalc_linetotal(item_id, amount) { +function display_linetotal(item_id, amount) { $('#item_' + item_id).parents("tr").first().find('[name="linetotal"]').html(amount); } -- 2.20.1