fix(abbott): fix to properly remove the space in the middle of the po
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { abbottOrders } from "./mappings/abbottTruckList.js";
|
||||
import { energizerOrders } from "./mappings/energizerOrdersIn.js";
|
||||
import { macroImportOrders } from "./mappings/macroImport.js";
|
||||
import { standardOrders } from "./mappings/standardOrders.js";
|
||||
|
||||
export const ordersIn = async (data: any, user: any) => {
|
||||
@@ -44,6 +45,14 @@ export const ordersIn = async (data: any, user: any) => {
|
||||
// orders in
|
||||
}
|
||||
|
||||
if (data["fileType"] === "macro") {
|
||||
// orders in
|
||||
const macro = await macroImportOrders(data["postOrders"], user);
|
||||
success = macro.success ?? false;
|
||||
message = macro.message ?? "Error posting Macro Orders";
|
||||
orderData = macro.data;
|
||||
}
|
||||
|
||||
return {
|
||||
success,
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user