fix(forecast): changes to png to allow different address id for the portal

closes #21
This commit is contained in:
2025-06-10 16:15:51 -05:00
parent 879172d9cd
commit e1332e754a
2 changed files with 11 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ export const pNgForecast = async (data: any, user: any) => {
};
}
const pNg = s.filter((n: any) => n.name === "pNgAddress");
const { data: a, error: ae } = await tryCatch(
query(activeArticle, "p&g active av")
);
@@ -86,7 +88,7 @@ export const pNgForecast = async (data: any, user: any) => {
Date.now()
).toLocaleString("en-US")}`,
sender: user.username || "lst-system",
customerId: 139,
customerId: pNg[0].value,
positions: [],
};

View File

@@ -214,6 +214,14 @@ const newSettings = [
serviceBelowsTo: "ocp",
roleToChange: "admin",
},
{
name: "pNgAddress",
value: `139`,
description:
"What is the address for p&g so we can make sure we have the correct fake edi forcast going in.",
serviceBelowsTo: "dm",
roleToChange: "admin",
},
// temp settings can be deleted at a later date once that code is removed
{
name: "siloAdjMigrations",