feat(dm): added in p&g to the list

This commit is contained in:
2025-05-20 13:42:12 -05:00
parent fb603e74dc
commit b96a750e9e
4 changed files with 177 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { lorealForecast } from "./mappings/loralForecast.js";
import { pNgForecast } from "./mappings/pNgForecast.js";
import { standardForecast } from "./mappings/standardForcast.js";
export const forecastIn = async (data: any, user: any) => {
@@ -32,7 +33,11 @@ export const forecastIn = async (data: any, user: any) => {
}
if (data["fileType"] === "pg") {
// orders in
//run the standard forecast in
const pg = await pNgForecast(data["postForecast"], user);
success = pg.success ?? false;
message = pg.message ?? "Error posting standard forecast";
orderData = pg.data;
}
return {