freeside/Freeside — pull request #25 by fozzmoo (2014-03-18 14:29:33+00:00)
Title: apply amount can be exactly the amount credited

When calling FS::cust_credit_bill->new() and passing it an amount exactly equal to the amount credited in a credit referenced by crednum, check() was returning with a message: "Cannot apply more than remaining value of credit." It seems we should be able to apply the exact amount.