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(),
|
PO: n.PO.trim(),
|
||||||
Supplier: n.Supplier.trim(),
|
Supplier: n.Supplier.trim(),
|
||||||
Item: n.Item.trim(),
|
Item: n.Item.trim(),
|
||||||
article:
|
// article:
|
||||||
n.Item.split("-").length > 1
|
// n.Item.split("-").length > 1
|
||||||
? n.Item.split("-")[1].trim()
|
// ? n.Item.split("-")[1].trim()
|
||||||
: "No article",
|
// : 0,
|
||||||
|
article: Number.parseInt(n.Item.split("-")[1]) || 0,
|
||||||
Type: n.Type.trim(),
|
Type: n.Type.trim(),
|
||||||
Location: n.Location.trim(),
|
Location: n.Location.trim(),
|
||||||
Date_Recived: format(n.Date_Recived, "M/d/yyyy"),
|
Date_Recived: format(n.Date_Recived, "M/d/yyyy"),
|
||||||
|
|||||||
Reference in New Issue
Block a user