fix(gp data): parsed the av instead of passing over as a string
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user