kcommons 5.0.16 → 5.0.17
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.
|
@@ -49,8 +49,6 @@ export interface IQuote {
|
|
|
49
49
|
}
|
|
50
50
|
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "company" | "items" | "taxes"> {
|
|
51
51
|
}
|
|
52
|
-
export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at" | "parent_rfq" | "vendor" | "company" | "items" | "taxes"> {
|
|
53
|
-
}
|
|
54
52
|
export interface IQuoteItems extends ITaxRelatedItemInputs {
|
|
55
53
|
quote_id: string;
|
|
56
54
|
rfq_item_id?: string | null;
|
|
@@ -60,26 +58,3 @@ export interface IQuoteItems extends ITaxRelatedItemInputs {
|
|
|
60
58
|
}
|
|
61
59
|
export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item"> {
|
|
62
60
|
}
|
|
63
|
-
export interface IQuoteItemInputs extends Omit<IQuoteItems, "created_at" | "updated_at" | "is_deleted" | "deleted_at" | "quote" | "item" | "rfq_item"> {
|
|
64
|
-
}
|
|
65
|
-
export declare class QuoteItemFactory implements IQuoteItems {
|
|
66
|
-
constructor(partial: IQuoteItems);
|
|
67
|
-
id: string;
|
|
68
|
-
quote_id: string;
|
|
69
|
-
item_id: string;
|
|
70
|
-
rfq_item_id: string;
|
|
71
|
-
requested_quantity: number;
|
|
72
|
-
gst?: number | null;
|
|
73
|
-
per_unit_rate?: number | null;
|
|
74
|
-
provided_quantity?: number | null;
|
|
75
|
-
discount_type?: string | null;
|
|
76
|
-
discount_value?: number | null;
|
|
77
|
-
remark?: string | null;
|
|
78
|
-
is_deleted?: boolean | null;
|
|
79
|
-
deleted_at?: string | null;
|
|
80
|
-
created_at?: string | null;
|
|
81
|
-
updated_at?: string | null;
|
|
82
|
-
quote?: INestedQuote | null;
|
|
83
|
-
item?: INestedItem | null;
|
|
84
|
-
rfq_item?: INestedRFQItem | null;
|
|
85
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QUOTE_ITEM_INCLUDES = exports.QUOTE_INCLUDES = exports.QUOTE_STATUS = exports.QUOTE_TYPE = void 0;
|
|
4
4
|
var QUOTE_TYPE;
|
|
5
5
|
(function (QUOTE_TYPE) {
|
|
6
6
|
QUOTE_TYPE["RFQ_ASCENDANT"] = "RFQ_ASCENDANT";
|
|
@@ -25,14 +25,26 @@ var QUOTE_ITEM_INCLUDES;
|
|
|
25
25
|
QUOTE_ITEM_INCLUDES["item"] = "item";
|
|
26
26
|
QUOTE_ITEM_INCLUDES["parent_rfq_item"] = "parent_rfq_item";
|
|
27
27
|
})(QUOTE_ITEM_INCLUDES = exports.QUOTE_ITEM_INCLUDES || (exports.QUOTE_ITEM_INCLUDES = {}));
|
|
28
|
-
class QuoteItemFactory {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
// export class QuoteItemFactory implements IQuoteItems {
|
|
29
|
+
// constructor(partial: IQuoteItems) {
|
|
30
|
+
// Object.assign(this, partial);
|
|
31
|
+
// }
|
|
32
|
+
// id: string = "";
|
|
33
|
+
// quote_id: string = "";
|
|
34
|
+
// item_id: string = "";
|
|
35
|
+
// rfq_item_id: string = "";
|
|
36
|
+
// requested_quantity: number = 0;
|
|
37
|
+
// gst?: number | null;
|
|
38
|
+
// per_unit_rate?: number | null;
|
|
39
|
+
// provided_quantity?: number | null;
|
|
40
|
+
// discount_type?: string | null;
|
|
41
|
+
// discount_value?: number | null;
|
|
42
|
+
// remark?: string | null;
|
|
43
|
+
// is_deleted?: boolean | null;
|
|
44
|
+
// deleted_at?: string | null;
|
|
45
|
+
// created_at?: string | null;
|
|
46
|
+
// updated_at?: string | null;
|
|
47
|
+
// quote?: INestedQuote | null;
|
|
48
|
+
// item?: INestedItem | null;
|
|
49
|
+
// rfq_item?: INestedRFQItem | null;
|
|
50
|
+
// }
|