kcommons 15.7.2 → 16.0.1
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/build/configs/response.typings.d.ts +4 -2
- package/build/constants/companyRoutes.constants.d.ts +9 -0
- package/build/constants/companyRoutes.constants.js +10 -0
- package/build/constants/permission.constants.d.ts +5 -2
- package/build/constants/permission.constants.js +8 -0
- package/build/constants/statuses.constants.d.ts +3 -0
- package/build/constants/statuses.constants.js +3 -0
- package/build/constants/vendorRoutes.constants.d.ts +3 -0
- package/build/constants/vendorRoutes.constants.js +3 -0
- package/build/helpers/isBackendRequestError.helper.d.ts +2 -0
- package/build/helpers/isBackendRequestError.helper.js +14 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/build/typings/company/masters/amendedPOItems.typings.d.ts +30 -0
- package/build/typings/company/masters/amendedPOItems.typings.js +11 -0
- package/build/typings/company/masters/po.typings.d.ts +30 -6
- package/build/typings/company/masters/po.typings.js +9 -2
- package/build/typings/company.typings.d.ts +16 -2
- package/build/typings/company.typings.js +10 -1
- package/build/typings/documentTaxes.typings.d.ts +6 -2
- package/build/typings/documentTaxes.typings.js +1 -0
- package/build/typings/entityApprovalChainEntry.typings.d.ts +9 -4
- package/build/typings/entityApprovalChainEntry.typings.js +4 -2
- package/build/typings/grn.typings.d.ts +5 -2
- package/build/typings/grn.typings.js +1 -0
- package/build/typings/item.typings.d.ts +19 -8
- package/build/typings/item.typings.js +7 -1
- package/build/typings/mrn.typings.d.ts +42 -3
- package/build/typings/mrn.typings.js +15 -1
- package/build/typings/subPO.typings.d.ts +72 -0
- package/build/typings/subPO.typings.js +23 -0
- package/build/typings/subPOItem.typings.d.ts +34 -0
- package/build/typings/subPOItem.typings.js +12 -0
- package/build/typings/user.typings.d.ts +27 -2
- package/build/typings/user.typings.js +11 -0
- package/build/utils/calculateToleranceRange.util.d.ts +11 -0
- package/build/utils/calculateToleranceRange.util.js +35 -0
- package/build/utils/getContactPerson.util.d.ts +4 -4
- package/build/utils/getContactPerson.util.spec.js +0 -134
- package/build/utils/taxes.util.d.ts +4 -1
- package/build/utils/taxes.util.js +4 -4
- package/package.json +2 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
result?: T;
|
|
1
|
+
export interface IErrorResponse {
|
|
3
2
|
error?: string;
|
|
4
3
|
message?: string;
|
|
5
4
|
err_code?: string;
|
|
6
5
|
}
|
|
6
|
+
export interface IResponse<T = any> extends IErrorResponse {
|
|
7
|
+
result?: T;
|
|
8
|
+
}
|
|
7
9
|
export interface IResponseWithPagination<T = any> {
|
|
8
10
|
data: T[];
|
|
9
11
|
limit: number;
|
|
@@ -118,6 +118,7 @@ export declare enum COMPANY_ROUTE_IDS {
|
|
|
118
118
|
VES_ADD = "VES_ADD",
|
|
119
119
|
VES_SL_LST = "VES_SL_LST",
|
|
120
120
|
VES_SL_VIEW = "VES_SL_VIEW",
|
|
121
|
+
SUB_PO_VIEW = "SUB_PO_VIEW",
|
|
121
122
|
OPN_CMPNY_VDR_APPR = "OPN_CMPNY_VDR_APPR",
|
|
122
123
|
OPN_IND_APPR = "OPN_IND_APPR",
|
|
123
124
|
OPN_MI_APPR = "OPN_MI_APPR",
|
|
@@ -655,6 +656,14 @@ export declare const companyNavConfig: {
|
|
|
655
656
|
id: COMPANY_ROUTE_IDS;
|
|
656
657
|
};
|
|
657
658
|
};
|
|
659
|
+
sub_po: {
|
|
660
|
+
view: {
|
|
661
|
+
route: (sub_po_id: string, queryParams?: {
|
|
662
|
+
active_tab: COMPANY_VIEW_PO_TABS;
|
|
663
|
+
}) => string;
|
|
664
|
+
id: COMPANY_ROUTE_IDS;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
658
667
|
approved_prs: {
|
|
659
668
|
list: {
|
|
660
669
|
route: string;
|
|
@@ -114,6 +114,7 @@ var COMPANY_ROUTE_IDS;
|
|
|
114
114
|
COMPANY_ROUTE_IDS["VES_ADD"] = "VES_ADD";
|
|
115
115
|
COMPANY_ROUTE_IDS["VES_SL_LST"] = "VES_SL_LST";
|
|
116
116
|
COMPANY_ROUTE_IDS["VES_SL_VIEW"] = "VES_SL_VIEW";
|
|
117
|
+
COMPANY_ROUTE_IDS["SUB_PO_VIEW"] = "SUB_PO_VIEW";
|
|
117
118
|
// For Open Approvals
|
|
118
119
|
COMPANY_ROUTE_IDS["OPN_CMPNY_VDR_APPR"] = "OPN_CMPNY_VDR_APPR";
|
|
119
120
|
COMPANY_ROUTE_IDS["OPN_IND_APPR"] = "OPN_IND_APPR";
|
|
@@ -678,6 +679,15 @@ exports.companyNavConfig = {
|
|
|
678
679
|
id: COMPANY_ROUTE_IDS.PO_VIEW,
|
|
679
680
|
},
|
|
680
681
|
},
|
|
682
|
+
sub_po: {
|
|
683
|
+
view: {
|
|
684
|
+
route: (sub_po_id, queryParams) => (0, parseReqString_1.parseReqString)(`/purchase/sub-po/${sub_po_id}/view`, {
|
|
685
|
+
route_id: COMPANY_ROUTE_IDS.SUB_PO_VIEW,
|
|
686
|
+
active_tab: queryParams === null || queryParams === void 0 ? void 0 : queryParams.active_tab,
|
|
687
|
+
}),
|
|
688
|
+
id: COMPANY_ROUTE_IDS.SUB_PO_VIEW,
|
|
689
|
+
},
|
|
690
|
+
},
|
|
681
691
|
approved_prs: {
|
|
682
692
|
list: {
|
|
683
693
|
route: `/purchase/approved-purchase-requesition?route_id=${COMPANY_ROUTE_IDS.APPRV_PR_LST}`,
|
|
@@ -19,7 +19,8 @@ export declare enum DOCUMENTS {
|
|
|
19
19
|
GRN = "GRN",
|
|
20
20
|
COMPARATIVE = "COMPARATIVE",
|
|
21
21
|
ISTD = "ISTD",
|
|
22
|
-
VES = "VES"
|
|
22
|
+
VES = "VES",
|
|
23
|
+
SUB_PO = "SUB_PO"
|
|
23
24
|
}
|
|
24
25
|
export declare enum PERMISSION_RESOURCES {
|
|
25
26
|
INDENT = "INDENT",
|
|
@@ -35,7 +36,8 @@ export declare enum PERMISSION_RESOURCES {
|
|
|
35
36
|
VES = "VES",
|
|
36
37
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
37
38
|
WAITLISTED_VENDORS = "WAITLISTED_VENDORS",
|
|
38
|
-
ITEMS = "ITEMS"
|
|
39
|
+
ITEMS = "ITEMS",
|
|
40
|
+
SUB_PO = "SUB_PO"
|
|
39
41
|
}
|
|
40
42
|
export declare enum RFQ_TO_PO_DOCUMENTS {
|
|
41
43
|
RFQ = "RFQ",
|
|
@@ -49,6 +51,7 @@ export declare const PERMISSION_CONFIG: {
|
|
|
49
51
|
PR: PERMISSION_ACTIONS[];
|
|
50
52
|
RFQ: PERMISSION_ACTIONS[];
|
|
51
53
|
PO: PERMISSION_ACTIONS[];
|
|
54
|
+
SUB_PO: PERMISSION_ACTIONS[];
|
|
52
55
|
ASN: PERMISSION_ACTIONS[];
|
|
53
56
|
GRN: PERMISSION_ACTIONS[];
|
|
54
57
|
COMPARATIVE: PERMISSION_ACTIONS[];
|
|
@@ -27,6 +27,7 @@ var DOCUMENTS;
|
|
|
27
27
|
DOCUMENTS["COMPARATIVE"] = "COMPARATIVE";
|
|
28
28
|
DOCUMENTS["ISTD"] = "ISTD";
|
|
29
29
|
DOCUMENTS["VES"] = "VES";
|
|
30
|
+
DOCUMENTS["SUB_PO"] = "SUB_PO";
|
|
30
31
|
})(DOCUMENTS || (exports.DOCUMENTS = DOCUMENTS = {}));
|
|
31
32
|
var PERMISSION_RESOURCES;
|
|
32
33
|
(function (PERMISSION_RESOURCES) {
|
|
@@ -44,6 +45,7 @@ var PERMISSION_RESOURCES;
|
|
|
44
45
|
PERMISSION_RESOURCES["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
45
46
|
PERMISSION_RESOURCES["WAITLISTED_VENDORS"] = "WAITLISTED_VENDORS";
|
|
46
47
|
PERMISSION_RESOURCES["ITEMS"] = "ITEMS";
|
|
48
|
+
PERMISSION_RESOURCES["SUB_PO"] = "SUB_PO";
|
|
47
49
|
})(PERMISSION_RESOURCES || (exports.PERMISSION_RESOURCES = PERMISSION_RESOURCES = {}));
|
|
48
50
|
var RFQ_TO_PO_DOCUMENTS;
|
|
49
51
|
(function (RFQ_TO_PO_DOCUMENTS) {
|
|
@@ -84,6 +86,11 @@ exports.PERMISSION_CONFIG = {
|
|
|
84
86
|
PERMISSION_ACTIONS.READ_ONLY,
|
|
85
87
|
PERMISSION_ACTIONS.CRUDSAC,
|
|
86
88
|
],
|
|
89
|
+
[PERMISSION_RESOURCES.SUB_PO]: [
|
|
90
|
+
PERMISSION_ACTIONS.STV,
|
|
91
|
+
PERMISSION_ACTIONS.APPROVALS,
|
|
92
|
+
PERMISSION_ACTIONS.READ_ONLY,
|
|
93
|
+
],
|
|
87
94
|
[PERMISSION_RESOURCES.ASN]: [
|
|
88
95
|
PERMISSION_ACTIONS.STV,
|
|
89
96
|
PERMISSION_ACTIONS.APPROVALS,
|
|
@@ -147,6 +154,7 @@ exports.EntitySpecificDocuments = {
|
|
|
147
154
|
// DOCUMENTS.RFP,
|
|
148
155
|
// DOCUMENTS.RFI,
|
|
149
156
|
PERMISSION_RESOURCES.PO,
|
|
157
|
+
PERMISSION_RESOURCES.SUB_PO,
|
|
150
158
|
PERMISSION_RESOURCES.INDENT,
|
|
151
159
|
PERMISSION_RESOURCES.COMPARATIVE,
|
|
152
160
|
],
|
|
@@ -13,7 +13,10 @@ export declare enum STATUSES {
|
|
|
13
13
|
PENDING = "PENDING",
|
|
14
14
|
QUOTED = "QUOTED",
|
|
15
15
|
CANCELLED = "CANCELLED",
|
|
16
|
+
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
16
17
|
ACCEPTED = "ACCEPTED",
|
|
18
|
+
/** @description Used for when Vendor Accepts any document like PO which is sent by company */
|
|
19
|
+
ACCEPTED_BY_VENDOR = "ACCEPTED_BY_VENDOR",
|
|
17
20
|
DISPATCHED = "DISPATCHED",
|
|
18
21
|
DELIVERED = "DELIVERED",
|
|
19
22
|
REJECTED_BY_VENDOR = "REJECTED_BY_VENDOR",
|
|
@@ -17,7 +17,10 @@ var STATUSES;
|
|
|
17
17
|
STATUSES["PENDING"] = "PENDING";
|
|
18
18
|
STATUSES["QUOTED"] = "QUOTED";
|
|
19
19
|
STATUSES["CANCELLED"] = "CANCELLED";
|
|
20
|
+
/** @deprecated Use Accepted By Vendor instead. Ask to Backend devs before changing any existing code */
|
|
20
21
|
STATUSES["ACCEPTED"] = "ACCEPTED";
|
|
22
|
+
/** @description Used for when Vendor Accepts any document like PO which is sent by company */
|
|
23
|
+
STATUSES["ACCEPTED_BY_VENDOR"] = "ACCEPTED_BY_VENDOR";
|
|
21
24
|
STATUSES["DISPATCHED"] = "DISPATCHED";
|
|
22
25
|
STATUSES["DELIVERED"] = "DELIVERED";
|
|
23
26
|
STATUSES["REJECTED_BY_VENDOR"] = "REJECTED_BY_VENDOR";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isBackendRequestError = isBackendRequestError;
|
|
4
|
+
function isBackendRequestError(error) {
|
|
5
|
+
if (!error)
|
|
6
|
+
return false;
|
|
7
|
+
if (typeof error !== "object")
|
|
8
|
+
return false;
|
|
9
|
+
if (Array.isArray(error))
|
|
10
|
+
return false;
|
|
11
|
+
if ("message" in error && "error" in error)
|
|
12
|
+
return true;
|
|
13
|
+
return false;
|
|
14
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./typings/item.typings";
|
|
|
25
25
|
export * from "./typings/documentTaxes.typings";
|
|
26
26
|
export * from "./typings/docItems.typings";
|
|
27
27
|
export * from "./typings/company/masters/po.typings";
|
|
28
|
+
export * from "./typings/company/masters/amendedPOItems.typings";
|
|
28
29
|
export * from "./typings/comparative.typings";
|
|
29
30
|
export * from "./typings/gate.typings";
|
|
30
31
|
export * from "./typings/grn.typings";
|
|
@@ -70,6 +71,8 @@ export * from "./typings/company/masters/termsAndConditions.typings";
|
|
|
70
71
|
export * from "./typings/company/masters/paymentTerms.typings";
|
|
71
72
|
export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
|
|
72
73
|
export * from "./typings/temporaryWorkerForm.typings";
|
|
74
|
+
export * from "./typings/subPO.typings";
|
|
75
|
+
export * from "./typings/subPOItem.typings";
|
|
73
76
|
export * from "./typings/system/queueJob.typings";
|
|
74
77
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
75
78
|
export * from "./typings/common/address.typings";
|
|
@@ -111,6 +114,7 @@ export * from "./utils/extra-form/formatValidationSchema.util";
|
|
|
111
114
|
export * from "./utils/extra-form/getFormProps.util";
|
|
112
115
|
export * from "./utils/extra-form/getDefaultVAlues.util";
|
|
113
116
|
export * from "./utils/generateId.util";
|
|
117
|
+
export * from "./utils/calculateToleranceRange.util";
|
|
114
118
|
export * from "./utils/getFileExtension.util";
|
|
115
119
|
export * from "./utils/stripQueryParams.util";
|
|
116
120
|
export * from "./typings/verification_apis/pincode.typings";
|
package/build/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./typings/item.typings"), exports);
|
|
|
45
45
|
__exportStar(require("./typings/documentTaxes.typings"), exports);
|
|
46
46
|
__exportStar(require("./typings/docItems.typings"), exports);
|
|
47
47
|
__exportStar(require("./typings/company/masters/po.typings"), exports);
|
|
48
|
+
__exportStar(require("./typings/company/masters/amendedPOItems.typings"), exports);
|
|
48
49
|
__exportStar(require("./typings/comparative.typings"), exports);
|
|
49
50
|
__exportStar(require("./typings/gate.typings"), exports);
|
|
50
51
|
__exportStar(require("./typings/grn.typings"), exports);
|
|
@@ -90,6 +91,8 @@ __exportStar(require("./typings/company/masters/termsAndConditions.typings"), ex
|
|
|
90
91
|
__exportStar(require("./typings/company/masters/paymentTerms.typings"), exports);
|
|
91
92
|
__exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
|
|
92
93
|
__exportStar(require("./typings/temporaryWorkerForm.typings"), exports);
|
|
94
|
+
__exportStar(require("./typings/subPO.typings"), exports);
|
|
95
|
+
__exportStar(require("./typings/subPOItem.typings"), exports);
|
|
93
96
|
// System
|
|
94
97
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
95
98
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -137,6 +140,7 @@ __exportStar(require("./utils/extra-form/formatValidationSchema.util"), exports)
|
|
|
137
140
|
__exportStar(require("./utils/extra-form/getFormProps.util"), exports);
|
|
138
141
|
__exportStar(require("./utils/extra-form/getDefaultVAlues.util"), exports);
|
|
139
142
|
__exportStar(require("./utils/generateId.util"), exports);
|
|
143
|
+
__exportStar(require("./utils/calculateToleranceRange.util"), exports);
|
|
140
144
|
__exportStar(require("./utils/getFileExtension.util"), exports);
|
|
141
145
|
__exportStar(require("./utils/stripQueryParams.util"), exports);
|
|
142
146
|
// Verification APIs
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INestedCompany } from "../../company.typings";
|
|
2
|
+
import { INestedItem } from "../../item.typings";
|
|
3
|
+
import { INestedUser } from "../../user.typings";
|
|
4
|
+
import { INestedPo } from "./po.typings";
|
|
5
|
+
export declare enum AMENDED_PO_ITEM_INCLUDES {
|
|
6
|
+
company = "company",
|
|
7
|
+
item = "item",
|
|
8
|
+
parent_po = "parent_po",
|
|
9
|
+
created_by_user = "created_by_user",
|
|
10
|
+
last_updated_by_user = "last_updated_by_user"
|
|
11
|
+
}
|
|
12
|
+
export interface IAmendedPOItems {
|
|
13
|
+
id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
item_id: string;
|
|
16
|
+
parent_po_id: string;
|
|
17
|
+
amended_quantity: number;
|
|
18
|
+
created_by_user_id: string;
|
|
19
|
+
last_updated_by_user_id: string;
|
|
20
|
+
company: INestedCompany | null;
|
|
21
|
+
item: INestedItem | null;
|
|
22
|
+
parent_po: INestedPo | null;
|
|
23
|
+
created_by_user: INestedUser | null;
|
|
24
|
+
last_updated_by_user: INestedUser | null;
|
|
25
|
+
is_deleted: boolean;
|
|
26
|
+
created_at: string;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
}
|
|
29
|
+
export interface INestedAmendedPOItem extends Omit<IAmendedPOItems, "company" | "item" | "parent_po" | "created_by_user" | "last_updated_by_user"> {
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AMENDED_PO_ITEM_INCLUDES = void 0;
|
|
4
|
+
var AMENDED_PO_ITEM_INCLUDES;
|
|
5
|
+
(function (AMENDED_PO_ITEM_INCLUDES) {
|
|
6
|
+
AMENDED_PO_ITEM_INCLUDES["company"] = "company";
|
|
7
|
+
AMENDED_PO_ITEM_INCLUDES["item"] = "item";
|
|
8
|
+
AMENDED_PO_ITEM_INCLUDES["parent_po"] = "parent_po";
|
|
9
|
+
AMENDED_PO_ITEM_INCLUDES["created_by_user"] = "created_by_user";
|
|
10
|
+
AMENDED_PO_ITEM_INCLUDES["last_updated_by_user"] = "last_updated_by_user";
|
|
11
|
+
})(AMENDED_PO_ITEM_INCLUDES || (exports.AMENDED_PO_ITEM_INCLUDES = AMENDED_PO_ITEM_INCLUDES = {}));
|
|
@@ -12,7 +12,7 @@ import { INestedDocumentTaxes } from "../../documentTaxes.typings";
|
|
|
12
12
|
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
13
13
|
import { INestedGRN } from "../../grn.typings";
|
|
14
14
|
import { INestedInvoice } from "../../invoices.typings";
|
|
15
|
-
import { INestedItem, ITEM_TYPES } from "../../item.typings";
|
|
15
|
+
import { INestedItem, ITEM_TOLERANCE_TYPES, ITEM_TYPES } from "../../item.typings";
|
|
16
16
|
import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
17
17
|
import { INestedPOGRNItemJunction } from "./poGrnJunctionItems.typings";
|
|
18
18
|
import { INestedPurchaseLocation } from "../../purchaseLocation.typings";
|
|
@@ -21,6 +21,9 @@ import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
|
21
21
|
import { INestedUser } from "../../user.typings";
|
|
22
22
|
import { INestedVendor } from "../../vendor.typings";
|
|
23
23
|
import { INestedVendorUser } from "../../vendor/vendorUser.typings";
|
|
24
|
+
import { INestedMRN } from "../../mrn.typings";
|
|
25
|
+
import { INestedAmendedPOItem } from "./amendedPOItems.typings";
|
|
26
|
+
import { INestedSubPO } from "../../subPO.typings";
|
|
24
27
|
export declare enum PO_LIST_TYPES {
|
|
25
28
|
ALL = "ALL",
|
|
26
29
|
CREATED_BY_ME = "CREATED_BY_ME",
|
|
@@ -28,8 +31,9 @@ export declare enum PO_LIST_TYPES {
|
|
|
28
31
|
}
|
|
29
32
|
export declare enum COMPANY_VIEW_PO_TABS {
|
|
30
33
|
DETAILS = "DETAILS",
|
|
31
|
-
ASNS = "ASNS",
|
|
32
34
|
APPROVALS = "APPROVALS",
|
|
35
|
+
ASNS = "ASNS",
|
|
36
|
+
SUB_POS = "SUB_POS",
|
|
33
37
|
INVOICES = "INVOICES",
|
|
34
38
|
LOGS = "LOGS"
|
|
35
39
|
}
|
|
@@ -52,7 +56,9 @@ export declare enum PO_STATUS {
|
|
|
52
56
|
/** @description REJECTE_BY_VENDOR means the Vendor has received the PO and has rejected it. */
|
|
53
57
|
REJECTED_BY_VENDOR = "REJECTED_BY_VENDOR",
|
|
54
58
|
/** @description IN_PROGRESS Either ASN, VES or GI has been created corresponding to PO (items may be in partial quantity) meaning that the items requested in the PO are on the move. */
|
|
55
|
-
IN_PROGRESS = "IN_PROGRESS"
|
|
59
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
60
|
+
/** @description DELIVERED status represents, all the items requested in PO have been successfully included in GRNs which are APPROVED. */
|
|
61
|
+
DELIVERED = "DELIVERED"
|
|
56
62
|
}
|
|
57
63
|
export declare enum PO_TYPE {
|
|
58
64
|
DIRECT = "DIRECT",
|
|
@@ -91,7 +97,12 @@ export declare enum PO_INCLUDE {
|
|
|
91
97
|
child_ves = "child_ves",
|
|
92
98
|
tnc = "tnc",
|
|
93
99
|
pt = "pt",
|
|
94
|
-
accepted_rejected_by_vendor_user = "accepted_rejected_by_vendor_user"
|
|
100
|
+
accepted_rejected_by_vendor_user = "accepted_rejected_by_vendor_user",
|
|
101
|
+
child_mrns = "child_mrns",
|
|
102
|
+
closed_early_by_user = "closed_early_by_user",
|
|
103
|
+
referenced_in_grns = "referenced_in_grns",
|
|
104
|
+
amended_po_items = "amended_po_items",
|
|
105
|
+
sub_pos = "sub_pos"
|
|
95
106
|
}
|
|
96
107
|
export interface IPOBaseFilters {
|
|
97
108
|
name?: string;
|
|
@@ -157,6 +168,10 @@ export interface IPurchaseOrder {
|
|
|
157
168
|
remark: string | null;
|
|
158
169
|
tnc_id: string | null;
|
|
159
170
|
pt_id: string | null;
|
|
171
|
+
closed_early: boolean | null;
|
|
172
|
+
closed_early_by_user_id: string | null;
|
|
173
|
+
closed_early_at: string | null;
|
|
174
|
+
closed_early_reason: string | null;
|
|
160
175
|
is_deleted: boolean | null;
|
|
161
176
|
accepted_or_rejected_by_vendor_at: string | null;
|
|
162
177
|
sent_for_approval_at: string | null;
|
|
@@ -178,6 +193,7 @@ export interface IPurchaseOrder {
|
|
|
178
193
|
parent_quote: INestedQuote | null;
|
|
179
194
|
comparative: INestedComparative | null;
|
|
180
195
|
items: INestedPOItem[] | null;
|
|
196
|
+
amended_po_items: INestedAmendedPOItem[] | null;
|
|
181
197
|
boms: INestedPOBom[] | null;
|
|
182
198
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
183
199
|
taxes: INestedDocumentTaxes[] | null;
|
|
@@ -191,10 +207,14 @@ export interface IPurchaseOrder {
|
|
|
191
207
|
child_ves: INestedVES[] | null;
|
|
192
208
|
tnc: INestedTermsAndConditions | null;
|
|
193
209
|
pt: INestedPo | null;
|
|
194
|
-
|
|
210
|
+
closed_early_by_user: INestedUser | null;
|
|
211
|
+
child_mrns: INestedMRN | null;
|
|
212
|
+
referenced_in_grns: INestedGRN[] | null;
|
|
195
213
|
accepted_rejected_by_vendor_user: INestedVendorUser | null;
|
|
214
|
+
sub_pos: INestedSubPO[] | null;
|
|
215
|
+
metafields: IPOMetafields | null;
|
|
196
216
|
}
|
|
197
|
-
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "
|
|
217
|
+
export interface INestedPo extends Omit<IPurchaseOrder, "company" | "purchase_location" | "shipping_store_location" | "created_by_user" | "last_updated_by_user" | "company_vendor" | "contact_person" | "external_contact_person" | "sent_for_approval_by" | "sent_to_vendor_by" | "parent_quote" | "comparative" | "items" | "boms" | "approval_chain" | "taxes" | "vendor" | "least_purchase_price_items" | "previous_purchase_price_items" | "invoices" | "po_grn_items_junctions" | "directly_created_grns" | "child_ves" | "tnc" | "closed_early_by_user" | "child_mrns" | "referenced_in_grns" | "accepted_rejected_by_vendor_user" | "amended_po_items" | "sub_pos" | "metafields"> {
|
|
198
218
|
}
|
|
199
219
|
export interface IPOItem extends ITaxRelatedItemInputs {
|
|
200
220
|
id: string;
|
|
@@ -207,6 +227,10 @@ export interface IPOItem extends ITaxRelatedItemInputs {
|
|
|
207
227
|
parent_po_bom_id: string | null;
|
|
208
228
|
referenced_comparative_item_id: string | null;
|
|
209
229
|
parent_po_bom_code: string | null;
|
|
230
|
+
allow_tolerance: boolean;
|
|
231
|
+
upperbound_allowed_tolerance_value: number | null;
|
|
232
|
+
lowerbound_allowed_tolerance_value: number | null;
|
|
233
|
+
allowed_tolerance_unit: ITEM_TOLERANCE_TYPES | null;
|
|
210
234
|
company: INestedCompany | null;
|
|
211
235
|
item: INestedItem | null;
|
|
212
236
|
parent_po: INestedPo | null;
|
|
@@ -10,8 +10,9 @@ var PO_LIST_TYPES;
|
|
|
10
10
|
var COMPANY_VIEW_PO_TABS;
|
|
11
11
|
(function (COMPANY_VIEW_PO_TABS) {
|
|
12
12
|
COMPANY_VIEW_PO_TABS["DETAILS"] = "DETAILS";
|
|
13
|
-
COMPANY_VIEW_PO_TABS["ASNS"] = "ASNS";
|
|
14
13
|
COMPANY_VIEW_PO_TABS["APPROVALS"] = "APPROVALS";
|
|
14
|
+
COMPANY_VIEW_PO_TABS["ASNS"] = "ASNS";
|
|
15
|
+
COMPANY_VIEW_PO_TABS["SUB_POS"] = "SUB_POS";
|
|
15
16
|
COMPANY_VIEW_PO_TABS["INVOICES"] = "INVOICES";
|
|
16
17
|
COMPANY_VIEW_PO_TABS["LOGS"] = "LOGS";
|
|
17
18
|
})(COMPANY_VIEW_PO_TABS || (exports.COMPANY_VIEW_PO_TABS = COMPANY_VIEW_PO_TABS = {}));
|
|
@@ -36,6 +37,8 @@ var PO_STATUS;
|
|
|
36
37
|
PO_STATUS["REJECTED_BY_VENDOR"] = "REJECTED_BY_VENDOR";
|
|
37
38
|
/** @description IN_PROGRESS Either ASN, VES or GI has been created corresponding to PO (items may be in partial quantity) meaning that the items requested in the PO are on the move. */
|
|
38
39
|
PO_STATUS["IN_PROGRESS"] = "IN_PROGRESS";
|
|
40
|
+
/** @description DELIVERED status represents, all the items requested in PO have been successfully included in GRNs which are APPROVED. */
|
|
41
|
+
PO_STATUS["DELIVERED"] = "DELIVERED";
|
|
39
42
|
})(PO_STATUS || (exports.PO_STATUS = PO_STATUS = {}));
|
|
40
43
|
var PO_TYPE;
|
|
41
44
|
(function (PO_TYPE) {
|
|
@@ -79,6 +82,11 @@ var PO_INCLUDE;
|
|
|
79
82
|
PO_INCLUDE["tnc"] = "tnc";
|
|
80
83
|
PO_INCLUDE["pt"] = "pt";
|
|
81
84
|
PO_INCLUDE["accepted_rejected_by_vendor_user"] = "accepted_rejected_by_vendor_user";
|
|
85
|
+
PO_INCLUDE["child_mrns"] = "child_mrns";
|
|
86
|
+
PO_INCLUDE["closed_early_by_user"] = "closed_early_by_user";
|
|
87
|
+
PO_INCLUDE["referenced_in_grns"] = "referenced_in_grns";
|
|
88
|
+
PO_INCLUDE["amended_po_items"] = "amended_po_items";
|
|
89
|
+
PO_INCLUDE["sub_pos"] = "sub_pos";
|
|
82
90
|
})(PO_INCLUDE || (exports.PO_INCLUDE = PO_INCLUDE = {}));
|
|
83
91
|
var PO_ITEM_INCLUDE;
|
|
84
92
|
(function (PO_ITEM_INCLUDE) {
|
|
@@ -88,7 +96,6 @@ var PO_ITEM_INCLUDE;
|
|
|
88
96
|
PO_ITEM_INCLUDE["parent_po_bom"] = "parent_po_bom";
|
|
89
97
|
PO_ITEM_INCLUDE["referenced_comparative_item"] = "referenced_comparative_item";
|
|
90
98
|
})(PO_ITEM_INCLUDE || (exports.PO_ITEM_INCLUDE = PO_ITEM_INCLUDE = {}));
|
|
91
|
-
// PO Bom
|
|
92
99
|
var PO_BOM_INCLUDE;
|
|
93
100
|
(function (PO_BOM_INCLUDE) {
|
|
94
101
|
PO_BOM_INCLUDE["parent_po"] = "parent_po";
|
|
@@ -52,11 +52,19 @@ import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.t
|
|
|
52
52
|
import { INestedPOGRNItemJunction } from "./company/masters/poGrnJunctionItems.typings";
|
|
53
53
|
import { INestedERPPluginConfigCompany } from "./system/erpPluginConfigCompany.typings";
|
|
54
54
|
import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
55
|
+
import { INestedAmendedPOItem } from "./company/masters/amendedPOItems.typings";
|
|
56
|
+
import { INestedSubPO } from "./subPO.typings";
|
|
57
|
+
import { INestedSubPOItem } from "./subPOItem.typings";
|
|
55
58
|
export declare enum PRICING_PLANS {
|
|
56
59
|
BASIC = "BASIC",
|
|
57
60
|
GROWTH = "GROWTH",
|
|
58
61
|
ADVANCE = "ADVANCE"
|
|
59
62
|
}
|
|
63
|
+
export declare enum ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD {
|
|
64
|
+
CREATE_SUBPO_ONLY = "CREATE_SUBPO_ONLY",
|
|
65
|
+
AMEND_PO_AND_CREATE_SUBPO = "AMEND_PO_AND_CREATE_SUBPO",
|
|
66
|
+
DECIDED_BY_USER = "DECIDED_BY_USER"
|
|
67
|
+
}
|
|
60
68
|
export interface IVendorOnboardingCompaniesFilter extends IPaginationFilters {
|
|
61
69
|
name?: string;
|
|
62
70
|
}
|
|
@@ -114,7 +122,10 @@ export declare enum COMPANY_INCLUDE {
|
|
|
114
122
|
company_terms_and_conditions = "company_terms_and_conditions",
|
|
115
123
|
company_config = "company_config",
|
|
116
124
|
erp_plugins = "erp_plugins",
|
|
117
|
-
company_temporary_worker_form = "company_temporary_worker_form"
|
|
125
|
+
company_temporary_worker_form = "company_temporary_worker_form",
|
|
126
|
+
company_amended_po_items = "company_amended_po_items",
|
|
127
|
+
sub_pos = "sub_pos",
|
|
128
|
+
sub_po_items = "sub_po_items"
|
|
118
129
|
}
|
|
119
130
|
export interface ICompany extends IAddress {
|
|
120
131
|
id: string;
|
|
@@ -178,6 +189,7 @@ export interface ICompany extends IAddress {
|
|
|
178
189
|
entity_approval_chain_entries?: null | INestedApprovalChainEntry[];
|
|
179
190
|
company_negotiations?: null | INestedNegotiation[];
|
|
180
191
|
company_pos?: null | INestedPo[];
|
|
192
|
+
company_amended_po_items?: null | INestedAmendedPOItem[];
|
|
181
193
|
company_grns?: INestedGRN[] | null;
|
|
182
194
|
company_grns_items?: INestedGRNItem[] | null;
|
|
183
195
|
company_mrns?: INestedMRN[] | null;
|
|
@@ -211,8 +223,10 @@ export interface ICompany extends IAddress {
|
|
|
211
223
|
payment_terms: INestedPaymentTerms[] | null;
|
|
212
224
|
erp_plugins: INestedERPPluginConfigCompany[] | null;
|
|
213
225
|
company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
226
|
+
sub_pos: INestedSubPO[] | null;
|
|
227
|
+
sub_po_items: INestedSubPOItem[] | null;
|
|
214
228
|
}
|
|
215
|
-
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "
|
|
229
|
+
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugins" | "company_temporary_worker_form" | "extra_questions" | "is_deleted" | "payment_terms" | "po_grn_items_junction" | "vendor_onboarding_request_categories" | "company_amended_po_items" | "sub_pos" | "sub_po_items"> {
|
|
216
230
|
}
|
|
217
231
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
218
232
|
additional_info_form_que_id: string;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COMPANY_METAFIELDS_INCLUDE = exports.COMPANY_INCLUDE = exports.PRICING_PLANS = void 0;
|
|
3
|
+
exports.COMPANY_METAFIELDS_INCLUDE = exports.COMPANY_INCLUDE = exports.ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD = exports.PRICING_PLANS = void 0;
|
|
4
4
|
var PRICING_PLANS;
|
|
5
5
|
(function (PRICING_PLANS) {
|
|
6
6
|
PRICING_PLANS["BASIC"] = "BASIC";
|
|
7
7
|
PRICING_PLANS["GROWTH"] = "GROWTH";
|
|
8
8
|
PRICING_PLANS["ADVANCE"] = "ADVANCE";
|
|
9
9
|
})(PRICING_PLANS || (exports.PRICING_PLANS = PRICING_PLANS = {}));
|
|
10
|
+
var ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD;
|
|
11
|
+
(function (ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD) {
|
|
12
|
+
ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD["CREATE_SUBPO_ONLY"] = "CREATE_SUBPO_ONLY";
|
|
13
|
+
ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD["AMEND_PO_AND_CREATE_SUBPO"] = "AMEND_PO_AND_CREATE_SUBPO";
|
|
14
|
+
ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD["DECIDED_BY_USER"] = "DECIDED_BY_USER";
|
|
15
|
+
})(ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD || (exports.ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD = ALLOWED_DISPUTED_MRN_RESOLUTION_METHOD = {}));
|
|
10
16
|
var COMPANY_INCLUDE;
|
|
11
17
|
(function (COMPANY_INCLUDE) {
|
|
12
18
|
COMPANY_INCLUDE["associated_purchase_locations"] = "associated_purchase_locations";
|
|
@@ -64,6 +70,9 @@ var COMPANY_INCLUDE;
|
|
|
64
70
|
COMPANY_INCLUDE["company_config"] = "company_config";
|
|
65
71
|
COMPANY_INCLUDE["erp_plugins"] = "erp_plugins";
|
|
66
72
|
COMPANY_INCLUDE["company_temporary_worker_form"] = "company_temporary_worker_form";
|
|
73
|
+
COMPANY_INCLUDE["company_amended_po_items"] = "company_amended_po_items";
|
|
74
|
+
COMPANY_INCLUDE["sub_pos"] = "sub_pos";
|
|
75
|
+
COMPANY_INCLUDE["sub_po_items"] = "sub_po_items";
|
|
67
76
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
68
77
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
69
78
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INestedPo } from "./company/masters/po.typings";
|
|
2
2
|
import { INestedQuote } from "./quote.typings";
|
|
3
|
+
import { INestedSubPO } from "./subPO.typings";
|
|
3
4
|
/** @description An Array of %s of GSTs allowed on the platform */
|
|
4
5
|
export declare const ALLOWED_GSTS: number[];
|
|
5
6
|
export declare enum TAX_TYPE {
|
|
@@ -32,6 +33,7 @@ export interface IDocumentTaxes {
|
|
|
32
33
|
id: string;
|
|
33
34
|
quote_id?: string | null;
|
|
34
35
|
po_id?: string | null;
|
|
36
|
+
sub_po_id?: string | null;
|
|
35
37
|
tax_name: TAX_NAME;
|
|
36
38
|
tax_value: number;
|
|
37
39
|
tax_resultant: number;
|
|
@@ -40,12 +42,14 @@ export interface IDocumentTaxes {
|
|
|
40
42
|
tax_type?: TAX_TYPE | null;
|
|
41
43
|
parent_quote?: INestedQuote | null;
|
|
42
44
|
parent_po?: INestedPo | null;
|
|
45
|
+
parent_sub_po?: INestedSubPO | null;
|
|
43
46
|
}
|
|
44
|
-
export interface INestedDocumentTaxes extends Omit<IDocumentTaxes, "parent_quote" | "parent_po"> {
|
|
47
|
+
export interface INestedDocumentTaxes extends Omit<IDocumentTaxes, "parent_quote" | "parent_po" | "parent_sub_po"> {
|
|
45
48
|
}
|
|
46
49
|
export interface IDocumentTaxesInput extends Omit<IDocumentTaxes, "created_at" | "updated_at" | "parent_quote" | "parent_po"> {
|
|
47
50
|
}
|
|
48
51
|
export declare enum DOCUMENT_TAXES_INCLUDE {
|
|
49
52
|
parent_quote = "parent_quote",
|
|
50
|
-
parent_po = "parent_po"
|
|
53
|
+
parent_po = "parent_po",
|
|
54
|
+
parent_sub_po = "parent_sub_po"
|
|
51
55
|
}
|
|
@@ -53,4 +53,5 @@ var DOCUMENT_TAXES_INCLUDE;
|
|
|
53
53
|
(function (DOCUMENT_TAXES_INCLUDE) {
|
|
54
54
|
DOCUMENT_TAXES_INCLUDE["parent_quote"] = "parent_quote";
|
|
55
55
|
DOCUMENT_TAXES_INCLUDE["parent_po"] = "parent_po";
|
|
56
|
+
DOCUMENT_TAXES_INCLUDE["parent_sub_po"] = "parent_sub_po";
|
|
56
57
|
})(DOCUMENT_TAXES_INCLUDE || (exports.DOCUMENT_TAXES_INCLUDE = DOCUMENT_TAXES_INCLUDE = {}));
|
|
@@ -16,6 +16,7 @@ import { INestedPR } from "./pr.typings";
|
|
|
16
16
|
import { INestedRFQ } from "./rfq.typings";
|
|
17
17
|
import { INestedRole } from "./roles.typings";
|
|
18
18
|
import { INestedUser } from "./user.typings";
|
|
19
|
+
import { INestedSubPO } from "./subPO.typings";
|
|
19
20
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
20
21
|
INDENT = "INDENT",
|
|
21
22
|
PR = "PR",
|
|
@@ -26,12 +27,13 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS {
|
|
|
26
27
|
PO = "PO",
|
|
27
28
|
ASN = "ASN",
|
|
28
29
|
GRN = "GRN",
|
|
29
|
-
ISTD_SOURCE = "ISTD_SOURCE",
|
|
30
|
-
ISTD_DEST = "ISTD_DEST",
|
|
31
30
|
VENDOR_ONBOARDING_REQUEST = "VENDOR_ONBOARDING_REQUEST",
|
|
32
31
|
WAITLIST_VENDORS = "WAITLISTED_VENDORS",
|
|
33
32
|
ITEMS = "ITEMS",
|
|
34
|
-
VES = "VES"
|
|
33
|
+
VES = "VES",
|
|
34
|
+
ISTD_SOURCE = "ISTD_SOURCE",
|
|
35
|
+
ISTD_DEST = "ISTD_DEST",
|
|
36
|
+
SUB_PO = "SUB_PO"
|
|
35
37
|
}
|
|
36
38
|
export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
37
39
|
company = "company",
|
|
@@ -43,6 +45,7 @@ export declare enum ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES {
|
|
|
43
45
|
rfq = "rfq",
|
|
44
46
|
comparative = "comparative",
|
|
45
47
|
po = "po",
|
|
48
|
+
sub_po = "sub_po",
|
|
46
49
|
asn = "asn",
|
|
47
50
|
grn = "grn",
|
|
48
51
|
mrn = "mrn",
|
|
@@ -70,6 +73,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
70
73
|
rfq_id?: string | null;
|
|
71
74
|
comparative_id?: string | null;
|
|
72
75
|
po_id?: string | null;
|
|
76
|
+
sub_po_id?: string | null;
|
|
73
77
|
mrn_id?: string | null;
|
|
74
78
|
grn_id?: string | null;
|
|
75
79
|
source_istd_id?: string | null;
|
|
@@ -92,6 +96,7 @@ export interface IEntityApprovalChainEntry {
|
|
|
92
96
|
rfq?: INestedRFQ | null;
|
|
93
97
|
comparative?: INestedComparative | null;
|
|
94
98
|
po?: INestedPo | null;
|
|
99
|
+
sub_po?: INestedSubPO | null;
|
|
95
100
|
grn?: INestedGRN | null;
|
|
96
101
|
mrn?: INestedMRN | null;
|
|
97
102
|
source_istd?: INestedISTD | null;
|
|
@@ -103,5 +108,5 @@ export interface IEntityApprovalChainEntry {
|
|
|
103
108
|
item: INestedItem | null;
|
|
104
109
|
asn: INestedASN | null;
|
|
105
110
|
}
|
|
106
|
-
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves"> {
|
|
111
|
+
export interface INestedEntityApprovalChainEntry extends Omit<IEntityApprovalChainEntry, "company" | "user" | "role" | "indent" | "mi" | "pr" | "rfq" | "comparative" | "po" | "sub_po" | "grn" | "mrn" | "source_istd" | "dest_istd" | "vendor_onboarding_request" | "company_vendor" | "vendor_onboarding_request_scores" | "item" | "asn" | "ves"> {
|
|
107
112
|
}
|
|
@@ -12,12 +12,13 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS;
|
|
|
12
12
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["PO"] = "PO";
|
|
13
13
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ASN"] = "ASN";
|
|
14
14
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["GRN"] = "GRN";
|
|
15
|
-
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_SOURCE"] = "ISTD_SOURCE";
|
|
16
|
-
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_DEST"] = "ISTD_DEST";
|
|
17
15
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["VENDOR_ONBOARDING_REQUEST"] = "VENDOR_ONBOARDING_REQUEST";
|
|
18
16
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["WAITLIST_VENDORS"] = "WAITLISTED_VENDORS";
|
|
19
17
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ITEMS"] = "ITEMS";
|
|
20
18
|
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["VES"] = "VES";
|
|
19
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_SOURCE"] = "ISTD_SOURCE";
|
|
20
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["ISTD_DEST"] = "ISTD_DEST";
|
|
21
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS["SUB_PO"] = "SUB_PO";
|
|
21
22
|
})(ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS || (exports.ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = ENTITY_APPROVAL_CHAIN_ENTRY_PARENT_DOCS = {}));
|
|
22
23
|
var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
23
24
|
(function (ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES) {
|
|
@@ -30,6 +31,7 @@ var ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES;
|
|
|
30
31
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["rfq"] = "rfq";
|
|
31
32
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["comparative"] = "comparative";
|
|
32
33
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["po"] = "po";
|
|
34
|
+
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["sub_po"] = "sub_po";
|
|
33
35
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["asn"] = "asn";
|
|
34
36
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["grn"] = "grn";
|
|
35
37
|
ENTITY_APPROVAL_CHAIN_ENTRY_INCLUDES["mrn"] = "mrn";
|