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.