From b1479760072dc7d6b8a501874dd55936598cc481 Mon Sep 17 00:00:00 2001 From: ritik Date: Thu, 14 Sep 2023 15:31:20 +0530 Subject: [PATCH 1/4] update the version of consignment api to v2 --- CHANGELOG.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 57312e0d..3d7b462c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,6 @@ +1.6.26 - 14 Sept 2023 +- update consignment api to version 2.0 + 1.6.25 - 7 Apr 2022 - Supply price from CSV for Generated - Supply price import using CSV for FulFill From 3be0cbce189c3e0fd0946d031f5e8b33e6f9c3a6 Mon Sep 17 00:00:00 2001 From: ritik Date: Fri, 29 Sep 2023 20:57:25 +0530 Subject: [PATCH 2/4] added updates for consignment product endpoint --- .env.example | 1 + workers/jobs/utils/utils.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.example b/.env.example index 33edd294..dbf90cd6 100644 --- a/.env.example +++ b/.env.example @@ -72,6 +72,7 @@ SCHEME=http VEND_CLIENT_ID= VEND_CLIENT_SECRET= VEND_AUTHORIZATION_URL=https://secure.vendhq.com/connect +VEND_TOKEN_SERVICE=.vendhq.com/api/1.0/token ## diff --git a/workers/jobs/utils/utils.js b/workers/jobs/utils/utils.js index d1489672..6917b99d 100755 --- a/workers/jobs/utils/utils.js +++ b/workers/jobs/utils/utils.js @@ -539,6 +539,7 @@ function updateStockOrderLineitemForVend(db, reportModelInstance, stockOrderLine var args = vendSdk.args.consignments.products.update(); args.apiId.value = stockOrderLineitemModelInstance.vendConsignmentProductId; // args.body.value = _.omit(stockOrderLineitemModelInstance.vendConsignmentProduct, 'id'); // omitting id is BAD in this case + args.body.vendConsignmentId = reportModelInstance.vendConsignment.id; args.body.value = stockOrderLineitemModelInstance.vendConsignmentProduct; args.body.value.count = stockOrderLineitemModelInstance.orderQuantity; args.body.value.cost = stockOrderLineitemModelInstance.supplyPrice; From 5571bb9b712c5a4f19c9d54c579b7a1907899a46 Mon Sep 17 00:00:00 2001 From: ritikatsp <102508686+ritikatsp@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:43:10 +0530 Subject: [PATCH 3/4] updated versioning in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 268c84c2..f08203f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stockup", - "version": "1.6.25", + "version": "1.6.26", "dependencies": { "@mean-expert/loopback-component-realtime": "1.0.0-rc.9.6", "@mean-expert/loopback-sdk-builder": "2.3.1", From c776643b698c062b791090a9d21b850e714866ec Mon Sep 17 00:00:00 2001 From: ritikatsp <102508686+ritikatsp@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:46:27 +0530 Subject: [PATCH 4/4] Update versioning to v1.6.26 npm-shrinkwrap.json --- npm-shrinkwrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index edcbe6aa..41bd6c63 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "stockup", - "version": "1.6.25", + "version": "1.6.26", "dependencies": { "@babel/runtime-corejs2": { "version": "7.10.2",