Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
8992bf9b
Commit
8992bf9b
authored
Jan 04, 2019
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue set up billing popup: if billing is managed by another team, it was showing the popup
parent
9932d318
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
HiringTeam.java
cmsWebApp/src/performa/orm/HiringTeam.java
+11
-1
page_admin_home.jsp
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
+3
-2
No files found.
cmsWebApp/src/performa/orm/HiringTeam.java
View file @
8992bf9b
...
@@ -120,6 +120,12 @@ public class HiringTeam extends BaseHiringTeam
...
@@ -120,6 +120,12 @@ public class HiringTeam extends BaseHiringTeam
}
}
@Override
public
Boolean
getManageOwnBilling
()
{
return
isTrue
(
super
.
getManageOwnBilling
());
}
public
boolean
hasValidCoupon
()
throws
FieldException
public
boolean
hasValidCoupon
()
throws
FieldException
{
{
if
(
getCoupon
()
!=
null
)
if
(
getCoupon
()
!=
null
)
...
@@ -257,6 +263,9 @@ public class HiringTeam extends BaseHiringTeam
...
@@ -257,6 +263,9 @@ public class HiringTeam extends BaseHiringTeam
public
boolean
hasBillingSetup
()
public
boolean
hasBillingSetup
()
{
{
return
getCardID
()
!=
null
&&
getIsPPJ
()
!=
null
&&
(
getIsPPJ
()
||
(!
getIsPPJ
()
&&
getPaymentPlan
()
!=
null
));
HiringTeam
billingTeam
=
getManageOwnBilling
()
?
this
:
getBilledByTeam
();
return
billingTeam
.
getCardID
()
!=
null
&&
billingTeam
.
getIsPPJ
()
!=
null
&&
(
billingTeam
.
getIsPPJ
()
||
(!
billingTeam
.
getIsPPJ
()
&&
billingTeam
.
getPaymentPlan
()
!=
null
));
}
}
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
View file @
8992bf9b
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
CompanyUser companyUser = secUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
CompanyUser companyUser = secUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
HiringTeam hiringTeam = companyUser.getSelectedTeam();
HiringTeam hiringTeam = companyUser.getSelectedTeam();
HiringTeam billingTeam = hiringTeam.getManageOwnBilling() ? hiringTeam : hiringTeam.getBilledByTeam();
SearchHome searchHome = (SearchHome) RunSearchExecutorFP.setupExecutor(request, SearchHome.REFERENCE_SearchHome, true);
SearchHome searchHome = (SearchHome) RunSearchExecutorFP.setupExecutor(request, SearchHome.REFERENCE_SearchHome, true);
Job[] allJobs = (Job[])process.getAttribute("allJobs");
Job[] allJobs = (Job[])process.getAttribute("allJobs");
RoleType userRole = companyUser.getRoleForHiringTeam(hiringTeam);
RoleType userRole = companyUser.getRoleForHiringTeam(hiringTeam);
...
@@ -220,7 +221,7 @@
...
@@ -220,7 +221,7 @@
</div>
</div>
</oneit:form>
</oneit:form>
<%
<%
if(
hir
ingTeam.getCardID() == null)
if(
bill
ingTeam.getCardID() == null)
{
{
%>
%>
<oneit:form name="setupBilling" method="post" enctype="multipart/form-data">
<oneit:form name="setupBilling" method="post" enctype="multipart/form-data">
...
@@ -257,7 +258,7 @@
...
@@ -257,7 +258,7 @@
<%
<%
}
}
else if(
hiringTeam.getIsPPJ() == null || (!hiringTeam.getIsPPJ() && hir
ingTeam.getPaymentPlan() == null))
else if(
billingTeam.getIsPPJ() == null || (!billingTeam.getIsPPJ() && bill
ingTeam.getPaymentPlan() == null))
{
{
%>
%>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment