[open-ils-commits] r19196 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 18 17:52:39 EST 2011


Author: gmc
Date: 2011-01-18 17:52:33 -0500 (Tue, 18 Jan 2011)
New Revision: 19196

Modified:
   branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm
Log:
fix glitch that could break invoice proration

Signed-off-by: Galen Charlton <gmc at esilibrary.com>

Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm	2011-01-18 22:52:04 UTC (rev 19195)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Acq/Invoice.pm	2011-01-18 22:52:33 UTC (rev 19196)
@@ -495,7 +495,7 @@
             my $paid_diff = $full_item_paid - $total_debited;
             my $cost_diff = $full_item_cost - $total_debited;
             $logger->info("invoice: repairing prorate descrepency of paid:$paid_diff and cost:$cost_diff");
-            my $new_paid = $largest_item->amount + $paid_diff;
+            my $new_paid = $largest_item->amount_paid + $paid_diff;
             my $new_cost = $largest_item->cost_billed + $cost_diff;
 
             $largest_debit = $e->retrieve_acq_fund_debit($largest_debit->id); # get latest copy



More information about the open-ils-commits mailing list