[open-ils-commits] r16086 - in trunk/Open-ILS: src/perlmods/OpenILS/Application/Acq web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 1 11:29:43 EDT 2010
Author: erickson
Date: 2010-04-01 11:29:40 -0400 (Thu, 01 Apr 2010)
New Revision: 16086
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
fixed function name in lineitem price setting code. update local copy of lineitem after price changes to prevent clobbering of value
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-04-01 15:29:39 UTC (rev 16085)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2010-04-01 15:29:40 UTC (rev 16086)
@@ -211,7 +211,7 @@
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);
}
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-04-01 15:29:39 UTC (rev 16085)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-04-01 15:29:40 UTC (rev 16086)
@@ -562,6 +562,7 @@
params : [this.authtoken, li.id(), price],
oncomplete : function(r) {
openils.Util.readResponse(r);
+ li.estimated_unit_price(price); // update local copy
}
}
);
More information about the open-ils-commits
mailing list