Merged PR 1294: create pdf amendment

create pdf amendment

Related work items: #12768
This commit is contained in:
Robert Bond
2024-11-20 11:56:28 +00:00
2 changed files with 5 additions and 12 deletions
+2 -8
View File
@@ -393,10 +393,7 @@ export const createAppealPDFBlob = async (
console.log("blobName:", blobName); console.log("blobName:", blobName);
const blockBlobClient = containerClient.getBlockBlobClient(blobName); const blockBlobClient = containerClient.getBlockBlobClient(blobName);
const uploadBlobResponse = await blockBlobClient.uploadStream( const uploadBlobResponse = await blockBlobClient.uploadStream(content);
content,
uploadOptions
);
console.log(uploadBlobResponse); console.log(uploadBlobResponse);
@@ -443,10 +440,7 @@ export const createRepPDFBlob = async (
console.log("blobName:", blobName); console.log("blobName:", blobName);
const blockBlobClient = containerClient.getBlockBlobClient(blobName); const blockBlobClient = containerClient.getBlockBlobClient(blobName);
const uploadBlobResponse = await blockBlobClient.uploadStream( const uploadBlobResponse = await blockBlobClient.uploadStream(content);
content,
uploadOptions
);
let whichLocation = let whichLocation =
repName.indexOf("_IP_") > 0 repName.indexOf("_IP_") > 0
@@ -53,7 +53,7 @@ const RepComplete = (props) => {
props.props.currentView.representationMessageSent != true && props.props.currentView.representationMessageSent != true &&
(setRepInvolvment( (setRepInvolvment(
props.props.currentView.caseReference.incidentid, props.props.currentView.caseReference.incidentid,
props.props.props.props.accountDetails.loggedinUserId props.props.props.props.accountDetails.accountDetails.contactid
), ),
sendRepCompleteMessage( sendRepCompleteMessage(
props.props.props.props.accountDetails.containerID, props.props.props.props.accountDetails.containerID,
@@ -68,7 +68,8 @@ const RepComplete = (props) => {
")", ")",
"pinswg_Contact@odata.bind": "pinswg_Contact@odata.bind":
"/contacts(" + "/contacts(" +
props.props.props.props.accountDetails.loggedinUserId + props.props.props.props.accountDetails.accountDetails
.contactid +
")", ")",
"pinswg_appealcasetype": "pinswg_appealcasetype":
props.props.currentView.caseReference.appealType, props.props.currentView.caseReference.appealType,
@@ -92,9 +93,7 @@ const RepComplete = (props) => {
{t("myrepresentations:rep-complete-heading")} {t("myrepresentations:rep-complete-heading")}
</h1> </h1>
<p>{t("myrepresentations:rep-complete-para-one")}</p> <p>{t("myrepresentations:rep-complete-para-one")}</p>
<p>{t("myrepresentations:rep-complete-para-two")}</p> <p>{t("myrepresentations:rep-complete-para-two")}</p>
<p> {t("myrepresentations:rep-complete-para-three")}</p> <p> {t("myrepresentations:rep-complete-para-three")}</p>
</div> </div>
<div className="govuk-grid-row"> <div className="govuk-grid-row">