Commit 829965a4 by Nilu

disable manage own hiring team checkbox when hiring team is involved in another teams billing

parent 77f25d1e
...@@ -159,7 +159,7 @@ public class HiringTeam extends BaseHiringTeam ...@@ -159,7 +159,7 @@ public class HiringTeam extends BaseHiringTeam
@Override @Override
public FieldWriteability getWriteability_ManageOwnBilling() public FieldWriteability getWriteability_ManageOwnBilling()
{ {
if(!getManageOwnBilling()) if(!getManageOwnBilling() || (getManageOwnBilling() && getBillingTeamsCount() > 0))
{ {
return FieldWriteability.NOT_IN_GUI; return FieldWriteability.NOT_IN_GUI;
} }
......
...@@ -107,8 +107,21 @@ ...@@ -107,8 +107,21 @@
<% <%
if(company.getHiringTeamsCount() > 1) if(company.getHiringTeamsCount() > 1)
{ {
if(!hiringTeam.getManageOwnBilling())
{
%>
<div class="warning-box">
Billing has been disabled for this team as it is included in <%= hiringTeam.getBilledByTeam()%>.
</div>
<%
}
else
{
%>
<div class="form-brack-line-sub"></div>
<%
}
%> %>
<div class="form-brack-line-sub"></div>
<div class="form-group row"> <div class="form-group row">
<div class="col-md-6"> <div class="col-md-6">
<label><oneit:label GUIName="Will this team manage its own billing?" /></label> <label><oneit:label GUIName="Will this team manage its own billing?" /></label>
......
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