Implementing Brent Mills' suggestion on Launchpad.
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
if ($U->is_true($billing->voided)) {
$amount = $billing->amount;
} else { # adjusted billing
- map { $amount = $U->fpadd($amount, $_->amount) } @{$billing->adjustments};
+ map { $amount = $U->fpsum($amount, $_->amount) } @{$billing->adjustments};
}
my $evt = $CC->create_bill(
$e,
my ($billing) = @_;
my $amount_adj = 0;
- map { $amount_adj = $U->fpadd($amount_adj, $_->amount) } @{$billing->adjustments};
+ map { $amount_adj = $U->fpsum($amount_adj, $_->amount) } @{$billing->adjustments};
return $billing->amount == $amount_adj;
}