IO-3437 Beta 4

This commit is contained in:
Allan Carr
2025-11-10 16:11:05 -08:00
parent a093fa20a6
commit a322fb5ca4
4 changed files with 19 additions and 16 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "bodyshop-desktop",
"version": "1.0.8-beta.3",
"version": "1.0.8-beta.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bodyshop-desktop",
"version": "1.0.8-beta.3",
"version": "1.0.8-beta.4",
"hasInstallScript": true,
"dependencies": {
"@apollo/client": "^3.13.6",

View File

@@ -1,6 +1,6 @@
{
"name": "bodyshop-desktop",
"version": "1.0.8-beta.3",
"version": "1.0.8-beta.4",
"description": "Shop Management System Partner",
"main": "./out/main/index.js",
"author": "Convenient Brands, LLC",

View File

@@ -16,23 +16,26 @@ const EmsPartsOrderGenerateEnvFile = async (
[date.getHours(), date.getMinutes(), date.getSeconds()]
.map((unit) => String(unit).padStart(2, "0"))
.join("");
const formatDate = (date: Date): string =>
`${String(date.getMonth() + 1).padStart(2, "0")}/${String(
date.getDate(),
).padStart(2, "0")}/${date.getFullYear()}`;
const records = [
{
EST_SYSTEM: "M",
SW_VERSION: "UM7.1",
DB_VERSION: "MAY_17_V0607",
DB_DATE: dateNow,
SW_VERSION: "25.3",
DB_VERSION: "OCT_25_V",
DB_DATE: formatDate(dateNow),
RO_ID: partsOrder.job.ro_number,
ESTFILE_ID: partsOrder.job.ciecaid,
SUPP_NO: "1",
EST_CTRY: "CAN",
TOP_SECRET: ";0000000;0;0000000;0;0000000;",
EST_CTRY: "CA",
TRANS_TYPE: "S",
STATUS: false,
CREATE_DT: dateNow,
CREATE_DT: formatDate(dateNow),
CREATE_TM: formatTime(dateNow),
TRANSMT_DT: dateNow,
TRANSMT_DT: formatDate(dateNow),
TRANSMT_TM: formatTime(dateNow),
INCL_ADMIN: true,
INCL_VEH: true,

View File

@@ -21,8 +21,8 @@ export const envFieldLineDescriptors: FieldDescriptor[] = [
},
{
name: "DB_DATE",
type: "D",
size: 8,
type: "C",
size: 10,
decimalPlaces: 0,
},
{
@@ -87,8 +87,8 @@ export const envFieldLineDescriptors: FieldDescriptor[] = [
},
{
name: "CREATE_DT",
type: "D",
size: 8,
type: "C",
size: 10,
decimalPlaces: 0,
},
{
@@ -99,8 +99,8 @@ export const envFieldLineDescriptors: FieldDescriptor[] = [
},
{
name: "TRANSMT_DT",
type: "D",
size: 8,
type: "C",
size: 10,
decimalPlaces: 0,
},
{