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
3c4ad790
Commit
3c4ad790
authored
Nov 27, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPJ pricing according to selected currency
parent
b1cf1e30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
HiringTeam.java
cmsWebApp/src/performa/orm/HiringTeam.java
+15
-2
manage_plan.jsp
cmsWebApp/webroot/extensions/adminportal/manage_plan.jsp
+2
-1
No files found.
cmsWebApp/src/performa/orm/HiringTeam.java
View file @
3c4ad790
...
...
@@ -14,6 +14,7 @@ import oneit.utils.StringUtils;
import
oneit.utils.filter.Filter
;
import
oneit.utils.parsers.FieldException
;
import
performa.orm.types.AssessmentType
;
import
performa.orm.types.CurrencyType
;
import
performa.orm.types.RoleType
;
import
performa.utils.StripeUtils
;
...
...
@@ -218,8 +219,19 @@ public class HiringTeam extends BaseHiringTeam
public
Double
getPPJAmount
(
Job
job
)
{
double
amount
=
job
!=
null
?
(
job
.
getAssessmentType
()
==
AssessmentType
.
COMPREHENSIVE
?
PaymentPlan
.
PAY_PER_JOB_AMOUNT
:
PaymentPlan
.
PAY_PER_JOB_EXPRESS
)
:
PaymentPlan
.
PAY_PER_JOB_AMOUNT
;
//
double amount = job != null ? (job.getAssessmentType() == AssessmentType.COMPREHENSIVE ? PaymentPlan.PAY_PER_JOB_AMOUNT : PaymentPlan.PAY_PER_JOB_EXPRESS) : PaymentPlan.PAY_PER_JOB_AMOUNT;
return
amount
*
(
getCoupon
()
!=
null
?
(
100
-
getCoupon
().
getPercentageOff
())
*
0.01
:
1
);
return
getPPJAmount
()
*
(
getCoupon
()
!=
null
?
(
100
-
getCoupon
().
getPercentageOff
())
*
0.01
:
1
);
}
public
Double
getPPJAmount
()
{
CurrencyType
currency
=
getCountry
().
getCurrency
();
return
currency
==
CurrencyType
.
NZD
?
412
D
:
currency
==
CurrencyType
.
CAD
?
358
D
:
currency
==
CurrencyType
.
USD
?
277
D
:
currency
==
CurrencyType
.
GBP
?
212
D
:
currency
==
CurrencyType
.
EUR
?
239
D
:
385
D
;
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/manage_plan.jsp
View file @
3c4ad790
...
...
@@ -76,6 +76,7 @@
$(".invalid-coupon-close-button").on("click",function(){
PopupCoupon.close();
PopupAlert.close();
});
$(".change-plan-no-button").on("click",function(){
...
...
@@ -217,7 +218,7 @@
{
%>
<div class="per-job-amount-past">
was <oneit:toString value="<%=
PaymentPlan.PAY_PER_JOB_AMOUNT
%>" mode="<%= currencyFormat %>"/> per job
was <oneit:toString value="<%=
hiringTeam.getPPJAmount()
%>" mode="<%= currencyFormat %>"/> per job
</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