Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19195
dcc99617-32d9-48b4-a31d-
7c20da2025e4
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