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
41d5fd00
Commit
41d5fd00
authored
Oct 05, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix recalc issue in edit company and billing validations
parent
e944c0de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
19 deletions
+16
-19
SaveCompanyFP.java
cmsWebApp/src/performa/form/SaveCompanyFP.java
+8
-15
hiring_teams.jsp
cmsWebApp/webroot/extensions/adminportal/hiring_teams.jsp
+1
-1
my_company.jsp
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
+7
-3
No files found.
cmsWebApp/src/performa/form/SaveCompanyFP.java
View file @
41d5fd00
...
...
@@ -31,13 +31,6 @@ public class SaveCompanyFP extends SaveFP
LogMgr
.
log
(
Company
.
LOG
,
LogLevel
.
PROCESSING1
,
"In SaveCompanyFP saving company : "
,
company
);
// if(CollectionUtils.equals(company.getIsLogoDeleted(), Boolean.TRUE))
// {
// company.setCompanyLogo(null);
//
// LogMgr.log(Company.LOG, LogLevel.PROCESSING1,"In SaveCompanyFP setting comany logo to null of company : ", company );
// }
if
(
CollectionUtils
.
equals
(
hiringTeam
.
getIsLogoDeleted
(),
Boolean
.
TRUE
))
{
hiringTeam
.
setHiringTeamLogo
(
null
);
...
...
@@ -45,10 +38,10 @@ public class SaveCompanyFP extends SaveFP
LogMgr
.
log
(
Company
.
LOG
,
LogLevel
.
PROCESSING1
,
"In SaveCompanyFP setting hiring team logo to null of hiring team : "
,
hiringTeam
);
}
//
if(hiringTeam.getManageOwnBilling())
//
{
//
hiringTeam.setBillingTeam(null);
//
}
if
(
hiringTeam
.
getManageOwnBilling
())
{
hiringTeam
.
setBillingTeam
(
null
);
}
if
(
CollectionUtils
.
equals
(
isPayment
,
Boolean
.
TRUE
)
&&
company
.
getPaymentJobCount
()!=
null
)
{
...
...
@@ -86,10 +79,10 @@ public class SaveCompanyFP extends SaveFP
BusinessObjectParser
.
assertFieldCondition
(
company
.
getSelectedPaymentPlan
()!=
null
,
company
,
Company
.
SINGLEREFERENCE_PaymentPlan
,
"mandatory"
,
exceptions
,
true
,
request
);
}
//
if(hiringTeam != null && !hiringTeam.getManageOwnBilling())
//
{
//
BusinessObjectParser.assertFieldCondition(hiringTeam.getBillingTeam() != null, hiringTeam , HiringTeam.SINGLEREFERENCE_BillingTeam, "mandatory", exceptions, true, request);
//
}
if
(
hiringTeam
!=
null
&&
!
hiringTeam
.
getManageOwnBilling
())
{
BusinessObjectParser
.
assertFieldCondition
(
hiringTeam
.
getBillingTeam
()
!=
null
,
hiringTeam
,
HiringTeam
.
SINGLEREFERENCE_BillingTeam
,
"mandatory"
,
exceptions
,
true
,
request
);
}
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
}
...
...
cmsWebApp/webroot/extensions/adminportal/hiring_teams.jsp
View file @
41d5fd00
...
...
@@ -48,7 +48,7 @@
<script type="text/javascript">
$(document).ready(function()
{
recalcFunction = setupRecalc ($("
listHiringTeams"), {'recalcOnError':true});
recalcFunction = setupRecalc ($("form#
listHiringTeams"), {'recalcOnError':true});
});
</script>
...
...
cmsWebApp/webroot/extensions/adminportal/my_company.jsp
View file @
41d5fd00
...
...
@@ -20,7 +20,7 @@
<script type="text/javascript">
$(document).ready(function()
{
recalcFunction = setupRecalc ($("editCompany"), {'recalcOnError':true});
recalcFunction = setupRecalc ($("
form#
editCompany"), {'recalcOnError':true});
$("#upload").change(function(){
readURL(this);
...
...
@@ -119,10 +119,12 @@
<div class="col-md-6">
<label><oneit:label GUIName="Will this team manage its own billing?" /></label>
</div>
<oneit:recalcClass htmlTag="div" classScript="hiringTeam.getManageOwnBilling() ? 'show': 'hide'" hiringTeam="<%= hiringTeam %>">
<div class="col-md-6">
<oneit:recalcClass htmlTag="div" classScript="hiringTeam.getManageOwnBilling() ? 'hide': 'show'" hiringTeam="<%= hiringTeam %>">
<label><oneit:label GUIName="Which team will manage the billing?"/></label>
</oneit:recalcClass>
</div>
</div>
<div class="form-group row">
<div class="col-md-6">
<div class="radio radio-primary second-radio-primary oneit-radio">
...
...
@@ -136,10 +138,12 @@
</label>
</div>
</div>
<div id="billing_team" class="<%= "col-md-6 " + (hiringTeam.getManageOwnBilling() ? "hide" : "show") %>" >
<div class="col-md-6">
<oneit:recalcClass htmlTag="div" classScript="hiringTeam.getManageOwnBilling() ? 'hide': 'show'" hiringTeam="<%= hiringTeam %>">
<div class="wider-select">
<tagfile:ormsingleasso_select obj="<%= hiringTeam %>" assocName="BillingTeam" options="<%= Utils.getOtherHiringTeams(hiringTeam) %>"/>
</div>
</oneit:recalcClass>
</div>
</div>
<div class="form-brack-line-sub"></div>
...
...
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