uopdates to naming convention and date handling

This commit is contained in:
2024-05-15 10:40:59 +01:00
parent 90e9c6335e
commit 9f3f1c996c
5 changed files with 31 additions and 53 deletions
+7 -7
View File
@@ -98,7 +98,7 @@ let MakeRepresentation = (props) => {
repCap = "APP";
break;
case t("myrepresentations:capacity-options-arr-agent"):
repCap = "AGENT";
repCap = "APP"; //set as App even tho agent as is from an appeallant by proxy
break;
case t("myrepresentations:capacity-options-arr-interested"):
repCap = "IP";
@@ -149,14 +149,14 @@ let MakeRepresentation = (props) => {
"-" +
day +
"-" +
repDate.getHours() +
repDate.getMinutes() +
repDate.getSeconds() +
"_" +
("0" + repDate.getHours()).slice(-2) +
("0" + repDate.getMinutes()).slice(-2) +
("0" + repDate.getSeconds()).slice(-2) +
"_-_" +
repCap +
"_" +
"_-_" +
repType +
"_" +
"_-_" +
values.lastname +
"_" +
values.firstname,
@@ -985,7 +985,7 @@ export const RenderFileUpload = (field) => {
(file) =>
new File(
[file],
`${field.filenamePrefix}_${file.name}`,
`${field.filenamePrefix}_-_Attachment_-_${file.name}`,
{
type: file.type,
}