fix(forecast): changes to png to allow different address id for the portal
closes #21
This commit is contained in:
@@ -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(
|
const { data: a, error: ae } = await tryCatch(
|
||||||
query(activeArticle, "p&g active av")
|
query(activeArticle, "p&g active av")
|
||||||
);
|
);
|
||||||
@@ -86,7 +88,7 @@ export const pNgForecast = async (data: any, user: any) => {
|
|||||||
Date.now()
|
Date.now()
|
||||||
).toLocaleString("en-US")}`,
|
).toLocaleString("en-US")}`,
|
||||||
sender: user.username || "lst-system",
|
sender: user.username || "lst-system",
|
||||||
customerId: 139,
|
customerId: pNg[0].value,
|
||||||
positions: [],
|
positions: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -214,6 +214,14 @@ const newSettings = [
|
|||||||
serviceBelowsTo: "ocp",
|
serviceBelowsTo: "ocp",
|
||||||
roleToChange: "admin",
|
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
|
// temp settings can be deleted at a later date once that code is removed
|
||||||
{
|
{
|
||||||
name: "siloAdjMigrations",
|
name: "siloAdjMigrations",
|
||||||
|
|||||||
Reference in New Issue
Block a user