refactor(scripts): create finance bol

This commit is contained in:
2026-02-16 09:40:19 -06:00
parent 460bc3d24a
commit 36a805c652

View File

@@ -3,53 +3,72 @@ import net from "net";
/**
* This uses a kinda fake scanner to mimic the scanning process to a server and creates the bol.
*/
const prodIP = "10.44.0.26";
const prodPort = 50001;
const prodIP = "10.204.0.26";
const prodPort = 50000;
const scannerID = "98@";
const scannerCommand = "AlplaPRODcmd00000042#000047909"; // top of the picksheet
const scannerCommand = "AlplaPRODcmd00000042#000028547"; // top of the picksheet
const scannerCommand2 = ""; // bottom of the pick sheet
const labels = [
"1000000000000000000000000000000006544320",
"1000000000000000000000000000000006544280",
"1000000000000000000000000000000006544410",
"1000000000000000000000000000000006544490",
"1000000000000000000000000000000006544450",
"1000000000000000000000000000000006544520",
"1000000000000000000000000000000006544590",
"1000000000000000000000000000000006544560",
"1000000000000000000000000000000006544860",
"1000000000000000000000000000000006544830",
"1000000000000000000000000000000006544930",
"1000000000000000000000000000000006544890",
"1000000000000000000000000000000006545100",
"1000000000000000000000000000000006545060",
"1000000000000000000000000000000006545270",
"1000000000000000000000000000000006545220",
"1000000000000000000000000000000006544990",
"1000000000000000000000000000000006545040",
"1000000000000000000000000000000006545520",
"1000000000000000000000000000000006545490",
"1000000000000000000000000000000006545450",
"1000000000000000000000000000000006545560",
"1000000000000000000000000000000006545760",
"1000000000000000000000000000000006545640",
"1000000000000000000000000000000006545690",
"1000000000000000000000000000000006545620",
"1000000000000000000000000000000006546450",
"1000000000000000000000000000000006546500",
"1000000000000000000000000000000006545940",
"1000000000000000000000000000000006545900",
"1000000000000000000000000000000006545850",
"1000000000000000000000000000000006545820",
"1000000000000000000000000000000006546530",
"1000000000000000000000000000000006545330",
"1000000000000000000000000000000006546090",
"1000000000000000000000000000000006546220",
"1000000000000000000000000000000006546120",
"1000000000000000000000000000000006546140",
"1000000000000000000000000000000006546260",
"1000000000000000000000000000000006546310",
"1000000000000000000000000000000005566030",
"1000000000000000000000000000000005544896",
"1000000000000000000000000000000005544906",
"1000000000000000000000000000000005544916",
"1000000000000000000000000000000005544926",
"1000000000000000000000000000000005544936",
"1000000000000000000000000000000005544946",
"1000000000000000000000000000000005544956",
"1000000000000000000000000000000005544966",
"1000000000000000000000000000000005544976",
"1000000000000000000000000000000005544986",
"1000000000000000000000000000000005544996",
"1000000000000000000000000000000005545006",
"1000000000000000000000000000000005545016",
"1000000000000000000000000000000005545026",
"1000000000000000000000000000000005545036",
"1000000000000000000000000000000005545046",
"1000000000000000000000000000000005545056",
"1000000000000000000000000000000005545066",
"1000000000000000000000000000000005545076",
"1000000000000000000000000000000005545086",
"1000000000000000000000000000000005545096",
"1000000000000000000000000000000005545106",
"1000000000000000000000000000000005545116",
"1000000000000000000000000000000005545126",
"1000000000000000000000000000000005545136",
"1000000000000000000000000000000005545146",
"1000000000000000000000000000000005545156",
"1000000000000000000000000000000005545166",
"1000000000000000000000000000000005545176",
"1000000000000000000000000000000005545186",
"1000000000000000000000000000000005544580",
"1000000000000000000000000000000005544590",
"1000000000000000000000000000000005544600",
"1000000000000000000000000000000005544610",
"1000000000000000000000000000000005544640",
"1000000000000000000000000000000005544650",
"1000000000000000000000000000000005544660",
"1000000000000000000000000000000005544670",
"1000000000000000000000000000000005544680",
"1000000000000000000000000000000005544690",
"1000000000000000000000000000000005544700",
"1000000000000000000000000000000005544710",
"1000000000000000000000000000000005544720",
"1000000000000000000000000000000005544730",
"1000000000000000000000000000000005544740",
"1000000000000000000000000000000005544750",
"1000000000000000000000000000000005544760",
"1000000000000000000000000000000005544770",
"1000000000000000000000000000000005544780",
"1000000000000000000000000000000005544790",
"1000000000000000000000000000000005544800",
"1000000000000000000000000000000005544810",
"1000000000000000000000000000000005544820",
"1000000000000000000000000000000005544830",
"1000000000000000000000000000000005544840",
"1000000000000000000000000000000005544850",
"1000000000000000000000000000000005544860",
"1000000000000000000000000000000005544870",
];
const STX = "\x02";
const ETX = "\x03";