Commit cd4f64c6 by Nilu

S12524060 # Client - Incoming Issues (raised by Client) #Click on Share gives error

S12525428 # Client - Incoming Issues (raised by Client) #Review button gives error - job was Draft
parent bf25423b
......@@ -106,6 +106,7 @@ public class HiringTeam extends BaseHiringTeam
return card != null ? String.format("%02d", card.getExpMonth()) + " / " + (card.getExpYear() % 100) : "";
}
@Override
public Integer getUsedCredits()
{
......@@ -113,6 +114,13 @@ public class HiringTeam extends BaseHiringTeam
}
@Override
public Integer getAvailableCredits()
{
return super.getAvailableCredits()!= null ? super.getAvailableCredits() : 0;
}
public boolean hasValidCoupon() throws FieldException
{
if(getCoupon() != null)
......
......@@ -77,7 +77,7 @@
if(!billingTeam.isTrue(hiringTeam.getIsPPJ()))
{
Integer activeCount = billingTeam.getUsedCredits();
Integer totCount = billingTeam.getAvailableCredits() != null ? billingTeam.getAvailableCredits() : 0;
Integer totCount = billingTeam.getAvailableCredits();
Integer remCount = totCount - activeCount > 0 ? totCount - activeCount : 0;
%>
<div class="space-55">You have <%= remCount %> jobs remaining for this month.</div>
......
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