kcommons 18.24.3 → 18.24.5
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.
|
@@ -28,6 +28,7 @@ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
|
28
28
|
import { INestedQALocation } from "./qualityAssessment.typings";
|
|
29
29
|
import { INestedAccountsLocation } from "./accountsLocation.typings";
|
|
30
30
|
import { INestedAudits } from "./audits.typings";
|
|
31
|
+
import { INestedSupplierInvoice } from "./supplierInvoice.typings";
|
|
31
32
|
export interface IStoreLocationFilters {
|
|
32
33
|
name?: string;
|
|
33
34
|
served_by_purchase_location_id?: string;
|
|
@@ -78,9 +79,10 @@ export interface IStoreLocation extends IAddress {
|
|
|
78
79
|
qa_locations: INestedQALocation | null;
|
|
79
80
|
accounts_locations: INestedAccountsLocation | null;
|
|
80
81
|
audits: INestedAudits[] | null;
|
|
82
|
+
supplier_invoices: INestedSupplierInvoice[] | null;
|
|
81
83
|
as_source_location_for_fos?: null | INestedFO[];
|
|
82
84
|
}
|
|
83
|
-
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "as_shipping_location_for_rfqs" | "as_source_location_for_frrs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs" | "target_location_for_ves" | "linked_checkpoints" | "qa_locations" | "accounts_locations" | "audits" | "as_source_location_for_fos"> {
|
|
85
|
+
export interface INestedStoreLocation extends Omit<IStoreLocation, "company" | "store_incharge" | "approval_configs" | "inventory_entries" | "departments" | "roles" | "indents" | "mis" | "mrns" | "prs" | "as_shipping_location_for_rfqs" | "as_source_location_for_frrs" | "as_shipping_location_for_quotes" | "target_offices" | "served_by_gates" | "served_by_purchase_locations" | "as_shipping_location_for_pos" | "as_shipping_location_for_grns" | "as_shipping_location_for_asns" | "as_source_store_location_for_istds" | "as_dest_store_location_for_istds" | "iads" | "inventory_logs" | "target_location_for_ves" | "linked_checkpoints" | "qa_locations" | "accounts_locations" | "audits" | "supplier_invoices" | "as_source_location_for_fos"> {
|
|
84
86
|
}
|
|
85
87
|
export declare enum StoreLocationInclude {
|
|
86
88
|
company = "company",
|
|
@@ -110,6 +112,7 @@ export declare enum StoreLocationInclude {
|
|
|
110
112
|
linked_checkpoints = "linked_checkpoints",
|
|
111
113
|
qa_locations = "qa_locations",
|
|
112
114
|
accounts_locations = "accounts_locations",
|
|
113
|
-
audits = "audits
|
|
115
|
+
audits = "audits",
|
|
116
|
+
supplier_invoices = "supplier_invoices",
|
|
114
117
|
as_source_location_for_fos = "as_source_location_for_fos"
|
|
115
118
|
}
|
|
@@ -30,6 +30,7 @@ var StoreLocationInclude;
|
|
|
30
30
|
StoreLocationInclude["linked_checkpoints"] = "linked_checkpoints";
|
|
31
31
|
StoreLocationInclude["qa_locations"] = "qa_locations";
|
|
32
32
|
StoreLocationInclude["accounts_locations"] = "accounts_locations";
|
|
33
|
-
StoreLocationInclude["audits"] = "audits
|
|
33
|
+
StoreLocationInclude["audits"] = "audits";
|
|
34
|
+
StoreLocationInclude["supplier_invoices"] = "supplier_invoices";
|
|
34
35
|
StoreLocationInclude["as_source_location_for_fos"] = "as_source_location_for_fos";
|
|
35
36
|
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|
|
@@ -9,6 +9,7 @@ import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
|
9
9
|
import { INestedCustomUOM } from "./customUOM.typings";
|
|
10
10
|
import { INestedGRN } from "./grn.typings";
|
|
11
11
|
import { INestedMRN } from "./mrn.typings";
|
|
12
|
+
import { INestedStoreLocation } from "./storeLocation.typings";
|
|
12
13
|
import { INestedUser } from "./user.typings";
|
|
13
14
|
import { INestedVendor } from "./vendor.typings";
|
|
14
15
|
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
@@ -34,6 +35,7 @@ export interface ISupplierInvoice {
|
|
|
34
35
|
company_id: string;
|
|
35
36
|
vendor_id: string | null;
|
|
36
37
|
company_vendor_id: string | null;
|
|
38
|
+
target_store_location_id: string | null;
|
|
37
39
|
supplier_name_on_invoice: string;
|
|
38
40
|
status: SUPPLIER_INVOICE_STATUS;
|
|
39
41
|
invoice_date: string;
|
|
@@ -47,6 +49,7 @@ export interface ISupplierInvoice {
|
|
|
47
49
|
igst_amount: number | null;
|
|
48
50
|
cgst_amount: number | null;
|
|
49
51
|
sgst_amount: number | null;
|
|
52
|
+
other_charges: number | null;
|
|
50
53
|
total: number;
|
|
51
54
|
round_off: number | null;
|
|
52
55
|
eway_bill_no: string | null;
|
|
@@ -87,6 +90,7 @@ export interface ISupplierInvoice {
|
|
|
87
90
|
created_by_user: INestedUser | null;
|
|
88
91
|
last_updated_by_user: INestedUser | null;
|
|
89
92
|
associated_imr: INestedInvoiceMatchingRecord | null;
|
|
93
|
+
target_store_location: INestedStoreLocation | null;
|
|
90
94
|
invoice_items: ISupplierInvoiceItem[] | null;
|
|
91
95
|
parent_pos: INestedPo[] | null;
|
|
92
96
|
associated_grn: INestedGRN[] | null;
|
|
@@ -94,7 +98,7 @@ export interface ISupplierInvoice {
|
|
|
94
98
|
associated_ves: INestedVES[] | null;
|
|
95
99
|
metafields?: ISupplierInvoiceMetafields | null;
|
|
96
100
|
}
|
|
97
|
-
export interface INestedSupplierInvoice extends Omit<ISupplierInvoice, "company" | "vendor" | "company_vendor" | "marked_as_cancelled_by_user" | "marked_as_verified_by_user" | "created_by_vendor_user" | "created_by_user" | "last_updated_by_user" | "invoice_items" | "parent_pos" | "associated_grn" | "associated_mrn" | "associated_imr" | "metafields"> {
|
|
101
|
+
export interface INestedSupplierInvoice extends Omit<ISupplierInvoice, "company" | "vendor" | "company_vendor" | "marked_as_cancelled_by_user" | "marked_as_verified_by_user" | "created_by_vendor_user" | "created_by_user" | "last_updated_by_user" | "invoice_items" | "parent_pos" | "associated_grn" | "associated_mrn" | "associated_imr" | "target_store_location" | "metafields"> {
|
|
98
102
|
}
|
|
99
103
|
export declare enum SUPPLIER_INVOICE_STATUS {
|
|
100
104
|
RAISED = "RAISED",
|
|
@@ -117,7 +121,8 @@ export declare enum SUPPLIER_INVOICE_INCLUDE {
|
|
|
117
121
|
associated_grn = "associated_grn",
|
|
118
122
|
associated_ves = "associated_ves",
|
|
119
123
|
associated_mrn = "associated_mrn",
|
|
120
|
-
associated_imr = "associated_imr"
|
|
124
|
+
associated_imr = "associated_imr",
|
|
125
|
+
target_store_location = "target_store_location"
|
|
121
126
|
}
|
|
122
127
|
export declare enum SUPPLIER_INVOICE_ITEM_INCLUDE {
|
|
123
128
|
invoice = "invoice",
|
|
@@ -155,7 +160,8 @@ export declare enum SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS {
|
|
|
155
160
|
PO_MISMATCH = "PO_MISMATCH",
|
|
156
161
|
GSTIN_MISMATCH = "GSTIN_MISMATCH",
|
|
157
162
|
VENDOR_DOES_NOT_EXISTS_IN_COMPANY = "VENDOR_DOES_NOT_EXISTS_IN_COMPANY",
|
|
158
|
-
VENDOR_NOT_ONBOARDED = "VENDOR_NOT_ONBOARDED"
|
|
163
|
+
VENDOR_NOT_ONBOARDED = "VENDOR_NOT_ONBOARDED",
|
|
164
|
+
STORE_LOCATION_MISMATCH = "STORE_LOCATION_MISMATCH"
|
|
159
165
|
}
|
|
160
166
|
export interface ISupplierInvoiceMetafields {
|
|
161
167
|
parent_gi_created_by_user: INestedUser | null;
|
|
@@ -25,6 +25,7 @@ var SUPPLIER_INVOICE_INCLUDE;
|
|
|
25
25
|
SUPPLIER_INVOICE_INCLUDE["associated_ves"] = "associated_ves";
|
|
26
26
|
SUPPLIER_INVOICE_INCLUDE["associated_mrn"] = "associated_mrn";
|
|
27
27
|
SUPPLIER_INVOICE_INCLUDE["associated_imr"] = "associated_imr";
|
|
28
|
+
SUPPLIER_INVOICE_INCLUDE["target_store_location"] = "target_store_location";
|
|
28
29
|
})(SUPPLIER_INVOICE_INCLUDE || (exports.SUPPLIER_INVOICE_INCLUDE = SUPPLIER_INVOICE_INCLUDE = {}));
|
|
29
30
|
var SUPPLIER_INVOICE_ITEM_INCLUDE;
|
|
30
31
|
(function (SUPPLIER_INVOICE_ITEM_INCLUDE) {
|
|
@@ -39,6 +40,7 @@ var SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS;
|
|
|
39
40
|
SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS["GSTIN_MISMATCH"] = "GSTIN_MISMATCH";
|
|
40
41
|
SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS["VENDOR_DOES_NOT_EXISTS_IN_COMPANY"] = "VENDOR_DOES_NOT_EXISTS_IN_COMPANY";
|
|
41
42
|
SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS["VENDOR_NOT_ONBOARDED"] = "VENDOR_NOT_ONBOARDED";
|
|
43
|
+
SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS["STORE_LOCATION_MISMATCH"] = "STORE_LOCATION_MISMATCH";
|
|
42
44
|
// VENDOR_GSTIN_NOT_RECEIVED = 'VENDOR_GSTIN_NOT_RECEIVED',
|
|
43
45
|
})(SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS || (exports.SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS = {}));
|
|
44
46
|
var SUPPLIER_INVOICE_METFIELD_INCLUDE;
|