Compare commits

...

4 Commits

4 changed files with 31 additions and 2 deletions

15
frontend/web.config Normal file
View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Logistics Support Tool" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions>
<action type="Rewrite" url="./dist/index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

View File

@@ -35,7 +35,7 @@
}
},
"admConfig": {
"build": 367,
"build": 368,
"oldBuild": "backend-0.1.3.zip"
},
"devDependencies": {

View File

@@ -23,7 +23,8 @@ export const scacCheck = async (data: any) => {
? `<SCAC>${data[0].remark
.split(",")[0]
.split(":")[1]
?.toUpperCase()}</SCAC>`
?.toUpperCase()
.slice(0, 4)}</SCAC>`
: `<SCAC/>`
}
<Mode/>

View File

@@ -152,6 +152,19 @@ export const labelingProcess = async ({
};
}
// check if we actaully have a lot passed over so we do not error out again.
if (filteredLot.length === 0) {
createLog(
"error",
"labeling",
"ocp",
`Error getting lot info from ${
printer ? printer.name : "Missing printer info"
}`
);
return;
}
// check mm is good
const mmStaged = await isMainMatStaged(filteredLot[0]);