Commit cefcfd1f by Nilu

minor modification

parent fdd9b7c3
......@@ -16,6 +16,7 @@ import oneit.servlets.process.SaveFP;
import oneit.utils.BusinessException;
import oneit.utils.DateDiff;
import oneit.utils.MultiException;
import oneit.utils.math.NullArith;
import performa.intercom.utils.IntercomUtils;
import performa.orm.*;
import performa.orm.types.JobStatus;
......@@ -49,7 +50,7 @@ public class SaveJobFP extends SaveFP
job.setApplyBy(DateDiff.add(DateDiff.getToday(), Calendar.DATE, 30));
job.setOpenDate(new Date());
company.setUsedCredits(company.getUsedCredits() + 1);
company.setUsedCredits(NullArith.add(company.getUsedCredits(), 1).intValue());
if(status == JobStatus.OPEN)
{
......
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