Compare commits
2 Commits
65304f61ce
...
247010d48f
| Author | SHA1 | Date | |
|---|---|---|---|
| 247010d48f | |||
| 7c40f028c8 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -13,6 +13,8 @@ controllerBuilds
|
|||||||
# ignoring the old app that will be built into this one to make deploying faster and more easy as we do the migration
|
# ignoring the old app that will be built into this one to make deploying faster and more easy as we do the migration
|
||||||
lstV2/frontend/.tanstack
|
lstV2/frontend/.tanstack
|
||||||
|
|
||||||
|
mobileLst
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
14
.vscode/launch.json
vendored
Normal file
14
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Attach to packager",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"type": "reactnative",
|
||||||
|
"request": "attach"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -5,13 +5,13 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{url}}/lst/old/api/eom/histinv?month=2025/11/01
|
url: {{url}}/lst/old/api/eom/histinv?month=2025-11-01
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
params:query {
|
params:query {
|
||||||
month: 2025/11/01
|
month: 2025-11-01
|
||||||
}
|
}
|
||||||
|
|
||||||
settings {
|
settings {
|
||||||
|
|||||||
@@ -5,11 +5,15 @@ meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get {
|
get {
|
||||||
url: {{url}}/lst/api/forklifts/leases
|
url: {{url}}/lst/api/forklifts/leases?companyId=b34c6684-ec35-4364-acef-0c1570faf123
|
||||||
body: none
|
body: none
|
||||||
auth: inherit
|
auth: inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
companyId: b34c6684-ec35-4364-acef-0c1570faf123
|
||||||
|
}
|
||||||
|
|
||||||
body:json {
|
body:json {
|
||||||
{
|
{
|
||||||
"name":"Delage DLL"
|
"name":"Delage DLL"
|
||||||
|
|||||||
@@ -80,8 +80,27 @@ export const historicalInvByDate = async (
|
|||||||
date: string,
|
date: string,
|
||||||
includePlantToken: boolean = false,
|
includePlantToken: boolean = false,
|
||||||
) => {
|
) => {
|
||||||
const histDate = new Date(date);
|
console.log(date);
|
||||||
|
// date format should always be yyyy-MM-dd or yyyy-MM-dd
|
||||||
|
let splitDate: string[];
|
||||||
|
if (date.includes("/")) {
|
||||||
|
splitDate = date.split("/");
|
||||||
|
} else if (date.includes("-")) {
|
||||||
|
splitDate = date.split("-");
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: "An invalid date was passed over",
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const year = parseInt(splitDate[0], 10);
|
||||||
|
const month = parseInt(splitDate[1], 10) - 1; // zero-based months
|
||||||
|
const day = parseInt(splitDate[2], 10);
|
||||||
|
const histDate = new Date(year, month, day);
|
||||||
|
console.log(histDate);
|
||||||
|
console.log(format(histDate, "yyyy-MM-dd"));
|
||||||
const { data, error } = (await tryCatch(
|
const { data, error } = (await tryCatch(
|
||||||
db
|
db
|
||||||
.select()
|
.select()
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export const createPlcMonitor = (config: any) => {
|
|||||||
`Date being sent to labeler: ${JSON.stringify(zechette)}`,
|
`Date being sent to labeler: ${JSON.stringify(zechette)}`,
|
||||||
);
|
);
|
||||||
labelingProcess({ zechette: zechette });
|
labelingProcess({ zechette: zechette });
|
||||||
}, 1000);
|
}, 150);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user