From: Jason Stephenson Date: Fri, 21 Feb 2014 02:02:07 +0000 (-0500) Subject: LP 1198465: Add virtual link to void_payment from money.billing. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9317413e36266e74e10cc0c38ce10f9c6992710a;p=working%2FEvergreen.git 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 --- 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']}}) }