@medusajs/order 0.1.3-snapshot-20240812125058 → 0.1.3-snapshot-20240815071705
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"receive-return.d.ts","sourceRoot":"","sources":["../../../src/services/actions/receive-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"receive-return.d.ts","sourceRoot":"","sources":["../../../src/services/actions/receive-return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AA8ErD,wBAAsB,aAAa,CACjC,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,UAAU,CAAC,qBAAqB,EACtC,aAAa,CAAC,EAAE,OAAO,gBAmCxB"}
|
@@ -34,8 +34,6 @@ function updateReturnItems(returnEntry, items) {
|
|
34
34
|
const data = items.find((i) => i.details.reference_id === item.item_id);
|
35
35
|
if (!data)
|
36
36
|
return;
|
37
|
-
console.log("ITEM: ", item);
|
38
|
-
console.log("DATA: ", data);
|
39
37
|
const receivedQuantity = utils_1.MathBN.add(item.received_quantity || 0, data.details.quantity);
|
40
38
|
item.received_quantity = receivedQuantity;
|
41
39
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"receive-return.js","sourceRoot":"","sources":["../../../src/services/actions/receive-return.ts"],"names":[],"mappings":";;;AACA,2CAMwB;AAExB,SAAS,iBAAiB,CAAC,IAAI;IAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/B,MAAM,EAAE,wBAAgB,CAAC,mBAAmB;QAC5C,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,OAAO,EAAE;YACP,YAAY,EAAE,IAAI,CAAC,EAAE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AC,SAAS,CAAC,GAAG,MAAM,IAAA,kBAAU,EAAC;QACnC,IAAI,CAAC,aAAa,CAChB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EACnD,aAAa,CACd;QACD,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,aAAa,CAAC;KACxD,CAAC,CAAA;IAEF,OAAO,SAAS,CAAA;AAClB,CAAC;AAtCD,sCAsCC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/order",
|
3
|
-
"version": "0.1.3-snapshot-
|
3
|
+
"version": "0.1.3-snapshot-20240815071705",
|
4
4
|
"description": "Medusa Order module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -34,19 +34,19 @@
|
|
34
34
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
38
|
-
"@medusajs/types": "1.12.0-snapshot-
|
37
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240815071705",
|
38
|
+
"@medusajs/types": "1.12.0-snapshot-20240815071705",
|
39
39
|
"@mikro-orm/cli": "5.9.7",
|
40
40
|
"cross-env": "^5.2.1",
|
41
41
|
"jest": "^29.7.0",
|
42
|
-
"medusa-test-utils": "1.1.45-snapshot-
|
42
|
+
"medusa-test-utils": "1.1.45-snapshot-20240815071705",
|
43
43
|
"rimraf": "^3.0.2",
|
44
44
|
"ts-node": "^10.9.1",
|
45
45
|
"tsc-alias": "^1.8.6",
|
46
46
|
"typescript": "^5.1.6"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
49
|
+
"@medusajs/utils": "1.12.0-snapshot-20240815071705",
|
50
50
|
"@mikro-orm/core": "5.9.7",
|
51
51
|
"@mikro-orm/migrations": "5.9.7",
|
52
52
|
"@mikro-orm/postgresql": "5.9.7",
|