kcommons 5.16.5 → 5.16.7
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INestedBOMItem } from "./bom.typings";
|
|
2
2
|
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
3
4
|
import { INestedComparativeItem } from "./comparative.typings";
|
|
4
5
|
import { INestedGRNItem } from "./grn.typings";
|
|
5
6
|
import { INestedIndentItem } from "./indent.typings";
|
|
@@ -11,6 +12,10 @@ import { INestedPrItem } from "./pr.typings";
|
|
|
11
12
|
import { INestedQuoteItems } from "./quote.typings";
|
|
12
13
|
import { INestedInventoryItem } from "./storeInventory.typings";
|
|
13
14
|
import { INestedUser } from "./user.typings";
|
|
15
|
+
export declare enum ITEM_INCLUDE {
|
|
16
|
+
previous_purchase_vendor = "previous_purchase_vendor",
|
|
17
|
+
least_purchase_vendor = "least_purchase_vendor"
|
|
18
|
+
}
|
|
14
19
|
export interface IItem {
|
|
15
20
|
id: string;
|
|
16
21
|
item_type: string;
|
|
@@ -28,6 +33,12 @@ export interface IItem {
|
|
|
28
33
|
gst_percent?: number;
|
|
29
34
|
attachment_link: string | null;
|
|
30
35
|
previous_price?: number;
|
|
36
|
+
least_purchase_price: number | null;
|
|
37
|
+
least_purchase_company_vendor_id: string | null;
|
|
38
|
+
least_purchase_date: string | null;
|
|
39
|
+
previous_purchase_price: number | null;
|
|
40
|
+
previous_purchase_company_vendor_id: string | null;
|
|
41
|
+
previous_purchase_date: string | null;
|
|
31
42
|
item_description: string | null;
|
|
32
43
|
item_image?: string;
|
|
33
44
|
sac_code?: string;
|
|
@@ -51,8 +62,10 @@ export interface IItem {
|
|
|
51
62
|
used_in_mrn_items?: INestedMRNItem[] | null;
|
|
52
63
|
used_in_bom_items?: INestedBOMItem[] | null;
|
|
53
64
|
used_in_comparative_items?: INestedComparativeItem[] | null;
|
|
65
|
+
previous_purchase_vendor?: INestedCompanyVendors | null;
|
|
66
|
+
least_purchase_vendor?: INestedCompanyVendors | null;
|
|
54
67
|
}
|
|
55
|
-
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items"> {
|
|
68
|
+
export interface INestedItem extends Omit<IItem, "inventory_entries" | "approved_by" | "item_category" | "item_subcategory" | "company" | "used_in_indent_items" | "used_in_mi_items" | "used_in_pr_items" | "used_in_quote_items" | "used_in_grn_items" | "used_in_mrn_items" | "used_in_bom_items" | "used_in_comparative_items" | "previous_purchase_vendor" | "least_purchase_vendor"> {
|
|
56
69
|
}
|
|
57
70
|
export declare const ITEM_CLASSIFICATION: {
|
|
58
71
|
DIRECT: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UOMS = exports.ITEM_TYPES = exports.ITEM_TAX_PREFERENCE = exports.ITEM_CLASSIFICATION = void 0;
|
|
3
|
+
exports.UOMS = exports.ITEM_TYPES = exports.ITEM_TAX_PREFERENCE = exports.ITEM_CLASSIFICATION = exports.ITEM_INCLUDE = void 0;
|
|
4
|
+
var ITEM_INCLUDE;
|
|
5
|
+
(function (ITEM_INCLUDE) {
|
|
6
|
+
ITEM_INCLUDE["previous_purchase_vendor"] = "previous_purchase_vendor";
|
|
7
|
+
ITEM_INCLUDE["least_purchase_vendor"] = "least_purchase_vendor";
|
|
8
|
+
})(ITEM_INCLUDE || (exports.ITEM_INCLUDE = ITEM_INCLUDE = {}));
|
|
4
9
|
exports.ITEM_CLASSIFICATION = {
|
|
5
10
|
DIRECT: "Direct",
|
|
6
11
|
INDIRECT: "Indirect",
|