From: Bernd Bleßmann Date: Mon, 10 Aug 2015 12:36:30 +0000 (+0200) Subject: Auftrags-Controller: recalc_linetotal in display_linetotal umbenannt, … X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9993e7c68b407f582442d08d18adb7ed6a92118a;p=kivitendo-erp.git Auftrags-Controller: recalc_linetotal in display_linetotal umbenannt, … da hier nichts berechntet wird. --- 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); }