fixed function name in lineitem price setting code. update local copy of lineitem...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 1 Apr 2010 15:29:40 +0000 (15:29 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 1 Apr 2010 15:29:40 +0000 (15:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16086 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
Open-ILS/web/js/ui/default/acq/common/li_table.js

index 8764d9d..f834827 100644 (file)
@@ -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);
     }
index 121bdb4..79a8095 100644 (file)
@@ -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
                 }
             }
         );