fix(gp data): parsed the av instead of passing over as a string

This commit is contained in:
2025-10-03 14:59:11 -05:00
parent 63e09347bf
commit 92043d8118

View File

@@ -81,10 +81,11 @@ export const runGPQuery = async (gpCheck: GPCheck) => {
PO: n.PO.trim(),
Supplier: n.Supplier.trim(),
Item: n.Item.trim(),
article:
n.Item.split("-").length > 1
? n.Item.split("-")[1].trim()
: "No article",
// article:
// n.Item.split("-").length > 1
// ? n.Item.split("-")[1].trim()
// : 0,
article: Number.parseInt(n.Item.split("-")[1]) || 0,
Type: n.Type.trim(),
Location: n.Location.trim(),
Date_Recived: format(n.Date_Recived, "M/d/yyyy"),