From: Jason Stephenson Date: Wed, 8 Jan 2014 01:48:06 +0000 (-0500) Subject: Update Publisher/actor.pm for changes in billing. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=988be2f262bba5d5b435a04cca3fa85f757515d5;p=working%2FEvergreen.git Update Publisher/actor.pm for changes in billing. Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm index 84d0683ff3..42221e5f55 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm @@ -54,7 +54,7 @@ sub usr_total_owed { my $sql = <<" SQL"; SELECT x.usr, - SUM(COALESCE((SELECT SUM(b.amount) FROM money.billing b WHERE b.voided IS FALSE AND b.xact = x.id),0.0)) - + SUM(COALESCE((SELECT SUM(b.amount) FROM money.billing b WHERE b.xact = x.id),0.0)) - SUM(COALESCE((SELECT SUM(p.amount) FROM money.payment p WHERE p.voided IS FALSE AND p.xact = x.id),0.0)) FROM money.billable_xact x WHERE x.usr = ? AND x.xact_finish IS NULL