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
2124dab8
Commit
2124dab8
authored
May 03, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S10656911 # Issue List #The job link hasn't generated properly for 2 cases
parent
18142654
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
MakePaymentFP.java
cmsWebApp/src/performa/form/MakePaymentFP.java
+8
-1
StripeUtils.java
cmsWebApp/src/performa/utils/StripeUtils.java
+1
-1
card_payment.jsp
cmsWebApp/webroot/extensions/adminportal/card_payment.jsp
+1
-1
No files found.
cmsWebApp/src/performa/form/MakePaymentFP.java
View file @
2124dab8
...
@@ -18,6 +18,8 @@ import com.stripe.model.Card;
...
@@ -18,6 +18,8 @@ import com.stripe.model.Card;
import
com.stripe.model.Charge
;
import
com.stripe.model.Charge
;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashSet
;
import
java.util.Set
;
import
oneit.logging.LoggingArea
;
import
oneit.logging.LoggingArea
;
import
oneit.security.SecUser
;
import
oneit.security.SecUser
;
import
oneit.utils.DateDiff
;
import
oneit.utils.DateDiff
;
...
@@ -111,7 +113,12 @@ public class MakePaymentFP extends SaveFP
...
@@ -111,7 +113,12 @@ public class MakePaymentFP extends SaveFP
}
}
// restarting process as custom attributes needs to be updated to intercom
// restarting process as custom attributes needs to be updated to intercom
completeProcessRestartAndRestoreAttribs
(
process
,
request
);
Set
<
String
>
attribsToRestore
=
new
HashSet
<>();
attribsToRestore
.
add
(
"Job"
);
attribsToRestore
.
add
(
"Company"
);
completeProcessRestartAndRestoreAttribs
(
process
,
attribsToRestore
);
secUser
=
SecUser
.
getTXUser
(
process
.
getTransaction
());
secUser
=
SecUser
.
getTXUser
(
process
.
getTransaction
());
companyUser
=
secUser
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
);
companyUser
=
secUser
.
getExtension
(
CompanyUser
.
REFERENCE_CompanyUser
);
...
...
cmsWebApp/src/performa/utils/StripeUtils.java
View file @
2124dab8
...
@@ -132,7 +132,7 @@ public class StripeUtils
...
@@ -132,7 +132,7 @@ public class StripeUtils
{
{
Map
<
String
,
Object
>
invoiceParams
=
new
HashMap
<>();
Map
<
String
,
Object
>
invoiceParams
=
new
HashMap
<>();
invoiceParams
.
put
(
"
subscription"
,
company
.
getStripeSubscription
());
invoiceParams
.
put
(
"
customer"
,
company
.
getStripeReference
());
return
Invoice
.
list
(
invoiceParams
).
getData
();
return
Invoice
.
list
(
invoiceParams
).
getData
();
}
}
...
...
cmsWebApp/webroot/extensions/adminportal/card_payment.jsp
View file @
2124dab8
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
SecUser loggedInUser = SecUser.getTXUser(transaction);
SecUser loggedInUser = SecUser.getTXUser(transaction);
CompanyUser companyUser = loggedInUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
CompanyUser companyUser = loggedInUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
Company company = companyUser.getCompany();
Company company = companyUser.getCompany();
String nextPage = WebUtils.getSamePageInRenderMode(request, WebUtils.CREATED_JOB) + "&fromJob=true";
Job job = (Job) process.getAttribute("Job");
Job job = (Job) process.getAttribute("Job");
String nextPage = WebUtils.getSamePageInRenderMode(request, WebUtils.CREATED_JOB) + "&JobID=" + job.getObjectID() + "&fromJob=true";
Boolean ppj = (Boolean) process.getAttribute("PPJ");
Boolean ppj = (Boolean) process.getAttribute("PPJ");
String jobsPage = WebUtils.getSamePageInRenderMode(request, "Page");
String jobsPage = WebUtils.getSamePageInRenderMode(request, "Page");
%>
%>
...
...
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