@things-factory/worksheet-base 4.3.521 → 4.3.522
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/graphql/resolvers/worksheet/confirm-cancellation-release-order.js +11 -14
- package/dist-server/graphql/resolvers/worksheet/confirm-cancellation-release-order.js.map +1 -1
- package/dist-server/graphql/resolvers/worksheet/fetch-webspert-document.js +49 -0
- package/dist-server/graphql/resolvers/worksheet/fetch-webspert-document.js.map +1 -0
- package/dist-server/graphql/resolvers/worksheet/index.js +2 -1
- package/dist-server/graphql/resolvers/worksheet/index.js.map +1 -1
- package/dist-server/graphql/types/worksheet/index.js +7 -1
- package/dist-server/graphql/types/worksheet/index.js.map +1 -1
- package/dist-server/graphql/types/worksheet/webspert-document.js +11 -0
- package/dist-server/graphql/types/worksheet/webspert-document.js.map +1 -0
- package/package.json +2 -2
- package/server/graphql/resolvers/worksheet/confirm-cancellation-release-order.ts +34 -21
- package/server/graphql/resolvers/worksheet/fetch-webspert-document.ts +56 -0
- package/server/graphql/resolvers/worksheet/index.ts +2 -0
- package/server/graphql/types/worksheet/index.ts +7 -1
- package/server/graphql/types/worksheet/webspert-document.ts +8 -0
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.confirmCancellationReleaseOrder = void 0;
|
|
4
4
|
const typeorm_1 = require("typeorm");
|
|
5
5
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
6
|
+
const biz_base_1 = require("@things-factory/biz-base");
|
|
6
7
|
const env_1 = require("@things-factory/env");
|
|
7
8
|
const integration_accounting_1 = require("@things-factory/integration-accounting");
|
|
9
|
+
const integration_lmd_1 = require("@things-factory/integration-lmd");
|
|
8
10
|
const sales_base_1 = require("@things-factory/sales-base");
|
|
9
11
|
const warehouse_base_1 = require("@things-factory/warehouse-base");
|
|
10
|
-
const biz_base_1 = require("@things-factory/biz-base");
|
|
11
12
|
const entities_1 = require("../../../entities");
|
|
12
|
-
const integration_lmd_1 = require("@things-factory/integration-lmd");
|
|
13
13
|
exports.confirmCancellationReleaseOrder = {
|
|
14
14
|
async confirmCancellationReleaseOrder(_, { name }, context) {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -230,25 +230,22 @@ function _filterOrderInventoriesByStatus(orderInventories, status) {
|
|
|
230
230
|
}
|
|
231
231
|
async function updateStockForOrderInventories(orderInventories, releaseGood, domain, user, tx) {
|
|
232
232
|
const orderSource = releaseGood.source;
|
|
233
|
-
if (orderSource == auth_base_1.ApplicationType.POWRUP || releaseGood.type == 'b2b') {
|
|
233
|
+
if (orderSource == auth_base_1.ApplicationType.POWRUP || orderSource == auth_base_1.ApplicationType.WEBSPERT || releaseGood.type == 'b2b') {
|
|
234
234
|
const customerDomain = releaseGood.bizplace.domain;
|
|
235
235
|
const customerBizplaceId = releaseGood.bizplace.id;
|
|
236
236
|
const companyBizplace = await (0, biz_base_1.getCompanyBizplace)(domain, null, customerBizplaceId, tx);
|
|
237
|
-
|
|
237
|
+
// Find any connected application to POWRUP or WEBSPERT
|
|
238
|
+
const applications = await tx.getRepository(auth_base_1.Application).find({
|
|
238
239
|
domain: companyBizplace.domain,
|
|
239
240
|
status: 'ACTIVE',
|
|
240
241
|
type: (0, typeorm_1.In)([auth_base_1.ApplicationType.POWRUP, auth_base_1.ApplicationType.WEBSPERT])
|
|
241
242
|
});
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
warehouse_base_1.WebspertController.updateStock(orderInventories.map(oi => oi.productDetail), releaseGood.bizplace, domain, user, tx);
|
|
249
|
-
break;
|
|
250
|
-
default:
|
|
251
|
-
break;
|
|
243
|
+
if (applications.find(app => { app.type === auth_base_1.ApplicationType.POWRUP; })) {
|
|
244
|
+
const powrupController = new sales_base_1.PowrupController();
|
|
245
|
+
powrupController.updateStock(orderInventories, customerDomain, user, tx);
|
|
246
|
+
}
|
|
247
|
+
if (applications.find(app => { app.type === auth_base_1.ApplicationType.WEBSPERT; })) {
|
|
248
|
+
warehouse_base_1.WebspertController.updateStock(orderInventories.map(oi => oi.productDetail), releaseGood.bizplace, domain, user, tx);
|
|
252
249
|
}
|
|
253
250
|
}
|
|
254
251
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"confirm-cancellation-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/worksheet/confirm-cancellation-release-order.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"confirm-cancellation-release-order.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/worksheet/confirm-cancellation-release-order.ts"],"names":[],"mappings":";;;AAAA,qCAGgB;AAEhB,yDAIkC;AAClC,uDAGiC;AACjC,6CAA4C;AAC5C,mFAG+C;AAC/C,qEAA6D;AAC7D,2DASmC;AAEnC,mEAOuC;AAEvC,gDAG0B;AAEb,QAAA,+BAA+B,GAAG;IAC7C,KAAK,CAAC,+BAA+B,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAY;;QAClE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,IAAI,WAAW,GAAgB,MAAM,EAAE;aACpC,aAAa,CAAC,wBAAW,CAAC;aAC1B,kBAAkB,CAAC,IAAI,CAAC;aACxB,kBAAkB,CAAC,aAAa,EAAE,GAAG,CAAC;aACtC,kBAAkB,CAAC,UAAU,EAAE,GAAG,CAAC;aACnC,kBAAkB,CAAC,kBAAkB,EAAE,IAAI,CAAC;aAC5C,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,CAAC;aAC7C,iBAAiB,CAAC,qBAAqB,EAAE,IAAI,CAAC;aAC9C,iBAAiB,CAAC,cAAc,EAAE,GAAG,CAAC;aACtC,iBAAiB,CAAC,YAAY,EAAE,GAAG,CAAC;aACpC,iBAAiB,CAAC,kBAAkB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GAAG,CAAC,IAAI,KAAK,2BAAe,CAAC,MAAM,CAAA,CAAC,CAAC,CAAC,EAAC;YACjE,MAAM,gBAAgB,GAAqB,IAAI,6BAAgB,EAAE,CAAA;YACjE,gBAAgB,CAAC,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;SACzE;QAED,IAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAA,EAAE,GAAE,GAAG,CAAC,IAAI,KAAK,2BAAe,CAAC,QAAQ,CAAA,CAAC,CAAC,CAAC,EAAC;YACnE,mCAAkB,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;SACrH;KACF;AACH,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchWebspertDocumentResolver = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
const env_1 = require("@things-factory/env");
|
|
6
|
+
const sales_base_1 = require("@things-factory/sales-base");
|
|
7
|
+
exports.fetchWebspertDocumentResolver = {
|
|
8
|
+
async fetchWebspertDocument(_, { orderPackageId }, context) {
|
|
9
|
+
const { tx, domain, user } = context.state;
|
|
10
|
+
//find order package base on id
|
|
11
|
+
let orderPackage = await (0, typeorm_1.getRepository)(sales_base_1.OrderPackage).findOne({
|
|
12
|
+
where: { domain, id: orderPackageId },
|
|
13
|
+
relations: ['bizplace', 'bizplace.domain', 'releaseGood']
|
|
14
|
+
});
|
|
15
|
+
let releaseGood = orderPackage.releaseGood;
|
|
16
|
+
if (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.airwayBill) {
|
|
17
|
+
return { airwayBill: orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.airwayBill, invoice: releaseGood === null || releaseGood === void 0 ? void 0 : releaseGood.invoice };
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
await sales_base_1.WebspertController.fetchPackageAndDocument(releaseGood, domain, user);
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
env_1.logger.error(`packing-worksheet[fetchPackageAndDocument]:(data:${JSON.stringify({
|
|
24
|
+
orderPackageId,
|
|
25
|
+
releaseGood,
|
|
26
|
+
domain,
|
|
27
|
+
user
|
|
28
|
+
})}) ${e} `);
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
orderPackage = await (0, typeorm_1.getRepository)(sales_base_1.OrderPackage).findOne({
|
|
32
|
+
where: { domain, id: orderPackageId }
|
|
33
|
+
});
|
|
34
|
+
const airwayBill = orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.airwayBill;
|
|
35
|
+
const invoice = releaseGood === null || releaseGood === void 0 ? void 0 : releaseGood.invoice;
|
|
36
|
+
return { airwayBill, invoice };
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
env_1.logger.error(`packing-worksheet[getWebspertDocument]:(data:${JSON.stringify({
|
|
40
|
+
orderPackageId,
|
|
41
|
+
releaseGood,
|
|
42
|
+
domain,
|
|
43
|
+
user
|
|
44
|
+
})}) ${error} `);
|
|
45
|
+
throw new Error('Waiting for AWB from marketplace. Please retry in awhile');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=fetch-webspert-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-webspert-document.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/worksheet/fetch-webspert-document.ts"],"names":[],"mappings":";;;AAAA,qCAAsD;AAGtD,6CAA4C;AAC5C,2DAA6E;AAGhE,QAAA,6BAA6B,GAAG;IAC3C,KAAK,CAAC,qBAAqB,CAAC,CAAM,EAAE,EAAE,cAAc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AAE,OAAO,EAAE,CAAA;SAC/B;QAAC,OAAO,KAAK,EAAE;YACd,YAAM,CAAC,KAAK,CACV,gDAAgD,IAAI,CAAC,SAAS,CAAC;gBAC7D,cAAc;gBACd,WAAW;gBACX,MAAM;gBACN,IAAI;aACL,CAAC,KAAK,KAAK,GAAG,CAChB,CAAA;YAED,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;SAC5E;IACH,CAAC;CACF,CAAA"}
|
|
@@ -18,6 +18,7 @@ const delivery_order_by_worksheet_1 = require("./delivery-order-by-worksheet");
|
|
|
18
18
|
const fetch_delivery_order_ro_1 = require("./fetch-delivery-order-ro");
|
|
19
19
|
const fetch_powrup_document_1 = require("./fetch-powrup-document");
|
|
20
20
|
const fetch_sellercraft_document_1 = require("./fetch-sellercraft-document");
|
|
21
|
+
const fetch_webspert_document_1 = require("./fetch-webspert-document");
|
|
21
22
|
const find_release_orders_by_task_no_1 = require("./find-release-orders-by-task-no");
|
|
22
23
|
const find_sorting_release_orders_by_task_no_1 = require("./find-sorting-release-orders-by-task-no");
|
|
23
24
|
const generate_worksheet_1 = require("./generate-worksheet");
|
|
@@ -70,5 +71,5 @@ const worksheet_by_order_no_1 = require("./worksheet-by-order-no");
|
|
|
70
71
|
const worksheet_with_pagination_1 = require("./worksheet-with-pagination");
|
|
71
72
|
const worksheets_1 = require("./worksheets");
|
|
72
73
|
exports.Query = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, refresh_active_worksheet_picking_views_1.refreshActiveWorksheetPickingViews), worksheets_1.worksheetsResolver), worksheet_1.worksheetResolver), unloading_worksheet_1.unloadingWorksheetResolver), unloading_return_worksheet_1.unloadingReturnWorksheetResolver), delivery_order_by_worksheet_1.deliveryOrderByWorksheetResolver), packing_worksheet_1.packingWorksheetResolver), get_packing_list_1.packingListResolver), putaway_worksheet_1.putawayWorksheetResolver), putaway_returning_worksheet_1.putawayReturningWorksheetResolver), return_worksheet_1.returnWorksheetResolver), picking_worksheet_1.pickingWorksheetResolver), cycle_count_worksheet_for_pallet_1.cycleCountWorksheetForPalletResolver), cycle_count_worksheet_for_carton_1.cycleCountWorksheetForCartonResolver), vas_worksheet_1.vasWorksheetResolver), loading_worksheet_1.loadingWorksheetResolver), unloaded_inventories_1.unloadedInventories), unloaded_inventories_by_reusable_pallet_1.unloadedInventoriesByReusablePallet), loaded_inventories_1.loadedInventories), vas_candidates_1.vasCandidatesResolver), inventories_by_pallet_1.inventoriesByPalletResolver), batch_picking_worksheet_1.batchPickingWorksheetResolver), check_stock_take_current_location_1.checkStockTakeCurrentLocationResolver), check_inventory_release_1.checkInventoryReleaseResolver), vas_transactions_1.checkRelabelableResolver), having_vas_1.havingVasResolver), worksheet_by_order_no_1.worksheetByOrderNoResolver), worksheet_with_pagination_1.worksheetWithPaginationResolver), not_tally_target_inventories_1.notTallyTargetInventoriesResolver), vas_inventories_1.vasInventories), picking_assignment_status_by_user_1.pickingAssignmentStatusByUsersResolver), my_picking_assignment_status_1.myPickingAssignmentStatusResolver), recommend_putway_location_1.recommendPutawayLocationResolver), sorting_worksheet_1.sortingWorksheetResolver), find_sorting_release_orders_by_task_no_1.findSortingReleaseOrdersByTaskNoResolver), find_release_orders_by_task_no_1.findReleaseOrdersByTaskNoResolver), fetch_delivery_order_ro_1.fetchDeliveryOrderROResolver), putaway_replenishment_worksheet_1.putawayReplenishmentWorksheetResolver);
|
|
73
|
-
exports.Mutation = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generate_worksheet_1.Mutations), unloading_1.Mutations), sorting_1.Mutations), putaway_1.Mutations), putaway_return_1.Mutations), vas_1.Mutations), picking_1.Mutations), packing_1.Mutations), loading_1.Mutations), returning_1.Mutations), unloading_return_1.Mutations), inspecting_1.Mutations), update_worksheet_1.updateWorksheet), create_worksheet_1.createWorksheet), cycle_count_adjustment_1.cycleCountAdjustmentResolver), delete_worksheet_1.deleteWorksheet), transfer_1.transfer), proceed_extra_products_1.proceedExtraProductsResolver), replace_picking_pallets_1.replacePickingPalletsResolver), pending_cancellation_release_order_1.pendingCancellationReleaseOrder), confirm_cancellation_release_order_1.confirmCancellationReleaseOrder), reject_cancellation_release_order_1.rejectCancellationReleaseOrder), vas_transactions_1.repalletizingResolver), vas_transactions_1.undoRepalletizingResolver), vas_transactions_1.repackagingResolver), vas_transactions_1.undoRepackagingResolver), vas_transactions_1.relabelingResolver), vas_transactions_1.undoRelabelingResolver), cross_dock_picking_1.crossDockPickingResolver), vas_transactions_1.unpackingResolver), palletizing_pallets_1.palletizingPallets), fetch_sellercraft_document_1.fetchSellercraftDocumentResolver), fetch_powrup_document_1.fetchPowrupDocumentResolver), cancel_draft_release_order_1.cancelDraftReleaseOrder), cancel_replenishment_1.cancelReplenishment), replenishment_1.Mutations), cancel_arrival_notice_1.cancelArrivalNoticeResolver);
|
|
74
|
+
exports.Mutation = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generate_worksheet_1.Mutations), unloading_1.Mutations), sorting_1.Mutations), putaway_1.Mutations), putaway_return_1.Mutations), vas_1.Mutations), picking_1.Mutations), packing_1.Mutations), loading_1.Mutations), returning_1.Mutations), unloading_return_1.Mutations), inspecting_1.Mutations), update_worksheet_1.updateWorksheet), create_worksheet_1.createWorksheet), cycle_count_adjustment_1.cycleCountAdjustmentResolver), delete_worksheet_1.deleteWorksheet), transfer_1.transfer), proceed_extra_products_1.proceedExtraProductsResolver), replace_picking_pallets_1.replacePickingPalletsResolver), pending_cancellation_release_order_1.pendingCancellationReleaseOrder), confirm_cancellation_release_order_1.confirmCancellationReleaseOrder), reject_cancellation_release_order_1.rejectCancellationReleaseOrder), vas_transactions_1.repalletizingResolver), vas_transactions_1.undoRepalletizingResolver), vas_transactions_1.repackagingResolver), vas_transactions_1.undoRepackagingResolver), vas_transactions_1.relabelingResolver), vas_transactions_1.undoRelabelingResolver), cross_dock_picking_1.crossDockPickingResolver), vas_transactions_1.unpackingResolver), palletizing_pallets_1.palletizingPallets), fetch_sellercraft_document_1.fetchSellercraftDocumentResolver), fetch_powrup_document_1.fetchPowrupDocumentResolver), fetch_webspert_document_1.fetchWebspertDocumentResolver), cancel_draft_release_order_1.cancelDraftReleaseOrder), cancel_replenishment_1.cancelReplenishment), replenishment_1.Mutations), cancel_arrival_notice_1.cancelArrivalNoticeResolver);
|
|
74
75
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/worksheet/index.ts"],"names":[],"mappings":";;;AAAA,uEAAyE;AACzE,mEAAqE;AACrE,6EAAsE;AACtE,iEAA4D;AAC5D,uEAAyE;AACzE,2FAA2F;AAC3F,6FAAsF;AACtF,yDAAoD;AACpD,6DAA+D;AAC/D,qEAAuE;AACvE,yFAAyF;AACzF,yFAAyF;AACzF,yDAAoD;AACpD,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C1B,2DAA+B,GAC/B,gEAAiC,GACjC,gCAAc,GACd,0EAAsC,GACtC,gEAAiC,GACjC,4DAAgC,GAChC,4CAAwB,GACxB,iFAAwC,GACxC,kEAAiC,GACjC,sDAA4B,GAC5B,uEAAqC,EACzC;AAEY,QAAA,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/worksheet/index.ts"],"names":[],"mappings":";;;AAAA,uEAAyE;AACzE,mEAAqE;AACrE,6EAAsE;AACtE,iEAA4D;AAC5D,uEAAyE;AACzE,2FAA2F;AAC3F,6FAAsF;AACtF,yDAAoD;AACpD,6DAA+D;AAC/D,qEAAuE;AACvE,yFAAyF;AACzF,yFAAyF;AACzF,yDAAoD;AACpD,+EAAgF;AAChF,uEAAwE;AACxE,mEAAqE;AACrE,6EAA+E;AAC/E,uEAAyE;AACzE,qFAAoF;AACpF,qGAAmG;AACnG,6DAA8E;AAC9E,yDAAwD;AACxD,6CAAgD;AAChD,6CAA4D;AAC5D,mEAAqE;AACrE,6DAAwD;AACxD,uCAAyD;AACzD,2DAA8D;AAC9D,iFAAkF;AAClF,uCAAyD;AACzD,2DAA8D;AAC9D,+DAA0D;AAC1D,6FAAsF;AACtF,uCAAyD;AACzD,2DAA8D;AAC9D,yFAA0F;AAC1F,mGAAoG;AACpG,qEAAuE;AACvE,uCAAyD;AACzD,uFAAyF;AACzF,qDAAsE;AACtE,+EAAiF;AACjF,2DAA8D;AAC9D,2EAA8E;AAC9E,qGAA6F;AAC7F,2FAAoF;AACpF,uEAAyE;AACzE,mDAAqE;AACrE,yDAA4D;AAC5D,2CAA6D;AAC7D,uCAAyD;AACzD,2DAA8D;AAC9D,yCAAqC;AACrC,iEAA4D;AAC5D,uGAA+F;AAC/F,2CAA6D;AAC7D,yDAA0E;AAC1E,6EAA+E;AAC/E,+DAAkE;AAClE,yDAAoD;AACpD,+BAAiD;AACjD,qDAAwD;AACxD,uDAAkD;AAClD,yDAS2B;AAC3B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
|
@@ -14,6 +14,7 @@ const find_release_orders_by_task_no_1 = require("./find-release-orders-by-task-
|
|
|
14
14
|
const goods_delivery_note_1 = require("./goods-delivery-note");
|
|
15
15
|
const inventory_check_worksheet_1 = require("./inventory-check-worksheet");
|
|
16
16
|
const loaded_worksheet_detail_1 = require("./loaded-worksheet-detail");
|
|
17
|
+
const location_filter_1 = require("./location-filter");
|
|
17
18
|
const multiple_release_good_worksheet_1 = require("./multiple-release-good-worksheet");
|
|
18
19
|
const my_picking_assignment_status_1 = require("./my-picking-assignment-status");
|
|
19
20
|
const new_worksheet_1 = require("./new-worksheet");
|
|
@@ -25,13 +26,13 @@ const release_good_worksheet_1 = require("./release-good-worksheet");
|
|
|
25
26
|
const return_order_worksheet_1 = require("./return-order-worksheet");
|
|
26
27
|
const sellercraft_document_1 = require("./sellercraft-document");
|
|
27
28
|
const vas_order_worksheet_1 = require("./vas-order-worksheet");
|
|
29
|
+
const webspert_document_1 = require("./webspert-document");
|
|
28
30
|
const worksheet_1 = require("./worksheet");
|
|
29
31
|
const worksheet_detail_info_1 = require("./worksheet-detail-info");
|
|
30
32
|
const worksheet_info_1 = require("./worksheet-info");
|
|
31
33
|
const worksheet_list_1 = require("./worksheet-list");
|
|
32
34
|
const worksheet_patch_1 = require("./worksheet-patch");
|
|
33
35
|
const worksheet_with_pagination_1 = require("./worksheet-with-pagination");
|
|
34
|
-
const location_filter_1 = require("./location-filter");
|
|
35
36
|
exports.Mutation = `
|
|
36
37
|
createWorksheet (
|
|
37
38
|
worksheet: NewWorksheet!
|
|
@@ -83,6 +84,10 @@ exports.Mutation = `
|
|
|
83
84
|
orderPackageId: String!
|
|
84
85
|
): PowrupDocument @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
85
86
|
|
|
87
|
+
fetchWebspertDocument (
|
|
88
|
+
orderPackageId: String!
|
|
89
|
+
): WebspertDocument @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
90
|
+
|
|
86
91
|
generateSortingWorksheet (
|
|
87
92
|
worksheetNo: String!
|
|
88
93
|
): ReleaseGoodWorksheet @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
@@ -865,6 +870,7 @@ exports.Types = [
|
|
|
865
870
|
worksheet_1.Worksheet,
|
|
866
871
|
sellercraft_document_1.SellercraftDocument,
|
|
867
872
|
powrup_document_1.PowrupDocument,
|
|
873
|
+
webspert_document_1.WebspertDocument,
|
|
868
874
|
new_worksheet_1.NewWorksheet,
|
|
869
875
|
worksheet_patch_1.WorksheetPatch,
|
|
870
876
|
worksheet_list_1.WorksheetList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/worksheet/index.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAAmE;AACnE,6DAAuD;AACvD,mEAA6D;AAC7D,mDAA8C;AAC9C,+DAAyD;AACzD,2DAAqD;AACrD,6DAAwD;AACxD,+DAA0D;AAC1D,qFAA4E;AAC5E,+DAAyD;AACzD,2EAAqE;AACrE,uEAAiE;AACjE,uFAAgF;AAChF,iFAA0E;AAC1E,mDAA8C;AAC9C,iDAA4C;AAC5C,2EAAqE;AACrE,uDAAkD;AAClD,yDAAoD;AACpD,qEAA+D;AAC/D,qEAA+D;AAC/D,iEAA4D;AAC5D,+DAAyD;AACzD,2CAAuC;AACvC,mEAA6D;AAC7D,qDAAgD;AAChD,qDAAgD;AAChD,uDAAkD;AAClD,2EAAqE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/worksheet/index.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,2EAAmE;AACnE,6DAAuD;AACvD,mEAA6D;AAC7D,mDAA8C;AAC9C,+DAAyD;AACzD,2DAAqD;AACrD,6DAAwD;AACxD,+DAA0D;AAC1D,qFAA4E;AAC5E,+DAAyD;AACzD,2EAAqE;AACrE,uEAAiE;AACjE,uDAAkD;AAClD,uFAAgF;AAChF,iF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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKlC,CAAA;AAEY,QAAA,KAAK,GAAiB;IACjC,qBAAS;IACT,0CAAmB;IACnB,gCAAc;IACd,oCAAgB;IAChB,4BAAY;IACZ,gCAAc;IACd,8BAAa;IACb,iDAAsB;IACtB,6CAAoB;IACpB,2CAAmB;IACnB,6CAAoB;IACpB,mDAAuB;IACvB,uCAAiB;IACjB,uCAAiB;IACjB,qCAAgB;IAChB,uCAAiB;IACjB,8BAAa;IACb,4BAAY;IACZ,sCAAiB;IACjB,2CAAmB;IACnB,0BAAW;IACX,wCAAkB;IAClB,+CAAqB;IACrB,kCAAe;IACf,mDAAuB;IACvB,mDAAuB;IACvB,wDAAyB;IACzB,0DAAyB;IACzB,mCAAe;IACf,iDAAqB;IACrB,8DAA4B;IAC5B,gCAAc;CACf,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebspertDocument = void 0;
|
|
4
|
+
const apollo_server_koa_1 = require("apollo-server-koa");
|
|
5
|
+
exports.WebspertDocument = (0, apollo_server_koa_1.gql) `
|
|
6
|
+
type WebspertDocument {
|
|
7
|
+
airwayBill: String
|
|
8
|
+
invoice: String
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
//# sourceMappingURL=webspert-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webspert-document.js","sourceRoot":"","sources":["../../../../server/graphql/types/worksheet/webspert-document.ts"],"names":[],"mappings":";;;AAAA,yDAAuC;AAE1B,QAAA,gBAAgB,GAAG,IAAA,uBAAG,EAAA;;;;;CAKlC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/worksheet-base",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.522",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"puppeteer": "21.0.3",
|
|
46
46
|
"uuid": "^9.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "1b3343be7d8eb58baa0f60779ede1955828de9d1"
|
|
49
49
|
}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
EntityManager,
|
|
3
|
+
In
|
|
4
|
+
} from 'typeorm'
|
|
2
5
|
|
|
3
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
Application,
|
|
8
|
+
ApplicationType,
|
|
9
|
+
User
|
|
10
|
+
} from '@things-factory/auth-base'
|
|
11
|
+
import {
|
|
12
|
+
Bizplace,
|
|
13
|
+
getCompanyBizplace
|
|
14
|
+
} from '@things-factory/biz-base'
|
|
4
15
|
import { logger } from '@things-factory/env'
|
|
5
|
-
import {
|
|
6
|
-
|
|
16
|
+
import {
|
|
17
|
+
Account,
|
|
18
|
+
AccountingAPI
|
|
19
|
+
} from '@things-factory/integration-accounting'
|
|
20
|
+
import { LastMileAPI } from '@things-factory/integration-lmd'
|
|
7
21
|
import {
|
|
8
22
|
DeliveryOrder,
|
|
9
23
|
ORDER_INVENTORY_STATUS,
|
|
@@ -11,8 +25,8 @@ import {
|
|
|
11
25
|
ORDER_VAS_STATUS,
|
|
12
26
|
OrderInventory,
|
|
13
27
|
OrderVas,
|
|
14
|
-
ReleaseGood,
|
|
15
28
|
PowrupController,
|
|
29
|
+
ReleaseGood
|
|
16
30
|
} from '@things-factory/sales-base'
|
|
17
31
|
import { Domain } from '@things-factory/shell'
|
|
18
32
|
import {
|
|
@@ -20,14 +34,14 @@ import {
|
|
|
20
34
|
Inventory,
|
|
21
35
|
INVENTORY_STATUS,
|
|
22
36
|
INVENTORY_TRANSACTION_TYPE,
|
|
23
|
-
Location,
|
|
24
37
|
ProductDetailStock,
|
|
25
38
|
WebspertController
|
|
26
39
|
} from '@things-factory/warehouse-base'
|
|
27
|
-
import { Bizplace, getCompanyBizplace } from '@things-factory/biz-base'
|
|
28
40
|
|
|
29
|
-
import {
|
|
30
|
-
|
|
41
|
+
import {
|
|
42
|
+
Worksheet,
|
|
43
|
+
WorksheetDetail
|
|
44
|
+
} from '../../../entities'
|
|
31
45
|
|
|
32
46
|
export const confirmCancellationReleaseOrder = {
|
|
33
47
|
async confirmCancellationReleaseOrder(_: any, { name }, context: any) {
|
|
@@ -310,26 +324,25 @@ async function updateStockForOrderInventories(
|
|
|
310
324
|
tx: EntityManager
|
|
311
325
|
) {
|
|
312
326
|
const orderSource: string = releaseGood.source
|
|
313
|
-
if (orderSource == ApplicationType.POWRUP || releaseGood.type == 'b2b') {
|
|
327
|
+
if (orderSource == ApplicationType.POWRUP || orderSource == ApplicationType.WEBSPERT || releaseGood.type == 'b2b') {
|
|
314
328
|
const customerDomain: Domain = releaseGood.bizplace.domain
|
|
315
329
|
const customerBizplaceId: string = releaseGood.bizplace.id
|
|
316
330
|
const companyBizplace: Bizplace = await getCompanyBizplace(domain, null, customerBizplaceId, tx)
|
|
317
|
-
|
|
331
|
+
|
|
332
|
+
// Find any connected application to POWRUP or WEBSPERT
|
|
333
|
+
const applications: Application[] = await tx.getRepository(Application).find({
|
|
318
334
|
domain: companyBizplace.domain,
|
|
319
335
|
status: 'ACTIVE',
|
|
320
336
|
type: In([ApplicationType.POWRUP, ApplicationType.WEBSPERT])
|
|
321
337
|
})
|
|
322
338
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
break;
|
|
331
|
-
default:
|
|
332
|
-
break;
|
|
339
|
+
if(applications.find(app=>{ app.type === ApplicationType.POWRUP })){
|
|
340
|
+
const powrupController: PowrupController = new PowrupController()
|
|
341
|
+
powrupController.updateStock(orderInventories, customerDomain, user, tx)
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if(applications.find(app=>{ app.type === ApplicationType.WEBSPERT })){
|
|
345
|
+
WebspertController.updateStock(orderInventories.map(oi => oi.productDetail), releaseGood.bizplace, domain, user, tx)
|
|
333
346
|
}
|
|
334
347
|
}
|
|
335
348
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EntityManager, getRepository } from 'typeorm'
|
|
2
|
+
|
|
3
|
+
import { User } from '@things-factory/auth-base'
|
|
4
|
+
import { logger } from '@things-factory/env'
|
|
5
|
+
import { OrderPackage, WebspertController } from '@things-factory/sales-base'
|
|
6
|
+
import { Domain } from '@things-factory/shell'
|
|
7
|
+
|
|
8
|
+
export const fetchWebspertDocumentResolver = {
|
|
9
|
+
async fetchWebspertDocument(_: any, { orderPackageId }, context: any) {
|
|
10
|
+
const { tx, domain, user }: { tx: EntityManager; domain: Domain; user: User } = context.state
|
|
11
|
+
|
|
12
|
+
//find order package base on id
|
|
13
|
+
let orderPackage: OrderPackage = await getRepository(OrderPackage).findOne({
|
|
14
|
+
where: { domain, id: orderPackageId },
|
|
15
|
+
relations: ['bizplace', 'bizplace.domain', 'releaseGood']
|
|
16
|
+
})
|
|
17
|
+
let releaseGood = orderPackage.releaseGood
|
|
18
|
+
|
|
19
|
+
if (orderPackage?.airwayBill) {
|
|
20
|
+
return { airwayBill: orderPackage?.airwayBill, invoice: releaseGood?.invoice }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
await WebspertController.fetchPackageAndDocument(releaseGood, domain, user)
|
|
25
|
+
} catch (e) {
|
|
26
|
+
logger.error(
|
|
27
|
+
`packing-worksheet[fetchPackageAndDocument]:(data:${JSON.stringify({
|
|
28
|
+
orderPackageId,
|
|
29
|
+
releaseGood,
|
|
30
|
+
domain,
|
|
31
|
+
user
|
|
32
|
+
})}) ${e} `
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
orderPackage = await getRepository(OrderPackage).findOne({
|
|
38
|
+
where: { domain, id: orderPackageId }
|
|
39
|
+
})
|
|
40
|
+
const airwayBill: string = orderPackage?.airwayBill
|
|
41
|
+
const invoice: string = releaseGood?.invoice
|
|
42
|
+
return { airwayBill, invoice }
|
|
43
|
+
} catch (error) {
|
|
44
|
+
logger.error(
|
|
45
|
+
`packing-worksheet[getWebspertDocument]:(data:${JSON.stringify({
|
|
46
|
+
orderPackageId,
|
|
47
|
+
releaseGood,
|
|
48
|
+
domain,
|
|
49
|
+
user
|
|
50
|
+
})}) ${error} `
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
throw new Error('Waiting for AWB from marketplace. Please retry in awhile')
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -15,6 +15,7 @@ import { deliveryOrderByWorksheetResolver } from './delivery-order-by-worksheet'
|
|
|
15
15
|
import { fetchDeliveryOrderROResolver } from './fetch-delivery-order-ro'
|
|
16
16
|
import { fetchPowrupDocumentResolver } from './fetch-powrup-document'
|
|
17
17
|
import { fetchSellercraftDocumentResolver } from './fetch-sellercraft-document'
|
|
18
|
+
import { fetchWebspertDocumentResolver } from './fetch-webspert-document'
|
|
18
19
|
import { findReleaseOrdersByTaskNoResolver } from './find-release-orders-by-task-no'
|
|
19
20
|
import { findSortingReleaseOrdersByTaskNoResolver } from './find-sorting-release-orders-by-task-no'
|
|
20
21
|
import { Mutations as GenerateWorksheetMutations } from './generate-worksheet'
|
|
@@ -151,6 +152,7 @@ export const Mutation = {
|
|
|
151
152
|
...palletizingPallets,
|
|
152
153
|
...fetchSellercraftDocumentResolver,
|
|
153
154
|
...fetchPowrupDocumentResolver,
|
|
155
|
+
...fetchWebspertDocumentResolver,
|
|
154
156
|
...cancelDraftReleaseOrder,
|
|
155
157
|
...cancelReplenishment,
|
|
156
158
|
...ReplenishmentMutations,
|
|
@@ -11,6 +11,7 @@ import { FindReleaseOrdersByTaskNo } from './find-release-orders-by-task-no'
|
|
|
11
11
|
import { GoodsDeliveryNote } from './goods-delivery-note'
|
|
12
12
|
import { InventoryCheckWorksheet } from './inventory-check-worksheet'
|
|
13
13
|
import { LoadedWorksheetDetail } from './loaded-worksheet-detail'
|
|
14
|
+
import { LocationFilter } from './location-filter'
|
|
14
15
|
import { MultipleReleaseGoodWorksheet } from './multiple-release-good-worksheet'
|
|
15
16
|
import { MyPickingAssignmentStatus } from './my-picking-assignment-status'
|
|
16
17
|
import { NewWorksheet } from './new-worksheet'
|
|
@@ -22,13 +23,13 @@ import { ReleaseGoodWorksheet } from './release-good-worksheet'
|
|
|
22
23
|
import { ReturnOrderWorksheet } from './return-order-worksheet'
|
|
23
24
|
import { SellercraftDocument } from './sellercraft-document'
|
|
24
25
|
import { VasOrderWorksheet } from './vas-order-worksheet'
|
|
26
|
+
import { WebspertDocument } from './webspert-document'
|
|
25
27
|
import { Worksheet } from './worksheet'
|
|
26
28
|
import { WorksheetDetailInfo } from './worksheet-detail-info'
|
|
27
29
|
import { WorksheetInfo } from './worksheet-info'
|
|
28
30
|
import { WorksheetList } from './worksheet-list'
|
|
29
31
|
import { WorksheetPatch } from './worksheet-patch'
|
|
30
32
|
import { WorksheetWithPagination } from './worksheet-with-pagination'
|
|
31
|
-
import { LocationFilter } from './location-filter'
|
|
32
33
|
|
|
33
34
|
export const Mutation = /* GraphQL */ `
|
|
34
35
|
createWorksheet (
|
|
@@ -81,6 +82,10 @@ export const Mutation = /* GraphQL */ `
|
|
|
81
82
|
orderPackageId: String!
|
|
82
83
|
): PowrupDocument @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
83
84
|
|
|
85
|
+
fetchWebspertDocument (
|
|
86
|
+
orderPackageId: String!
|
|
87
|
+
): WebspertDocument @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
88
|
+
|
|
84
89
|
generateSortingWorksheet (
|
|
85
90
|
worksheetNo: String!
|
|
86
91
|
): ReleaseGoodWorksheet @privilege(category: "worksheet_control", privilege: "mutation") @transaction
|
|
@@ -865,6 +870,7 @@ export const Types = /* GraphQL */ [
|
|
|
865
870
|
Worksheet,
|
|
866
871
|
SellercraftDocument,
|
|
867
872
|
PowrupDocument,
|
|
873
|
+
WebspertDocument,
|
|
868
874
|
NewWorksheet,
|
|
869
875
|
WorksheetPatch,
|
|
870
876
|
WorksheetList,
|