ip app lpa ip can raise final comments
This commit is contained in:
@@ -213,7 +213,7 @@ let MakeRepresentation = (props) => {
|
||||
};
|
||||
default:
|
||||
return {
|
||||
path: `$..[?(@ && @.reference=="${caseReference}")]`,
|
||||
path: `$..[?(@ && @.ticketnumber=="${ticketnumber}")]`,
|
||||
json: setCaseQueryObj
|
||||
};
|
||||
}
|
||||
@@ -437,9 +437,14 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
const isSpecialistNonHearing = specialistProcess !== 846040001;
|
||||
|
||||
const isAppellant =
|
||||
const involvementType =
|
||||
props.props?.accountDetails?.accountDetails
|
||||
?.pinswg_typeofinvolvement === 846040001;
|
||||
?.pinswg_typeofinvolvement;
|
||||
|
||||
const isAppellant = involvementType === 846040001;
|
||||
const isAgent = involvementType === 846040000;
|
||||
const isIP = involvementType === 846040061;
|
||||
//const isLPA = involvementType === 846040000;
|
||||
|
||||
const startDate = new Date(
|
||||
isDNS
|
||||
@@ -520,11 +525,15 @@ let MakeRepresentation = (props) => {
|
||||
addRep("Statement");
|
||||
}
|
||||
|
||||
const canSubmitFinalComments = isAppellant || isAgent || isIP || isLPA;
|
||||
|
||||
const canAddFinalComments =
|
||||
isAppellant &&
|
||||
canSubmitFinalComments &&
|
||||
isWithin(statementDueDate, finalCommentsDate) &&
|
||||
(appealType !== 846040004 || isSpecialistNonHearing);
|
||||
|
||||
// IP and Agents and LPA can do final comments.
|
||||
|
||||
if (canAddFinalComments) {
|
||||
addRep("Final comments");
|
||||
}
|
||||
@@ -962,7 +971,7 @@ let MakeRepresentation = (props) => {
|
||||
|
||||
// Find correct case details
|
||||
let detailsObj = jsonpath({
|
||||
path: `$..[?(@ && @.pinswg_name=="${caseReference}")]`,
|
||||
path: `$..[?(@ && @.ticketnumber=="${ticketnumber}")]`,
|
||||
json: setCaseDetailsObj,
|
||||
eval: true
|
||||
})[0];
|
||||
|
||||
Reference in New Issue
Block a user