ip app lpa ip can raise final comments

This commit is contained in:
2026-03-30 12:34:48 +01:00
parent 461ca7dc02
commit 13cd2514c7
+14 -5
View File
@@ -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];