Merged PR 1352: Uat and Rep defects marloe

Related work items: #12878
This commit is contained in:
Robert Bond
2025-01-06 08:45:38 +00:00
8 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -695,7 +695,7 @@ export const uploadSingleFile = async (
0 ||
files[prop][0].fieldName.indexOf("_-_LPA's_Registration_Letter") >
0 ||
files[prop][0].fieldName.indexOf(+"_-_Environmental_Statement") >
files[prop][0].fieldName.indexOf("_-_Environmental_Statement") >
0 ||
files[prop][0].fieldName.indexOf("_-_Cost_of_Application") > 0 ||
files[prop][0].fieldName.indexOf("_-_Other_Relevant_Material") >
+2 -1
View File
@@ -1867,7 +1867,8 @@ const RenderFileUpload = (field) => {
let month = repDate.getMonth() + 1;
let year = repDate.getFullYear();
const pdfFileNameDateStamp = year + "-" + month + "-" + day;
const pdfFileNameDateStamp =
year + "-" + ("0" + month).slice(-2) + "-" + ("0" + day).slice(-2);
switch (docCode) {
case "000000":
+9 -1
View File
@@ -130,7 +130,15 @@ let BuildCheckSection = (props) => {
};
const finaliseAppeal = async () => {
//console.log("finalising appeal:");
//console.log("finalising appeal:", pdfObj);
const uniqueArray = pdfObj.filesList.filter(
(value, index, self) =>
index === self.findIndex((t) => t.name === value.name)
);
pdfObj.filesList = uniqueArray;
confirmSections
? (setFinaliseAppealProcess(true),
await generateAppealPDF(
+1 -1
View File
@@ -522,7 +522,7 @@ export const AppealRow_pdf = (props) => {
case "{67FAC785-CD58-4f9f-ABB3-4B7DDC6ED5ED}":
return (
<View
wrap={false}
wrap={true}
style={{
flexDirection: "row",
marginBottom: 10,
+2 -2
View File
@@ -531,8 +531,8 @@ export const getDocumentTypeFromFilename = (filename) => {
else if (filename.indexOf("_-_LPA_Original_Permission") > 0)
doctypeCode = "000010";
else if (filename.indexOf("_-_LPA's_Registration_Letter") > 0)
doctypeCode = "000010";
else if (filename.indexOf(+"_-_Environmental_Statement") > 0)
doctypeCode = "000011";
else if (filename.indexOf("_-_Environmental_Statement") > 0)
doctypeCode = "000012";
else if (filename.indexOf("_-_Cost_of_Application") > 0)
doctypeCode = "000013";
+1 -1
View File
@@ -319,7 +319,7 @@
"pinswg_lpa": 846040010
},
{
"value": "Gwynedd Council",
"value": "Cyngor Gwynedd",
"value_cy": "Cyngor Gwynedd",
"pinswg_lpa": 846040011
},
+1 -1
View File
@@ -50,7 +50,7 @@
"accountid": "15297616-dc16-ec11-a985-00224800f523"
},
{
"name": "Gwynedd Council",
"name": "Cyngor Gwynedd",
"accountid": "17297616-dc16-ec11-a985-00224800f523"
},
{
@@ -18023,7 +18023,7 @@
"Label": {
"LocalizedLabels": [
{
"Label": "Gwynedd County Council",
"Label": "Cyngor Gwynedd",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId": "152c16aa-848c-eb11-aac2-00224800be9c",
@@ -18031,7 +18031,7 @@
}
],
"UserLocalizedLabel": {
"Label": "Gwynedd County Council",
"Label": "Cyngor Gwynedd",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId": "152c16aa-848c-eb11-aac2-00224800be9c",