Commit 7f1633b5 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'nkupdates' into 'master'

Fixed undefined reference

See merge request !51
parents 5788ab27 2f80cd68
Pipeline #5165 passed with stages
in 3 minutes and 30 seconds
...@@ -604,7 +604,7 @@ sub createPaymentAllocation ...@@ -604,7 +604,7 @@ sub createPaymentAllocation
} }
$paymentBalance->bsub($detail->{'Amount'}); $paymentBalance->bsub($detail->{'Amount'});
if ($paymentBalance->is_neg()) { if ($paymentBalance->is_neg()) {
setError("Creating this allocation will exceed payment '".$payment->{'PaymentNumber'}."' amount by ".$paymentBalance->bstr()); setError("Creating this allocation will exceed payment '".$detail->{'PaymentNumber'}."' amount by ".$paymentBalance->bstr());
return ERR_OVERALLOC; return ERR_OVERALLOC;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment