LP1904036 Bill details voider / accepting user
authorBill Erickson <berickxx@gmail.com>
Wed, 25 Aug 2021 16:13:14 +0000 (12:13 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.html
Open-ILS/src/eg2/src/app/staff/circ/patron/bill-statement.component.ts

index df88b72..7324746 100644 (file)
         </eg-grid>
       </div>
       <div class="mt-3">
-        <eg-grid idlClass="mp" [dataSource]="paymentDataSource" 
+        <eg-grid idlClass="mbp" [dataSource]="paymentDataSource" 
           persistKey="circ.patron.xact_details_details_payments"
           i18n-toolbarLabel toolbarLabel="Payments" [sortable]="true">
           <eg-grid-toolbar-action label="Edit Note" i18n-label
index 03a5e82..a9c2762 100644 (file)
@@ -76,20 +76,25 @@ export class BillStatementComponent implements OnInit {
             if (sort.length) {
                 orderBy.mb = sort[0].name + ' ' + sort[0].dir;
             }
-            return this.pcrud.search(
-                'mb', {xact: this.xactId}, {order_by: orderBy});
+            return this.pcrud.search('mb', {xact: this.xactId}, {
+                flesh: 1,
+                flesh_fields: {mb: ['voider']},
+                order_by: orderBy
+            });
         };
 
         this.paymentDataSource.getRows = (pager: Pager, sort: any[]) => {
             const orderBy: any = {};
             if (sort.length) {
-                orderBy.mp = sort[0].name + ' ' + sort[0].dir;
+                orderBy.mbp = sort[0].name + ' ' + sort[0].dir;
             }
-            return this.pcrud.search(
-                'mp', {xact: this.xactId}, {order_by: orderBy});
+            return this.pcrud.search('mbp', {xact: this.xactId}, {
+                flesh: 1,
+                flesh_fields: {mbp: ['accepting_usr']},
+                order_by: orderBy
+            });
         };
 
-
         this.net.request(
             'open-ils.circ',
             'open-ils.circ.money.statement.retrieve',