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