From: erickson Date: Thu, 1 Apr 2010 15:29:40 +0000 (+0000) Subject: fixed function name in lineitem price setting code. update local copy of lineitem... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=770b11ce19059fc1547f02794fadb95c27ee3ac1;p=evergreen%2Fmasslnc.git fixed function name in lineitem price setting code. update local copy of lineitem after price changes to prevent clobbering of value git-svn-id: svn://svn.open-ils.org/ILS/trunk@16086 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm index 8764d9d437..f834827b3f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm @@ -211,7 +211,7 @@ sub create_lineitem { unless($li->estimated_unit_price) { # extract the price from the MARC data - my $price = get_li_price_from_attrs($li) or return $li; + my $price = get_li_price_from_attr($mgr->editor, $li) or return $li; $li->estimated_unit_price($price); return update_lineitem($mgr, $li); } diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 121bdb4db5..79a80953fb 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -562,6 +562,7 @@ function AcqLiTable() { params : [this.authtoken, li.id(), price], oncomplete : function(r) { openils.Util.readResponse(r); + li.estimated_unit_price(price); // update local copy } } );