kcommons 5.0.1 → 5.0.3
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,12 +1,26 @@
|
|
|
1
1
|
import { INestedPo } from "./po.typings";
|
|
2
2
|
import { INestedQuote } from "./quote.typings";
|
|
3
|
+
export declare enum TAX_TYPE {
|
|
4
|
+
FIXED = "FIXED",
|
|
5
|
+
PERCENTAGE = "PERCENTAGE"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TAX_NAME {
|
|
8
|
+
PNF = "PNF",
|
|
9
|
+
FREIGHT = "FREIGHT",
|
|
10
|
+
INSURANCE = "INSURANCE",
|
|
11
|
+
OTHER_CHARGES = "OTHER_CHARGES",
|
|
12
|
+
GST = "GST",
|
|
13
|
+
TCS = "TCS",
|
|
14
|
+
CESS = "CESS",
|
|
15
|
+
ADJUSTMENT = "ADJUSTMENT"
|
|
16
|
+
}
|
|
3
17
|
export interface IDocumentTaxes {
|
|
4
18
|
id: string;
|
|
5
19
|
quote_id: string;
|
|
6
20
|
po_id: string;
|
|
7
|
-
tax_name:
|
|
8
|
-
tax_type:
|
|
9
|
-
tax_value:
|
|
21
|
+
tax_name: TAX_NAME;
|
|
22
|
+
tax_type: TAX_TYPE;
|
|
23
|
+
tax_value: number;
|
|
10
24
|
tax_resultant: number;
|
|
11
25
|
created_at: string;
|
|
12
26
|
updated_at: string;
|
|
@@ -15,7 +29,3 @@ export interface IDocumentTaxes {
|
|
|
15
29
|
}
|
|
16
30
|
export interface INestedDocumentTaxes extends Omit<IDocumentTaxes, "parent_quote" | "parent_po"> {
|
|
17
31
|
}
|
|
18
|
-
export declare enum TAX_TYPE {
|
|
19
|
-
FIXED = "FIXED",
|
|
20
|
-
PERCENTAGE = "PERCENTAGE"
|
|
21
|
-
}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TAX_TYPE = void 0;
|
|
3
|
+
exports.TAX_NAME = exports.TAX_TYPE = void 0;
|
|
4
4
|
var TAX_TYPE;
|
|
5
5
|
(function (TAX_TYPE) {
|
|
6
6
|
TAX_TYPE["FIXED"] = "FIXED";
|
|
7
7
|
TAX_TYPE["PERCENTAGE"] = "PERCENTAGE";
|
|
8
8
|
})(TAX_TYPE = exports.TAX_TYPE || (exports.TAX_TYPE = {}));
|
|
9
|
+
var TAX_NAME;
|
|
10
|
+
(function (TAX_NAME) {
|
|
11
|
+
TAX_NAME["PNF"] = "PNF";
|
|
12
|
+
TAX_NAME["FREIGHT"] = "FREIGHT";
|
|
13
|
+
TAX_NAME["INSURANCE"] = "INSURANCE";
|
|
14
|
+
TAX_NAME["OTHER_CHARGES"] = "OTHER_CHARGES";
|
|
15
|
+
TAX_NAME["GST"] = "GST";
|
|
16
|
+
TAX_NAME["TCS"] = "TCS";
|
|
17
|
+
TAX_NAME["CESS"] = "CESS";
|
|
18
|
+
TAX_NAME["ADJUSTMENT"] = "ADJUSTMENT";
|
|
19
|
+
})(TAX_NAME = exports.TAX_NAME || (exports.TAX_NAME = {}));
|
|
@@ -3,6 +3,10 @@ import { INestedItem } from "./item.typings";
|
|
|
3
3
|
import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
|
|
4
4
|
import { INestedTaxes } from "./taxes.typings";
|
|
5
5
|
import { INestedVendor } from "./vendor.typings";
|
|
6
|
+
export declare enum QUOTE_TYPE {
|
|
7
|
+
RFQ_ASCENDANT = "RFQ_ASCENDANT",
|
|
8
|
+
DIRECT = "DIRECT"
|
|
9
|
+
}
|
|
6
10
|
export declare enum QUOTE_STATUS {
|
|
7
11
|
PENDING = "PENDING",
|
|
8
12
|
QUOTED = "QUOTED"
|
|
@@ -21,11 +25,12 @@ export declare enum QUOTE_ITEM_INCLUDES {
|
|
|
21
25
|
}
|
|
22
26
|
export interface IQuote {
|
|
23
27
|
id: string;
|
|
28
|
+
quote_type: QUOTE_TYPE;
|
|
24
29
|
rfq_id: string;
|
|
25
30
|
vendor_id: string;
|
|
26
31
|
company_id: string;
|
|
27
32
|
quote_no: string;
|
|
28
|
-
is_quoted:
|
|
33
|
+
is_quoted: boolean;
|
|
29
34
|
delivery_schedule?: string | null;
|
|
30
35
|
payment_terms?: string | null;
|
|
31
36
|
remarks?: string | null;
|
|
@@ -43,7 +48,7 @@ export interface IQuote {
|
|
|
43
48
|
}
|
|
44
49
|
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "company" | "quote_items" | "taxes"> {
|
|
45
50
|
}
|
|
46
|
-
export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at"> {
|
|
51
|
+
export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at" | "parent_rfq" | "vendor" | "company" | "quote_items" | "taxes"> {
|
|
47
52
|
}
|
|
48
53
|
export interface IQuoteItems {
|
|
49
54
|
id: string;
|
|
@@ -67,6 +72,8 @@ export interface IQuoteItems {
|
|
|
67
72
|
}
|
|
68
73
|
export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item"> {
|
|
69
74
|
}
|
|
75
|
+
export interface IQuoteItemInputs extends Omit<IQuoteItems, "created_at" | "updated_at" | "is_deleted" | "deleted_at" | "quote" | "item" | "rfq_item"> {
|
|
76
|
+
}
|
|
70
77
|
export declare class QuoteItemFactory implements IQuoteItems {
|
|
71
78
|
constructor(partial: IQuoteItems);
|
|
72
79
|
id: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuoteItemFactory = exports.QUOTE_ITEM_INCLUDES = exports.QUOTE_INCLUDES = exports.QUOTE_STATUS = void 0;
|
|
3
|
+
exports.QuoteItemFactory = exports.QUOTE_ITEM_INCLUDES = exports.QUOTE_INCLUDES = exports.QUOTE_STATUS = exports.QUOTE_TYPE = void 0;
|
|
4
|
+
var QUOTE_TYPE;
|
|
5
|
+
(function (QUOTE_TYPE) {
|
|
6
|
+
QUOTE_TYPE["RFQ_ASCENDANT"] = "RFQ_ASCENDANT";
|
|
7
|
+
QUOTE_TYPE["DIRECT"] = "DIRECT";
|
|
8
|
+
})(QUOTE_TYPE = exports.QUOTE_TYPE || (exports.QUOTE_TYPE = {}));
|
|
4
9
|
var QUOTE_STATUS;
|
|
5
10
|
(function (QUOTE_STATUS) {
|
|
6
11
|
QUOTE_STATUS["PENDING"] = "PENDING";
|