kcommons 18.24.3 → 18.24.6

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";
@@ -26,6 +27,7 @@ export interface ISupplierInvoiceFiltersWithPaginationForVendor extends ISupplie
26
27
  export interface ISupplierInvoiceFiltersForCompany extends Partial<Pick<ISupplierInvoice, "company_vendor_id">>, ISupplierInvoiceFiltersBase {
27
28
  for_creating_gi?: boolean;
28
29
  for_creating_ves?: boolean;
30
+ target_store_location_id?: string;
29
31
  }
30
32
  export interface ISupplierInvoiceFiltersWithPaginationForCompany extends ISupplierInvoiceFiltersForCompany, IPaginationFilters {
31
33
  }
@@ -34,6 +36,7 @@ export interface ISupplierInvoice {
34
36
  company_id: string;
35
37
  vendor_id: string | null;
36
38
  company_vendor_id: string | null;
39
+ target_store_location_id: string | null;
37
40
  supplier_name_on_invoice: string;
38
41
  status: SUPPLIER_INVOICE_STATUS;
39
42
  invoice_date: string;
@@ -47,6 +50,7 @@ export interface ISupplierInvoice {
47
50
  igst_amount: number | null;
48
51
  cgst_amount: number | null;
49
52
  sgst_amount: number | null;
53
+ other_charges: number | null;
50
54
  total: number;
51
55
  round_off: number | null;
52
56
  eway_bill_no: string | null;
@@ -87,6 +91,7 @@ export interface ISupplierInvoice {
87
91
  created_by_user: INestedUser | null;
88
92
  last_updated_by_user: INestedUser | null;
89
93
  associated_imr: INestedInvoiceMatchingRecord | null;
94
+ target_store_location: INestedStoreLocation | null;
90
95
  invoice_items: ISupplierInvoiceItem[] | null;
91
96
  parent_pos: INestedPo[] | null;
92
97
  associated_grn: INestedGRN[] | null;
@@ -94,7 +99,7 @@ export interface ISupplierInvoice {
94
99
  associated_ves: INestedVES[] | null;
95
100
  metafields?: ISupplierInvoiceMetafields | null;
96
101
  }
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"> {
102
+ 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
103
  }
99
104
  export declare enum SUPPLIER_INVOICE_STATUS {
100
105
  RAISED = "RAISED",
@@ -117,7 +122,8 @@ export declare enum SUPPLIER_INVOICE_INCLUDE {
117
122
  associated_grn = "associated_grn",
118
123
  associated_ves = "associated_ves",
119
124
  associated_mrn = "associated_mrn",
120
- associated_imr = "associated_imr"
125
+ associated_imr = "associated_imr",
126
+ target_store_location = "target_store_location"
121
127
  }
122
128
  export declare enum SUPPLIER_INVOICE_ITEM_INCLUDE {
123
129
  invoice = "invoice",
@@ -155,7 +161,8 @@ export declare enum SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS {
155
161
  PO_MISMATCH = "PO_MISMATCH",
156
162
  GSTIN_MISMATCH = "GSTIN_MISMATCH",
157
163
  VENDOR_DOES_NOT_EXISTS_IN_COMPANY = "VENDOR_DOES_NOT_EXISTS_IN_COMPANY",
158
- VENDOR_NOT_ONBOARDED = "VENDOR_NOT_ONBOARDED"
164
+ VENDOR_NOT_ONBOARDED = "VENDOR_NOT_ONBOARDED",
165
+ STORE_LOCATION_MISMATCH = "STORE_LOCATION_MISMATCH"
159
166
  }
160
167
  export interface ISupplierInvoiceMetafields {
161
168
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "18.24.3",
3
+ "version": "18.24.6",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",