fleshing attributes on lineitem retrieval
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Feb 2008 22:43:11 +0000 (22:43 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Feb 2008 22:43:11 +0000 (22:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8827 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm

index d98bb7e..d2ad0e5 100644 (file)
@@ -845,7 +845,15 @@ sub retrieve_po_lineitem {
     return $e->event unless $e->checkauth;
     $options ||= {};
 
-    my $po_li = $e->retrieve_acq_po_lineitem($li_id) or return $e->event;
+    my $po_li = $e->retrieve_acq_po_lineitem([
+        $li_id, 
+        {   flesh => 1,
+            flesh_fields => {
+                acqpoli => ['attributes']
+            },
+        }
+    ]) or return $e->event;
+
     return $e->die_event if po_perm_failure($e, $po_li->purchase_order);
 
     if($$options{flesh_li_details}) {