From 9317413e36266e74e10cc0c38ce10f9c6992710a Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Thu, 20 Feb 2014 21:02:07 -0500 Subject: [PATCH] LP 1198465: Add virtual link to void_payment from money.billing. Add a virtual link in the fm_IDL.xml entry for class mb (money.billing) to point to mvp (money.void_payment). Alter open-ils.circ.money.billing.retrieve.all to flesh the void_payment field added to money.billing when it retrieves bills. Signed-off-by: Jason Stephenson --- Open-ILS/examples/fm_IDL.xml | 2 ++ Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index adab4b3616..f393e74687 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -6917,10 +6917,12 @@ SELECT usr, + + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm index cc19fdb1ca..619ae40a73 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm @@ -810,9 +810,10 @@ sub billing_items { $evt = $U->check_perms($staff->id, $staff->home_ou, 'VIEW_TRANSACTION'); return $evt if $evt; } - + return $apputils->simplereq( 'open-ils.cstore', - 'open-ils.cstore.direct.money.billing.search.atomic', { xact => $transid } ) + 'open-ils.cstore.direct.money.billing.search.atomic', { xact => $transid }, + {flesh=>1, flesh_fields=>{mb=>['void_payment']}}) } -- 2.11.0