kcommons 14.3.2 → 14.4.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/typings/asn.typings.d.ts +3 -11
- package/build/typings/asn.typings.js +2 -4
- package/build/typings/common/qr.typings.d.ts +3 -5
- package/build/typings/company/masters/ves.typings.d.ts +5 -12
- package/build/typings/company/masters/ves.typings.js +2 -4
- package/build/typings/company/masters/vesItem.typings.d.ts +5 -2
- package/build/typings/company/masters/vesItem.typings.js +1 -0
- package/build/typings/grn.typings.d.ts +49 -33
- package/build/typings/grn.typings.js +3 -0
- package/build/typings/po.typings.d.ts +13 -10
- package/build/typings/po.typings.js +14 -4
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
-
import { IQRBaseData, QR_DOCUMENT_TYPE } from "./common/qr.typings";
|
|
3
2
|
import { INestedCompany } from "./company.typings";
|
|
4
3
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
5
4
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
@@ -10,15 +9,6 @@ import { INestedPOASNItemJunction } from "./poAsnJunctionItems.typings";
|
|
|
10
9
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
11
10
|
import { INestedUser } from "./user.typings";
|
|
12
11
|
import { INestedVendor } from "./vendor.typings";
|
|
13
|
-
export interface IASNQrData {
|
|
14
|
-
asn_id: string;
|
|
15
|
-
asn_no: string;
|
|
16
|
-
}
|
|
17
|
-
export declare abstract class _ASNQrData implements IASNQrData, IQRBaseData {
|
|
18
|
-
abstract qr_document_type: QR_DOCUMENT_TYPE.ASN;
|
|
19
|
-
abstract asn_id: string;
|
|
20
|
-
abstract asn_no: string;
|
|
21
|
-
}
|
|
22
12
|
export declare enum ASN_CANCELLED_BY_ENTITY {
|
|
23
13
|
COMPANY = "COMPANY",
|
|
24
14
|
VENDOR = "VENDOR"
|
|
@@ -77,7 +67,8 @@ export declare enum ASN_INCLUDE {
|
|
|
77
67
|
cancelled_by_user = "cancelled_by_user",
|
|
78
68
|
approval_chain = "approval_chain",
|
|
79
69
|
asns_sent_to_vendor_by_user = "asns_sent_to_vendor_by_user",
|
|
80
|
-
child_ves = "child_ves"
|
|
70
|
+
child_ves = "child_ves",
|
|
71
|
+
send_by_user = "send_by_user"
|
|
81
72
|
}
|
|
82
73
|
export interface IASN {
|
|
83
74
|
id: string;
|
|
@@ -167,6 +158,7 @@ export interface IASN {
|
|
|
167
158
|
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
168
159
|
asns_sent_to_vendor_by_user: INestedUser | null;
|
|
169
160
|
child_ves: INestedVES[] | null;
|
|
161
|
+
send_by_user: INestedUser | null;
|
|
170
162
|
}
|
|
171
163
|
export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
|
|
172
164
|
road_vehicle_type = "road_vehicle_type",
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ASNPageLocation = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY =
|
|
4
|
-
class _ASNQrData {
|
|
5
|
-
}
|
|
6
|
-
exports._ASNQrData = _ASNQrData;
|
|
3
|
+
exports.ASNPageLocation = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY = void 0;
|
|
7
4
|
var ASN_CANCELLED_BY_ENTITY;
|
|
8
5
|
(function (ASN_CANCELLED_BY_ENTITY) {
|
|
9
6
|
ASN_CANCELLED_BY_ENTITY["COMPANY"] = "COMPANY";
|
|
@@ -72,6 +69,7 @@ var ASN_INCLUDE;
|
|
|
72
69
|
ASN_INCLUDE["approval_chain"] = "approval_chain";
|
|
73
70
|
ASN_INCLUDE["asns_sent_to_vendor_by_user"] = "asns_sent_to_vendor_by_user";
|
|
74
71
|
ASN_INCLUDE["child_ves"] = "child_ves";
|
|
72
|
+
ASN_INCLUDE["send_by_user"] = "send_by_user";
|
|
75
73
|
})(ASN_INCLUDE || (exports.ASN_INCLUDE = ASN_INCLUDE = {}));
|
|
76
74
|
var ASN_MODE_OF_TRANSPORT_FIELDS;
|
|
77
75
|
(function (ASN_MODE_OF_TRANSPORT_FIELDS) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import { _VESQrData } from "../company/masters/ves.typings";
|
|
3
|
-
import { _POQrData } from "../po.typings";
|
|
4
|
-
export interface IQRBaseData {
|
|
1
|
+
export interface IQRData {
|
|
5
2
|
qr_document_type: QR_DOCUMENT_TYPE;
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
6
5
|
}
|
|
7
6
|
export declare enum QR_DOCUMENT_TYPE {
|
|
8
7
|
ASN = "ASN",
|
|
9
8
|
VES = "VES",
|
|
10
9
|
PO = "PO"
|
|
11
10
|
}
|
|
12
|
-
export type IQRDataTypes = _ASNQrData | _POQrData | _VESQrData;
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import { IASN, INestedASN } from "../../asn.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
|
-
import { IQRBaseData, QR_DOCUMENT_TYPE } from "../../common/qr.typings";
|
|
4
3
|
import { INestedCompany } from "../../company.typings";
|
|
5
4
|
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
5
|
+
import { IGRN } from "../../grn.typings";
|
|
6
6
|
import { INestedPo, IPurchaseOrder } from "../../po.typings";
|
|
7
7
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
8
8
|
import { INestedUser } from "../../user.typings";
|
|
9
9
|
import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTracking.typings";
|
|
10
10
|
import { INestedCheckpoint } from "./checkpoints.typings";
|
|
11
11
|
import { INestedVESItem } from "./vesItem.typings";
|
|
12
|
-
export interface IVESQrData {
|
|
13
|
-
ves_id: string;
|
|
14
|
-
ves_no: string;
|
|
15
|
-
}
|
|
16
|
-
export declare abstract class _VESQrData implements IVESQrData, IQRBaseData {
|
|
17
|
-
abstract qr_document_type: QR_DOCUMENT_TYPE.VES;
|
|
18
|
-
abstract ves_id: string;
|
|
19
|
-
abstract ves_no: string;
|
|
20
|
-
}
|
|
21
12
|
export declare enum VES_REQUESTING_ENTITY_TYPE {
|
|
22
13
|
STORE_LOCATION = "store_location",
|
|
23
14
|
CHECKPOINT = "checkpoint"
|
|
@@ -53,7 +44,8 @@ export declare enum VES_INCLUDE {
|
|
|
53
44
|
items = "items",
|
|
54
45
|
store_location_approval_chain = "store_location_approval_chain",
|
|
55
46
|
take_on_approval_by_user = "take_on_approval_by_user",
|
|
56
|
-
checkpoint_trail = "checkpoint_trail"
|
|
47
|
+
checkpoint_trail = "checkpoint_trail",
|
|
48
|
+
child_grns = "child_grns"
|
|
57
49
|
}
|
|
58
50
|
export interface IVESFilters {
|
|
59
51
|
ves_requesting_entity_type: VES_REQUESTING_ENTITY_TYPE;
|
|
@@ -106,8 +98,9 @@ export interface IVES {
|
|
|
106
98
|
items: INestedVESItem[] | null;
|
|
107
99
|
store_location_approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
108
100
|
checkpoint_trail: INestedVESCheckpointTracking[] | null;
|
|
101
|
+
child_grns: IGRN[] | null;
|
|
109
102
|
}
|
|
110
|
-
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain" | "checkpoint_trail"> {
|
|
103
|
+
export interface INestedVES extends Omit<IVES, "company" | "target_store_location" | "created_by_user" | "last_updated_by_user" | "cancelled_by_user" | "take_on_approval_by_user" | "created_at_checkpoint" | "directed_to_checkpoint" | "parent_po" | "parent_asn" | "items" | "store_location_approval_chain" | "checkpoint_trail" | "child_grns"> {
|
|
111
104
|
}
|
|
112
105
|
export interface IFetchDocumentForVESByDocumentNoResponse {
|
|
113
106
|
poData: IPurchaseOrder | null;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = exports.VES_REQUESTING_ENTITY_TYPE =
|
|
4
|
-
class _VESQrData {
|
|
5
|
-
}
|
|
6
|
-
exports._VESQrData = _VESQrData;
|
|
3
|
+
exports.VES_INCLUDE = exports.VES_STATUS = exports.VES_VIEW_TABS = exports.VES_PARENT_DOCUMENT_TYPE = exports.VES_REQUESTING_ENTITY_TYPE = void 0;
|
|
7
4
|
var VES_REQUESTING_ENTITY_TYPE;
|
|
8
5
|
(function (VES_REQUESTING_ENTITY_TYPE) {
|
|
9
6
|
VES_REQUESTING_ENTITY_TYPE["STORE_LOCATION"] = "store_location";
|
|
@@ -45,4 +42,5 @@ var VES_INCLUDE;
|
|
|
45
42
|
VES_INCLUDE["store_location_approval_chain"] = "store_location_approval_chain";
|
|
46
43
|
VES_INCLUDE["take_on_approval_by_user"] = "take_on_approval_by_user";
|
|
47
44
|
VES_INCLUDE["checkpoint_trail"] = "checkpoint_trail";
|
|
45
|
+
VES_INCLUDE["child_grns"] = "child_grns";
|
|
48
46
|
})(VES_INCLUDE || (exports.VES_INCLUDE = VES_INCLUDE = {}));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { INestedGRNItem } from "../../grn.typings";
|
|
1
2
|
import { INestedItem } from "../../item.typings";
|
|
2
3
|
import { INestedVES } from "./ves.typings";
|
|
3
4
|
export declare enum VES_ITEM_INCLUDE {
|
|
4
5
|
item = "item",
|
|
5
|
-
parent_ves = "parent_ves"
|
|
6
|
+
parent_ves = "parent_ves",
|
|
7
|
+
child_grn_items = "child_grn_items"
|
|
6
8
|
}
|
|
7
9
|
export interface IVesItem {
|
|
8
10
|
id: string;
|
|
@@ -18,6 +20,7 @@ export interface IVesItem {
|
|
|
18
20
|
updated_at: Date;
|
|
19
21
|
item: INestedItem | null;
|
|
20
22
|
parent_ves: INestedVES | null;
|
|
23
|
+
child_grn_items: INestedGRNItem[] | null;
|
|
21
24
|
}
|
|
22
|
-
export interface INestedVESItem extends Omit<IVesItem, "item" | "parent_ves"> {
|
|
25
|
+
export interface INestedVESItem extends Omit<IVesItem, "item" | "parent_ves" | "child_grn_items"> {
|
|
23
26
|
}
|
|
@@ -5,4 +5,5 @@ var VES_ITEM_INCLUDE;
|
|
|
5
5
|
(function (VES_ITEM_INCLUDE) {
|
|
6
6
|
VES_ITEM_INCLUDE["item"] = "item";
|
|
7
7
|
VES_ITEM_INCLUDE["parent_ves"] = "parent_ves";
|
|
8
|
+
VES_ITEM_INCLUDE["child_grn_items"] = "child_grn_items";
|
|
8
9
|
})(VES_ITEM_INCLUDE || (exports.VES_ITEM_INCLUDE = VES_ITEM_INCLUDE = {}));
|
|
@@ -3,6 +3,8 @@ import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
|
3
3
|
import { INestedCompany } from "./company.typings";
|
|
4
4
|
import { INestedISTD } from "./company/istd/istd.typings";
|
|
5
5
|
import { INestedISTDItem } from "./company/istd/istdItems.typings";
|
|
6
|
+
import { INestedVES } from "./company/masters/ves.typings";
|
|
7
|
+
import { INestedVESItem } from "./company/masters/vesItem.typings";
|
|
6
8
|
import { INestedDepartment } from "./department.typings";
|
|
7
9
|
import { INestedEntityApprovalChainEntry } from "./entityApprovalChainEntry.typings";
|
|
8
10
|
import { INestedItem } from "./item.typings";
|
|
@@ -24,7 +26,8 @@ export declare enum GRN_TABS {
|
|
|
24
26
|
export declare enum GRN_PARENT_DOC_TYPE {
|
|
25
27
|
ASN = "ASN",
|
|
26
28
|
ISTD = "ISTD",
|
|
27
|
-
PO = "PO"
|
|
29
|
+
PO = "PO",
|
|
30
|
+
VES = "VES"
|
|
28
31
|
}
|
|
29
32
|
export declare enum GRN_INCLUDE {
|
|
30
33
|
company = "company",
|
|
@@ -35,6 +38,7 @@ export declare enum GRN_INCLUDE {
|
|
|
35
38
|
parent_asn = "parent_asn",
|
|
36
39
|
parent_istd = "parent_istd",
|
|
37
40
|
parent_po = "parent_po",
|
|
41
|
+
parent_ves = "parent_ves",
|
|
38
42
|
contact_person = "contact_person",
|
|
39
43
|
items = "items",
|
|
40
44
|
approval_chain = "approval_chain",
|
|
@@ -66,12 +70,13 @@ export interface IGRNFiltersWithPagination extends IPaginationFilters, IGRNFilte
|
|
|
66
70
|
export interface IGRN {
|
|
67
71
|
id: string;
|
|
68
72
|
grn_no: string;
|
|
69
|
-
parent_doc_type
|
|
70
|
-
parent_istd_id
|
|
73
|
+
parent_doc_type: GRN_PARENT_DOC_TYPE | null;
|
|
74
|
+
parent_istd_id: string | null;
|
|
71
75
|
actual_delivery_date: string;
|
|
72
|
-
expected_delivery_date
|
|
73
|
-
parent_asn_id
|
|
74
|
-
parent_po_id
|
|
76
|
+
expected_delivery_date: string | null;
|
|
77
|
+
parent_asn_id: string | null;
|
|
78
|
+
parent_po_id: string | null;
|
|
79
|
+
parent_ves_id: string | null;
|
|
75
80
|
shipping_store_location_id: string;
|
|
76
81
|
created_by_id: string;
|
|
77
82
|
last_updated_by_user_id: string;
|
|
@@ -79,28 +84,29 @@ export interface IGRN {
|
|
|
79
84
|
status: GRN_STATUS;
|
|
80
85
|
department_id: string | null;
|
|
81
86
|
contact_person_id: string;
|
|
82
|
-
attachment_link
|
|
83
|
-
remarks
|
|
87
|
+
attachment_link: string | null;
|
|
88
|
+
remarks: string | null;
|
|
84
89
|
is_deleted: boolean;
|
|
85
|
-
deleted_at
|
|
90
|
+
deleted_at: string | null;
|
|
86
91
|
created_at: string;
|
|
87
92
|
updated_at: string;
|
|
88
|
-
company
|
|
93
|
+
company: INestedCompany | null;
|
|
89
94
|
created_by_user: INestedUser | null;
|
|
90
95
|
last_updated_by_user: INestedUser | null;
|
|
91
|
-
shipping_store_location
|
|
92
|
-
department
|
|
93
|
-
parent_asn
|
|
94
|
-
contact_person
|
|
95
|
-
items
|
|
96
|
-
child_mrns
|
|
97
|
-
approval_chain
|
|
98
|
-
sent_for_approval_by
|
|
99
|
-
sent_to_store_by
|
|
96
|
+
shipping_store_location: INestedStoreLocation | null;
|
|
97
|
+
department: INestedDepartment | null;
|
|
98
|
+
parent_asn: INestedASN | null;
|
|
99
|
+
contact_person: INestedUser | null;
|
|
100
|
+
items: INestedGRNItem[] | null;
|
|
101
|
+
child_mrns: INestedMRN[] | null;
|
|
102
|
+
approval_chain: INestedEntityApprovalChainEntry[] | null;
|
|
103
|
+
sent_for_approval_by: INestedUser | null;
|
|
104
|
+
sent_to_store_by: INestedUser | null;
|
|
100
105
|
parent_istd: INestedISTD | null;
|
|
101
106
|
parent_po: INestedPo | null;
|
|
107
|
+
parent_ves: INestedVES | null;
|
|
102
108
|
}
|
|
103
|
-
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po"> {
|
|
109
|
+
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po" | "parent_ves"> {
|
|
104
110
|
}
|
|
105
111
|
export declare enum GRN_ITEM_INCLUDE {
|
|
106
112
|
company = "company",
|
|
@@ -109,7 +115,8 @@ export declare enum GRN_ITEM_INCLUDE {
|
|
|
109
115
|
parent_asn_item = "parent_asn_item",
|
|
110
116
|
referenced_in_mrn_items = "referenced_in_mrn_items",
|
|
111
117
|
parent_istd_item = "parent_istd_item",
|
|
112
|
-
po_grn_item_junction = "po_grn_item_junction"
|
|
118
|
+
po_grn_item_junction = "po_grn_item_junction",
|
|
119
|
+
parent_ves_item = "parent_ves_item"
|
|
113
120
|
}
|
|
114
121
|
export interface IGRNItem {
|
|
115
122
|
id: string;
|
|
@@ -124,21 +131,30 @@ export interface IGRNItem {
|
|
|
124
131
|
general_remark: string | null;
|
|
125
132
|
difference_remark: string | null;
|
|
126
133
|
attachment_link: string | null;
|
|
127
|
-
item_description
|
|
128
|
-
|
|
134
|
+
item_description: string | null;
|
|
135
|
+
parent_ves_item_id: string | null;
|
|
136
|
+
parent_asn_item_id: string | null;
|
|
129
137
|
parent_istd_item_id: string | null;
|
|
130
|
-
po_grn_item_junction_id
|
|
138
|
+
po_grn_item_junction_id: string | null;
|
|
131
139
|
is_deleted: boolean;
|
|
132
|
-
deleted_at
|
|
140
|
+
deleted_at: string | null;
|
|
133
141
|
created_at: string;
|
|
134
142
|
updated_at: string;
|
|
135
|
-
company
|
|
136
|
-
parent_grn
|
|
137
|
-
item
|
|
138
|
-
parent_asn_item
|
|
139
|
-
parent_istd_item
|
|
140
|
-
referenced_in_mrn_items
|
|
141
|
-
po_grn_item_junction
|
|
143
|
+
company: INestedCompany | null;
|
|
144
|
+
parent_grn: INestedGRN | null;
|
|
145
|
+
item: INestedItem | null;
|
|
146
|
+
parent_asn_item: INestedASNItem | null;
|
|
147
|
+
parent_istd_item: INestedISTDItem | null;
|
|
148
|
+
referenced_in_mrn_items: INestedMRNItem[] | null;
|
|
149
|
+
po_grn_item_junction: INestedPOGRNItemJunction | null;
|
|
150
|
+
parent_ves_item: INestedVESItem | null;
|
|
151
|
+
}
|
|
152
|
+
export interface INestedGRNItem extends Omit<IGRNItem, "company" | "parent_grn" | "item" | "parent_asn_item" | "referenced_in_mrn_items" | "parent_istd_item" | "po_grn_item_junction" | "parent_ves_item"> {
|
|
142
153
|
}
|
|
143
|
-
export interface
|
|
154
|
+
export interface IFetchParentDocumentForGRNResponse {
|
|
155
|
+
parent_document_type: GRN_PARENT_DOC_TYPE;
|
|
156
|
+
asn_data: INestedASN | null;
|
|
157
|
+
po_data: INestedPo | null;
|
|
158
|
+
istd_data: INestedISTD | null;
|
|
159
|
+
ves_data: INestedVES | null;
|
|
144
160
|
}
|
|
@@ -18,6 +18,7 @@ var GRN_PARENT_DOC_TYPE;
|
|
|
18
18
|
GRN_PARENT_DOC_TYPE["ASN"] = "ASN";
|
|
19
19
|
GRN_PARENT_DOC_TYPE["ISTD"] = "ISTD";
|
|
20
20
|
GRN_PARENT_DOC_TYPE["PO"] = "PO";
|
|
21
|
+
GRN_PARENT_DOC_TYPE["VES"] = "VES";
|
|
21
22
|
})(GRN_PARENT_DOC_TYPE || (exports.GRN_PARENT_DOC_TYPE = GRN_PARENT_DOC_TYPE = {}));
|
|
22
23
|
var GRN_INCLUDE;
|
|
23
24
|
(function (GRN_INCLUDE) {
|
|
@@ -29,6 +30,7 @@ var GRN_INCLUDE;
|
|
|
29
30
|
GRN_INCLUDE["parent_asn"] = "parent_asn";
|
|
30
31
|
GRN_INCLUDE["parent_istd"] = "parent_istd";
|
|
31
32
|
GRN_INCLUDE["parent_po"] = "parent_po";
|
|
33
|
+
GRN_INCLUDE["parent_ves"] = "parent_ves";
|
|
32
34
|
GRN_INCLUDE["contact_person"] = "contact_person";
|
|
33
35
|
GRN_INCLUDE["items"] = "items";
|
|
34
36
|
GRN_INCLUDE["approval_chain"] = "approval_chain";
|
|
@@ -55,4 +57,5 @@ var GRN_ITEM_INCLUDE;
|
|
|
55
57
|
GRN_ITEM_INCLUDE["referenced_in_mrn_items"] = "referenced_in_mrn_items";
|
|
56
58
|
GRN_ITEM_INCLUDE["parent_istd_item"] = "parent_istd_item";
|
|
57
59
|
GRN_ITEM_INCLUDE["po_grn_item_junction"] = "po_grn_item_junction";
|
|
60
|
+
GRN_ITEM_INCLUDE["parent_ves_item"] = "parent_ves_item";
|
|
58
61
|
})(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { INestedBOM } from "./bom.typings";
|
|
2
2
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
3
3
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
|
-
import { IQRBaseData, QR_DOCUMENT_TYPE } from "./common/qr.typings";
|
|
5
4
|
import { INestedCompany } from "./company.typings";
|
|
6
5
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
7
6
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
@@ -20,15 +19,6 @@ import { INestedQuote } from "./quote.typings";
|
|
|
20
19
|
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
21
20
|
import { INestedUser, IUser } from "./user.typings";
|
|
22
21
|
import { INestedVendor } from "./vendor.typings";
|
|
23
|
-
export interface IPOQrData {
|
|
24
|
-
po_id: string;
|
|
25
|
-
po_no: string;
|
|
26
|
-
}
|
|
27
|
-
export declare abstract class _POQrData implements IPOQrData, IQRBaseData {
|
|
28
|
-
abstract qr_document_type: QR_DOCUMENT_TYPE.PO;
|
|
29
|
-
abstract po_id: string;
|
|
30
|
-
abstract po_no: string;
|
|
31
|
-
}
|
|
32
22
|
export declare enum PO_LIST_TYPES {
|
|
33
23
|
ALL = "ALL",
|
|
34
24
|
MY_APPROVALS = "MY_APPROVALS",
|
|
@@ -42,15 +32,28 @@ export declare enum COMPANY_VIEW_PO_TABS {
|
|
|
42
32
|
LOGS = "LOGS"
|
|
43
33
|
}
|
|
44
34
|
export declare enum PO_STATUS {
|
|
35
|
+
/** @description DRAFT means the PO has been created by user and is in initial stage. Vendor has no information about this PO at DRAFT Stage */
|
|
45
36
|
DRAFT = "DRAFT",
|
|
37
|
+
/** @description PENDING_APPROVAL means the PO has been sent for approval and on the way to getting approved by everyone included in its approval chain */
|
|
46
38
|
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
39
|
+
/** @description APPROVED means the PO was approved by everyone in the approval chain and is ready to be sent to vendor */
|
|
47
40
|
APPROVED = "APPROVED",
|
|
41
|
+
/** @description REJECTED measn the PO was rejected by one of the Users of approval chain and has been sent back to the member of approval chain preceeding
|
|
42
|
+
* the user who rejected it */
|
|
48
43
|
REJECTED = "REJECTED",
|
|
44
|
+
/** @description CANCELLED means the PO was either cancelled by Company User or Vendor. Lifecyle of this PO has come to an end*/
|
|
49
45
|
CANCELLED = "CANCELLED",
|
|
46
|
+
/** @description CLOSED Status signifies that every item of PO has been included in GRNs and has been successfully delivered to the Company */
|
|
50
47
|
CLOSED = "CLOSED",
|
|
48
|
+
/** @description SENT_TO_VENDOR means the PO was approved from company and has been sent to vendor, but vendor is yet to take any action on it (Either Accept
|
|
49
|
+
* or Reject) */
|
|
51
50
|
SENT_TO_VENDOR = "SENT_TO_VENDORS",
|
|
51
|
+
/** @description ACCEPTED means the Vendor has received the PO and has accepted it. */
|
|
52
52
|
ACCEPTED = "ACCEPTED",
|
|
53
|
+
/** @description REJECTE_BY_VENDOR means the Vendor has received the PO and has rejected it. */
|
|
53
54
|
REJECTED_BY_VENDOR = "REJECTED_BY_VENDOR",
|
|
55
|
+
/** @description POCESSED means all the items of PO have been included in GRN successfully but some of the GRNs have not been approved yet i.e. Changes can
|
|
56
|
+
* happen and staus might get demoted. */
|
|
54
57
|
PROCESSED = "PROCESSED"
|
|
55
58
|
}
|
|
56
59
|
export declare enum PO_TYPE {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PO_BOM_INCLUDE = exports.PO_ITEM_INCLUDE = exports.PO_INCLUDE = exports.PO_ITEM_ASCENDENCE_TYPE = exports.PO_TYPE = exports.PO_STATUS = exports.COMPANY_VIEW_PO_TABS = exports.PO_LIST_TYPES =
|
|
4
|
-
class _POQrData {
|
|
5
|
-
}
|
|
6
|
-
exports._POQrData = _POQrData;
|
|
3
|
+
exports.PO_BOM_INCLUDE = exports.PO_ITEM_INCLUDE = exports.PO_INCLUDE = exports.PO_ITEM_ASCENDENCE_TYPE = exports.PO_TYPE = exports.PO_STATUS = exports.COMPANY_VIEW_PO_TABS = exports.PO_LIST_TYPES = void 0;
|
|
7
4
|
var PO_LIST_TYPES;
|
|
8
5
|
(function (PO_LIST_TYPES) {
|
|
9
6
|
PO_LIST_TYPES["ALL"] = "ALL";
|
|
@@ -20,15 +17,28 @@ var COMPANY_VIEW_PO_TABS;
|
|
|
20
17
|
})(COMPANY_VIEW_PO_TABS || (exports.COMPANY_VIEW_PO_TABS = COMPANY_VIEW_PO_TABS = {}));
|
|
21
18
|
var PO_STATUS;
|
|
22
19
|
(function (PO_STATUS) {
|
|
20
|
+
/** @description DRAFT means the PO has been created by user and is in initial stage. Vendor has no information about this PO at DRAFT Stage */
|
|
23
21
|
PO_STATUS["DRAFT"] = "DRAFT";
|
|
22
|
+
/** @description PENDING_APPROVAL means the PO has been sent for approval and on the way to getting approved by everyone included in its approval chain */
|
|
24
23
|
PO_STATUS["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
24
|
+
/** @description APPROVED means the PO was approved by everyone in the approval chain and is ready to be sent to vendor */
|
|
25
25
|
PO_STATUS["APPROVED"] = "APPROVED";
|
|
26
|
+
/** @description REJECTED measn the PO was rejected by one of the Users of approval chain and has been sent back to the member of approval chain preceeding
|
|
27
|
+
* the user who rejected it */
|
|
26
28
|
PO_STATUS["REJECTED"] = "REJECTED";
|
|
29
|
+
/** @description CANCELLED means the PO was either cancelled by Company User or Vendor. Lifecyle of this PO has come to an end*/
|
|
27
30
|
PO_STATUS["CANCELLED"] = "CANCELLED";
|
|
31
|
+
/** @description CLOSED Status signifies that every item of PO has been included in GRNs and has been successfully delivered to the Company */
|
|
28
32
|
PO_STATUS["CLOSED"] = "CLOSED";
|
|
33
|
+
/** @description SENT_TO_VENDOR means the PO was approved from company and has been sent to vendor, but vendor is yet to take any action on it (Either Accept
|
|
34
|
+
* or Reject) */
|
|
29
35
|
PO_STATUS["SENT_TO_VENDOR"] = "SENT_TO_VENDORS";
|
|
36
|
+
/** @description ACCEPTED means the Vendor has received the PO and has accepted it. */
|
|
30
37
|
PO_STATUS["ACCEPTED"] = "ACCEPTED";
|
|
38
|
+
/** @description REJECTE_BY_VENDOR means the Vendor has received the PO and has rejected it. */
|
|
31
39
|
PO_STATUS["REJECTED_BY_VENDOR"] = "REJECTED_BY_VENDOR";
|
|
40
|
+
/** @description POCESSED means all the items of PO have been included in GRN successfully but some of the GRNs have not been approved yet i.e. Changes can
|
|
41
|
+
* happen and staus might get demoted. */
|
|
32
42
|
PO_STATUS["PROCESSED"] = "PROCESSED";
|
|
33
43
|
})(PO_STATUS || (exports.PO_STATUS = PO_STATUS = {}));
|
|
34
44
|
var PO_TYPE;
|