summaryrefslogtreecommitdiff
path: root/src/app/api/product
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-12-05 10:53:52 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-12-05 10:53:52 +0700
commitc977921f02308af769af37f6b7d37b21869797f2 (patch)
tree6a3b5078682a8c644207193979adbc31e91e61f2 /src/app/api/product
parent51f2fd6fcaf6de7d3912f266fd85ff2386b595f0 (diff)
Add externalId on import and export
Diffstat (limited to 'src/app/api/product')
-rw-r--r--src/app/api/product/import/route.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/api/product/import/route.tsx b/src/app/api/product/import/route.tsx
index eb87f07..e4e38c6 100644
--- a/src/app/api/product/import/route.tsx
+++ b/src/app/api/product/import/route.tsx
@@ -25,6 +25,7 @@ export async function POST(request: NextRequest) {
onhandQty: row[3],
differenceQty: row[4],
companyId: row[5],
+ externalId: row[6] ?? null
}));
const whereCompany = { companyId: intCompanyId }