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: [],
};