adjusted ordering of sequence to complete
This commit is contained in:
@@ -78,7 +78,7 @@ const AwaitingSubmissionFromBlob = (props) => {
|
||||
<div className="cardModuleReference">
|
||||
<b>{t("myportal:temp-reference")}:</b>
|
||||
{showTopThreeArr[key].hasOwnProperty(
|
||||
"appealCompletes"
|
||||
"appealComplete"
|
||||
) ? (
|
||||
<b>
|
||||
{showTopThreeArr[index].pinswg_name}
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
getThumbnailIconByExtension,
|
||||
bytesToSize,
|
||||
} from "../utils";
|
||||
import { generateAppealPDF } from "../../actions";
|
||||
import { generateAppealPDF, sendCaseCompleteMessage } from "../../actions";
|
||||
|
||||
let BuildCheckSection = (props) => {
|
||||
useEffect(() => {
|
||||
@@ -118,6 +118,29 @@ let BuildCheckSection = (props) => {
|
||||
return labelTrans;
|
||||
};
|
||||
|
||||
const finaliseAppeal = async () => {
|
||||
console.log("finalising appeal:");
|
||||
await generateAppealPDF(
|
||||
pdfObj,
|
||||
props.props.accountDetails.containerID,
|
||||
props.appealType.caseReference.ticketnumber,
|
||||
router.query.appealtypes,
|
||||
pdfObj.filesList
|
||||
// props.appealType.fileList
|
||||
)
|
||||
.then((data) => {
|
||||
console.log("have generated pdf:", data);
|
||||
sendCaseCompleteMessage(
|
||||
props.props.accountDetails.containerID,
|
||||
props.appealType.caseReference.ticketnumber
|
||||
);
|
||||
})
|
||||
.then((data) => {
|
||||
console.log("have sent comple message :", data);
|
||||
setCurrentSection(9999);
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="govuk-grid-row" key={1222}>
|
||||
<div className="govuk-grid-column-full">
|
||||
@@ -254,15 +277,7 @@ let BuildCheckSection = (props) => {
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
onClick={() => {
|
||||
generateAppealPDF(
|
||||
pdfObj,
|
||||
props.props.accountDetails.containerID,
|
||||
props.appealType.caseReference.ticketnumber,
|
||||
router.query.appealtypes,
|
||||
pdfObj.filesList
|
||||
// props.appealType.fileList
|
||||
),
|
||||
setCurrentSection(9999);
|
||||
finaliseAppeal();
|
||||
}}
|
||||
>
|
||||
{t("newappeal:submit-appeal-button")}
|
||||
|
||||
@@ -62,10 +62,10 @@ let CompleteAppeal = (props) => {
|
||||
};
|
||||
sendEmail(templateId, emailAddress, personalisation, reference);
|
||||
|
||||
sendCaseCompleteMessage(
|
||||
props.props.accountDetails.containerID,
|
||||
props.appealType.caseReference.ticketnumber
|
||||
);
|
||||
// sendCaseCompleteMessage(
|
||||
// props.props.accountDetails.containerID,
|
||||
// props.appealType.caseReference.ticketnumber
|
||||
// );
|
||||
|
||||
console.log("patching///////////////");
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user