kcommons 17.5.3 → 18.0.1
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.
- package/build/classes/vendorQuoteItemToQuoteItem.adapter.d.ts +0 -0
- package/build/classes/vendorQuoteItemToQuoteItem.adapter.js +61 -0
- package/build/constants/uom.constants.d.ts +60 -0
- package/build/constants/uom.constants.js +355 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +8 -0
- package/build/typings/asn.typings.d.ts +1 -1
- package/build/typings/common/configurableForms/itemQuetionnaire.typings.d.ts +40 -0
- package/build/typings/common/configurableForms/itemQuetionnaire.typings.js +10 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireAnswers.typings.d.ts +30 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireAnswers.typings.js +9 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireQuestions.typings.d.ts +47 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireQuestions.typings.js +12 -0
- package/build/typings/company/masters/po.typings.d.ts +31 -8
- package/build/typings/company/masters/po.typings.js +8 -7
- package/build/typings/company/masters/poAssociationWithVendorQuoteItem.typings.d.ts +19 -0
- package/build/typings/company/masters/poAssociationWithVendorQuoteItem.typings.js +9 -0
- package/build/typings/company.typings.d.ts +10 -1
- package/build/typings/company.typings.js +3 -0
- package/build/typings/comparative.typings.d.ts +9 -3
- package/build/typings/comparative.typings.js +4 -1
- package/build/typings/comparativeEarlyAccessRequests.typings.d.ts +18 -0
- package/build/typings/comparativeEarlyAccessRequests.typings.js +8 -0
- package/build/typings/comparativeItemQUantitySplit.typings.d.ts +26 -0
- package/build/typings/comparativeItemQUantitySplit.typings.js +10 -0
- package/build/typings/customUOM.typings.d.ts +24 -0
- package/build/typings/customUOM.typings.js +8 -0
- package/build/typings/item.typings.d.ts +15 -6
- package/build/typings/item.typings.js +6 -49
- package/build/typings/quote.typings.d.ts +54 -6
- package/build/typings/quote.typings.js +17 -2
- package/build/typings/rfq.typings.d.ts +7 -2
- package/build/typings/rfq.typings.js +1 -0
- package/build/typings/settings/form/extraFormQues.typings.d.ts +1 -1
- package/build/typings/settings/form/extraFormQues.typings.js +12 -12
- package/build/typings/user.typings.d.ts +18 -2
- package/build/typings/user.typings.js +6 -0
- package/build/typings/vendor/vendorUser.typings.d.ts +32 -27
- package/build/typings/vendor/vendorUser.typings.js +28 -26
- package/build/typings/vendor.typings.d.ts +29 -26
- package/build/typings/vendor.typings.js +26 -27
- package/build/typings/vendorItem.typings.d.ts +13 -7
- package/build/typings/vendorItem.typings.js +8 -6
- package/build/typings/vendorQuoteItems.typings.d.ts +67 -0
- package/build/typings/vendorQuoteItems.typings.js +31 -0
- package/build/utils/extra-form/formatValidationSchema.util.js +12 -12
- package/build/utils/extra-form/getDefaultVAlues.util.js +12 -12
- package/build/utils/extra-form/parseExtraFormAnswers.util.js +12 -12
- package/build/utils/quote.util.d.ts +2 -2
- package/build/utils/quote.util.spec.js +9 -0
- package/build/utils/toFixedDecimal.util.js +5 -2
- package/package.json +1 -1
|
File without changes
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import {
|
|
3
|
+
// INestedQuoteItems,
|
|
4
|
+
// QUOTE_METHODS_FOR_ITEMS,
|
|
5
|
+
// QUOTING_METHOD_FOR_ITEMS,
|
|
6
|
+
// } from "../typings/quote.typings";
|
|
7
|
+
// import { IVendorItem } from "../typings/vendorItem.typings";
|
|
8
|
+
// import { IVendorQuoteItems } from "../typings/vendorQuoteItems.typings";
|
|
9
|
+
// export class VendorQuoteItemToQuoteItemAdapter implements INestedQuoteItems {
|
|
10
|
+
// constructor(
|
|
11
|
+
// quote_id: string,
|
|
12
|
+
// referenceQuoteItem: INestedQuoteItems,
|
|
13
|
+
// vendorQuoteItem: IVendorQuoteItems,
|
|
14
|
+
// ) {
|
|
15
|
+
// this.quote_id = quote_id;
|
|
16
|
+
// this.method_used_for_quoting = QUOTE_METHODS_FOR_ITEMS.ALTERNATE;
|
|
17
|
+
// this.initial_discount_value = null;
|
|
18
|
+
// this.initial_discount_type = null;
|
|
19
|
+
// this.initial_per_unit_rate = null;
|
|
20
|
+
// this.attachment_link = null;
|
|
21
|
+
// this.code_sku = referenceQuoteItem.code_sku;
|
|
22
|
+
// this.company_attachment_link = null;
|
|
23
|
+
// this.comparative_item_id = null;
|
|
24
|
+
// this.discount_type = vendorQuoteItem.discount_type;
|
|
25
|
+
// this.discount_value = vendorQuoteItem.discount_value;
|
|
26
|
+
// this.gst = vendorQuoteItem.gst;
|
|
27
|
+
// this.item_id = referenceQuoteItem.item_id;
|
|
28
|
+
// this.item_description = referenceQuoteItem.item_description;
|
|
29
|
+
// this.item_name = referenceQuoteItem.item_name;
|
|
30
|
+
// this.per_unit_rate= referenceQuoteItem.per_unit_rate;
|
|
31
|
+
// this.provided_quantity = vendorQuoteItem.provided_quantity
|
|
32
|
+
// }
|
|
33
|
+
// quote_id: string;
|
|
34
|
+
// method_used_for_quoting: QUOTE_METHODS_FOR_ITEMS;
|
|
35
|
+
// initial_per_unit_rate: number | null | undefined;
|
|
36
|
+
// initial_discount_value: number | null | undefined;
|
|
37
|
+
// initial_discount_type: string | null | undefined;
|
|
38
|
+
// company_attachment_link: string | null;
|
|
39
|
+
// rfq_item_id?: string | null | undefined;
|
|
40
|
+
// comparative_item_id?: string | null | undefined;
|
|
41
|
+
// id: string;
|
|
42
|
+
// item_id: string;
|
|
43
|
+
// item_name: string;
|
|
44
|
+
// code_sku: string;
|
|
45
|
+
// item_description?: string | null | undefined;
|
|
46
|
+
// uom: string;
|
|
47
|
+
// tolerence: number | null;
|
|
48
|
+
// provided_quantity?: number | null | undefined;
|
|
49
|
+
// per_unit_rate?: number | null | undefined;
|
|
50
|
+
// discount_value?: number | null | undefined;
|
|
51
|
+
// discount_type?: string | null | undefined;
|
|
52
|
+
// gst?: number | null | undefined;
|
|
53
|
+
// requested_quantity?: number | null | undefined;
|
|
54
|
+
// attachment_link?: string | null | undefined;
|
|
55
|
+
// remark?: string | null | undefined;
|
|
56
|
+
// total?: number | null | undefined;
|
|
57
|
+
// is_deleted?: boolean | null | undefined;
|
|
58
|
+
// deleted_at?: string | null | undefined;
|
|
59
|
+
// created_at?: string | null | undefined;
|
|
60
|
+
// updated_at?: string | null | undefined;
|
|
61
|
+
// }
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare enum UOM_ABBREVIATIONS {
|
|
2
|
+
BAG = "BAG",
|
|
3
|
+
BAL = "BAL",
|
|
4
|
+
BOU = "BOU",
|
|
5
|
+
BTL = "BTL",
|
|
6
|
+
BOX = "BOX",
|
|
7
|
+
BKL = "BKL",
|
|
8
|
+
BUN = "BUN",
|
|
9
|
+
BDL = "BDL",
|
|
10
|
+
CAN = "CAN",
|
|
11
|
+
CTN = "CTN",
|
|
12
|
+
CMS = "CMS",
|
|
13
|
+
CCM = "CCM",
|
|
14
|
+
CBM = "CBM",
|
|
15
|
+
DRM = "DRM",
|
|
16
|
+
GMS = "GMS",
|
|
17
|
+
GGK = "GGK",
|
|
18
|
+
GRS = "GRS",
|
|
19
|
+
KGS = "KGS",
|
|
20
|
+
KLR = "KLR",
|
|
21
|
+
KME = "KME",
|
|
22
|
+
LTR = "LTR",
|
|
23
|
+
MTR = "MTR",
|
|
24
|
+
MTS = "MTS",
|
|
25
|
+
MLT = "MLT",
|
|
26
|
+
NOS = "NOS",
|
|
27
|
+
OTH = "OTH",
|
|
28
|
+
PAC = "PAC",
|
|
29
|
+
PRS = "PRS",
|
|
30
|
+
PCS = "PCS",
|
|
31
|
+
QTL = "QTL",
|
|
32
|
+
ROL = "ROL",
|
|
33
|
+
SET = "SET",
|
|
34
|
+
SQF = "SQF",
|
|
35
|
+
SQM = "SQM",
|
|
36
|
+
SQY = "SQY",
|
|
37
|
+
TBS = "TBS",
|
|
38
|
+
TGM = "TGM",
|
|
39
|
+
THD = "THD",
|
|
40
|
+
TON = "TON",
|
|
41
|
+
TUB = "TUB",
|
|
42
|
+
UNT = "UNT",
|
|
43
|
+
UGS = "UGS",
|
|
44
|
+
YDS = "YDS",
|
|
45
|
+
PAA = "PAA",
|
|
46
|
+
EA = "EA",
|
|
47
|
+
DZ = "DZ"
|
|
48
|
+
}
|
|
49
|
+
export declare const UOMS: {
|
|
50
|
+
full_form: string;
|
|
51
|
+
short_form: UOM_ABBREVIATIONS;
|
|
52
|
+
}[];
|
|
53
|
+
export interface IUOM_CONVERSION_UNIT {
|
|
54
|
+
from_uom: UOM_ABBREVIATIONS;
|
|
55
|
+
to_uom: UOM_ABBREVIATIONS;
|
|
56
|
+
conversion_factor: number;
|
|
57
|
+
meaning: string;
|
|
58
|
+
}
|
|
59
|
+
export declare const UOM_CONVERSIONS_LIST: IUOM_CONVERSION_UNIT[];
|
|
60
|
+
export declare function isSupportedUOM(targetUOMAbbreviation: string): targetUOMAbbreviation is UOM_ABBREVIATIONS;
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UOM_CONVERSIONS_LIST = exports.UOMS = exports.UOM_ABBREVIATIONS = void 0;
|
|
4
|
+
exports.isSupportedUOM = isSupportedUOM;
|
|
5
|
+
var UOM_ABBREVIATIONS;
|
|
6
|
+
(function (UOM_ABBREVIATIONS) {
|
|
7
|
+
UOM_ABBREVIATIONS["BAG"] = "BAG";
|
|
8
|
+
UOM_ABBREVIATIONS["BAL"] = "BAL";
|
|
9
|
+
UOM_ABBREVIATIONS["BOU"] = "BOU";
|
|
10
|
+
UOM_ABBREVIATIONS["BTL"] = "BTL";
|
|
11
|
+
UOM_ABBREVIATIONS["BOX"] = "BOX";
|
|
12
|
+
UOM_ABBREVIATIONS["BKL"] = "BKL";
|
|
13
|
+
UOM_ABBREVIATIONS["BUN"] = "BUN";
|
|
14
|
+
UOM_ABBREVIATIONS["BDL"] = "BDL";
|
|
15
|
+
UOM_ABBREVIATIONS["CAN"] = "CAN";
|
|
16
|
+
UOM_ABBREVIATIONS["CTN"] = "CTN";
|
|
17
|
+
UOM_ABBREVIATIONS["CMS"] = "CMS";
|
|
18
|
+
UOM_ABBREVIATIONS["CCM"] = "CCM";
|
|
19
|
+
UOM_ABBREVIATIONS["CBM"] = "CBM";
|
|
20
|
+
UOM_ABBREVIATIONS["DRM"] = "DRM";
|
|
21
|
+
UOM_ABBREVIATIONS["GMS"] = "GMS";
|
|
22
|
+
UOM_ABBREVIATIONS["GGK"] = "GGK";
|
|
23
|
+
UOM_ABBREVIATIONS["GRS"] = "GRS";
|
|
24
|
+
UOM_ABBREVIATIONS["KGS"] = "KGS";
|
|
25
|
+
UOM_ABBREVIATIONS["KLR"] = "KLR";
|
|
26
|
+
UOM_ABBREVIATIONS["KME"] = "KME";
|
|
27
|
+
UOM_ABBREVIATIONS["LTR"] = "LTR";
|
|
28
|
+
UOM_ABBREVIATIONS["MTR"] = "MTR";
|
|
29
|
+
UOM_ABBREVIATIONS["MTS"] = "MTS";
|
|
30
|
+
UOM_ABBREVIATIONS["MLT"] = "MLT";
|
|
31
|
+
UOM_ABBREVIATIONS["NOS"] = "NOS";
|
|
32
|
+
UOM_ABBREVIATIONS["OTH"] = "OTH";
|
|
33
|
+
UOM_ABBREVIATIONS["PAC"] = "PAC";
|
|
34
|
+
UOM_ABBREVIATIONS["PRS"] = "PRS";
|
|
35
|
+
UOM_ABBREVIATIONS["PCS"] = "PCS";
|
|
36
|
+
UOM_ABBREVIATIONS["QTL"] = "QTL";
|
|
37
|
+
UOM_ABBREVIATIONS["ROL"] = "ROL";
|
|
38
|
+
UOM_ABBREVIATIONS["SET"] = "SET";
|
|
39
|
+
UOM_ABBREVIATIONS["SQF"] = "SQF";
|
|
40
|
+
UOM_ABBREVIATIONS["SQM"] = "SQM";
|
|
41
|
+
UOM_ABBREVIATIONS["SQY"] = "SQY";
|
|
42
|
+
UOM_ABBREVIATIONS["TBS"] = "TBS";
|
|
43
|
+
UOM_ABBREVIATIONS["TGM"] = "TGM";
|
|
44
|
+
UOM_ABBREVIATIONS["THD"] = "THD";
|
|
45
|
+
UOM_ABBREVIATIONS["TON"] = "TON";
|
|
46
|
+
UOM_ABBREVIATIONS["TUB"] = "TUB";
|
|
47
|
+
UOM_ABBREVIATIONS["UNT"] = "UNT";
|
|
48
|
+
UOM_ABBREVIATIONS["UGS"] = "UGS";
|
|
49
|
+
UOM_ABBREVIATIONS["YDS"] = "YDS";
|
|
50
|
+
UOM_ABBREVIATIONS["PAA"] = "PAA";
|
|
51
|
+
UOM_ABBREVIATIONS["EA"] = "EA";
|
|
52
|
+
UOM_ABBREVIATIONS["DZ"] = "DZ";
|
|
53
|
+
})(UOM_ABBREVIATIONS || (exports.UOM_ABBREVIATIONS = UOM_ABBREVIATIONS = {}));
|
|
54
|
+
exports.UOMS = [
|
|
55
|
+
{ full_form: "BAGS", short_form: UOM_ABBREVIATIONS.BAG },
|
|
56
|
+
{ full_form: "BALE", short_form: UOM_ABBREVIATIONS.BAL },
|
|
57
|
+
{ full_form: "BILLION OF UNITS", short_form: UOM_ABBREVIATIONS.BOU },
|
|
58
|
+
{ full_form: "BOTTLES", short_form: UOM_ABBREVIATIONS.BTL },
|
|
59
|
+
{ full_form: "BOX", short_form: UOM_ABBREVIATIONS.BOX },
|
|
60
|
+
{ full_form: "BUCKLES", short_form: UOM_ABBREVIATIONS.BKL },
|
|
61
|
+
{ full_form: "BUNCHES", short_form: UOM_ABBREVIATIONS.BUN },
|
|
62
|
+
{ full_form: "BUNDLES", short_form: UOM_ABBREVIATIONS.BDL },
|
|
63
|
+
{ full_form: "CANS", short_form: UOM_ABBREVIATIONS.CAN },
|
|
64
|
+
{ full_form: "CARTONS", short_form: UOM_ABBREVIATIONS.CTN },
|
|
65
|
+
{ full_form: "CENTI METERS", short_form: UOM_ABBREVIATIONS.CMS },
|
|
66
|
+
{ full_form: "CUBIC CENTIMETERS", short_form: UOM_ABBREVIATIONS.CCM },
|
|
67
|
+
{ full_form: "CUBIC METERS", short_form: UOM_ABBREVIATIONS.CBM },
|
|
68
|
+
{ full_form: "DRUMS", short_form: UOM_ABBREVIATIONS.DRM },
|
|
69
|
+
{ full_form: "GRAMMES", short_form: UOM_ABBREVIATIONS.GMS },
|
|
70
|
+
{ full_form: "GREAT GROSS", short_form: UOM_ABBREVIATIONS.GGK },
|
|
71
|
+
{ full_form: "GROSS", short_form: UOM_ABBREVIATIONS.GRS },
|
|
72
|
+
{ full_form: "KILOGRAMS", short_form: UOM_ABBREVIATIONS.KGS },
|
|
73
|
+
{ full_form: "KILOLITRE", short_form: UOM_ABBREVIATIONS.KLR },
|
|
74
|
+
{ full_form: "KILOMETRE", short_form: UOM_ABBREVIATIONS.KME },
|
|
75
|
+
{ full_form: "LITRES", short_form: UOM_ABBREVIATIONS.LTR },
|
|
76
|
+
{ full_form: "METERS", short_form: UOM_ABBREVIATIONS.MTR },
|
|
77
|
+
{ full_form: "METRIC TON", short_form: UOM_ABBREVIATIONS.MTS },
|
|
78
|
+
{ full_form: "MILILITRE", short_form: UOM_ABBREVIATIONS.MLT },
|
|
79
|
+
{ full_form: "NUMBERS", short_form: UOM_ABBREVIATIONS.NOS },
|
|
80
|
+
{ full_form: "OTHERS", short_form: UOM_ABBREVIATIONS.OTH },
|
|
81
|
+
{ full_form: "PACKS", short_form: UOM_ABBREVIATIONS.PAC },
|
|
82
|
+
{ full_form: "PAIRS", short_form: UOM_ABBREVIATIONS.PRS },
|
|
83
|
+
{ full_form: "PIECES", short_form: UOM_ABBREVIATIONS.PCS },
|
|
84
|
+
{ full_form: "QUINTAL", short_form: UOM_ABBREVIATIONS.QTL },
|
|
85
|
+
{ full_form: "ROLLS", short_form: UOM_ABBREVIATIONS.ROL },
|
|
86
|
+
{ full_form: "SETS", short_form: UOM_ABBREVIATIONS.SET },
|
|
87
|
+
{ full_form: "SQUARE FEET", short_form: UOM_ABBREVIATIONS.SQF },
|
|
88
|
+
{ full_form: "SQUARE METERS", short_form: UOM_ABBREVIATIONS.SQM },
|
|
89
|
+
{ full_form: "SQUARE YARDS", short_form: UOM_ABBREVIATIONS.SQY },
|
|
90
|
+
{ full_form: "TABLETS", short_form: UOM_ABBREVIATIONS.TBS },
|
|
91
|
+
{ full_form: "TEN GROSS", short_form: UOM_ABBREVIATIONS.TGM },
|
|
92
|
+
{ full_form: "THOUSANDS", short_form: UOM_ABBREVIATIONS.THD },
|
|
93
|
+
{ full_form: "TONNES", short_form: UOM_ABBREVIATIONS.TON },
|
|
94
|
+
{ full_form: "TUBES", short_form: UOM_ABBREVIATIONS.TUB },
|
|
95
|
+
{ full_form: "UNITS", short_form: UOM_ABBREVIATIONS.UNT },
|
|
96
|
+
{ full_form: "US GALLONS", short_form: UOM_ABBREVIATIONS.UGS },
|
|
97
|
+
{ full_form: "YARDS", short_form: UOM_ABBREVIATIONS.YDS },
|
|
98
|
+
{ full_form: "PAIR", short_form: UOM_ABBREVIATIONS.PAA },
|
|
99
|
+
{ full_form: "EACH", short_form: UOM_ABBREVIATIONS.EA },
|
|
100
|
+
{ full_form: "DOZENS", short_form: UOM_ABBREVIATIONS.DZ },
|
|
101
|
+
];
|
|
102
|
+
exports.UOM_CONVERSIONS_LIST = [
|
|
103
|
+
// =========================
|
|
104
|
+
// WEIGHT
|
|
105
|
+
// =========================
|
|
106
|
+
{
|
|
107
|
+
from_uom: UOM_ABBREVIATIONS.KGS,
|
|
108
|
+
to_uom: UOM_ABBREVIATIONS.GMS,
|
|
109
|
+
conversion_factor: 1000,
|
|
110
|
+
meaning: "1 KGS = 1000 GMS",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
from_uom: UOM_ABBREVIATIONS.GMS,
|
|
114
|
+
to_uom: UOM_ABBREVIATIONS.KGS,
|
|
115
|
+
conversion_factor: 0.001,
|
|
116
|
+
meaning: "1 GMS = 0.001 KGS",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
from_uom: UOM_ABBREVIATIONS.MTS,
|
|
120
|
+
to_uom: UOM_ABBREVIATIONS.KGS,
|
|
121
|
+
conversion_factor: 1000,
|
|
122
|
+
meaning: "1 MTS = 1000 KGS",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
from_uom: UOM_ABBREVIATIONS.KGS,
|
|
126
|
+
to_uom: UOM_ABBREVIATIONS.MTS,
|
|
127
|
+
conversion_factor: 0.001,
|
|
128
|
+
meaning: "1 KGS = 0.001 MTS",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
from_uom: UOM_ABBREVIATIONS.TON,
|
|
132
|
+
to_uom: UOM_ABBREVIATIONS.KGS,
|
|
133
|
+
conversion_factor: 1000,
|
|
134
|
+
meaning: "1 TON = 1000 KGS",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
from_uom: UOM_ABBREVIATIONS.KGS,
|
|
138
|
+
to_uom: UOM_ABBREVIATIONS.TON,
|
|
139
|
+
conversion_factor: 0.001,
|
|
140
|
+
meaning: "1 KGS = 0.001 TON",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
from_uom: UOM_ABBREVIATIONS.QTL,
|
|
144
|
+
to_uom: UOM_ABBREVIATIONS.KGS,
|
|
145
|
+
conversion_factor: 100,
|
|
146
|
+
meaning: "1 QTL = 100 KGS",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
from_uom: UOM_ABBREVIATIONS.KGS,
|
|
150
|
+
to_uom: UOM_ABBREVIATIONS.QTL,
|
|
151
|
+
conversion_factor: 0.01,
|
|
152
|
+
meaning: "1 KGS = 0.01 QTL",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
from_uom: UOM_ABBREVIATIONS.TON,
|
|
156
|
+
to_uom: UOM_ABBREVIATIONS.QTL,
|
|
157
|
+
conversion_factor: 10,
|
|
158
|
+
meaning: "1 TON = 10 QTL",
|
|
159
|
+
},
|
|
160
|
+
// =========================
|
|
161
|
+
// VOLUME
|
|
162
|
+
// =========================
|
|
163
|
+
{
|
|
164
|
+
from_uom: UOM_ABBREVIATIONS.LTR,
|
|
165
|
+
to_uom: UOM_ABBREVIATIONS.MLT,
|
|
166
|
+
conversion_factor: 1000,
|
|
167
|
+
meaning: "1 LTR = 1000 MLT",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
from_uom: UOM_ABBREVIATIONS.MLT,
|
|
171
|
+
to_uom: UOM_ABBREVIATIONS.LTR,
|
|
172
|
+
conversion_factor: 0.001,
|
|
173
|
+
meaning: "1 MLT = 0.001 LTR",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
from_uom: UOM_ABBREVIATIONS.KLR,
|
|
177
|
+
to_uom: UOM_ABBREVIATIONS.LTR,
|
|
178
|
+
conversion_factor: 1000,
|
|
179
|
+
meaning: "1 KLR = 1000 LTR",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
from_uom: UOM_ABBREVIATIONS.LTR,
|
|
183
|
+
to_uom: UOM_ABBREVIATIONS.KLR,
|
|
184
|
+
conversion_factor: 0.001,
|
|
185
|
+
meaning: "1 LTR = 0.001 KLR",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
from_uom: UOM_ABBREVIATIONS.UGS,
|
|
189
|
+
to_uom: UOM_ABBREVIATIONS.LTR,
|
|
190
|
+
conversion_factor: 3.78541,
|
|
191
|
+
meaning: "1 UGS = 3.78541 LTR",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
from_uom: UOM_ABBREVIATIONS.LTR,
|
|
195
|
+
to_uom: UOM_ABBREVIATIONS.UGS,
|
|
196
|
+
conversion_factor: 0.264172,
|
|
197
|
+
meaning: "1 LTR = 0.264172 UGS",
|
|
198
|
+
},
|
|
199
|
+
// =========================
|
|
200
|
+
// LENGTH
|
|
201
|
+
// =========================
|
|
202
|
+
{
|
|
203
|
+
from_uom: UOM_ABBREVIATIONS.MTR,
|
|
204
|
+
to_uom: UOM_ABBREVIATIONS.CMS,
|
|
205
|
+
conversion_factor: 100,
|
|
206
|
+
meaning: "1 MTR = 100 CMS",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
from_uom: UOM_ABBREVIATIONS.CMS,
|
|
210
|
+
to_uom: UOM_ABBREVIATIONS.MTR,
|
|
211
|
+
conversion_factor: 0.01,
|
|
212
|
+
meaning: "1 CMS = 0.01 MTR",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
from_uom: UOM_ABBREVIATIONS.KME,
|
|
216
|
+
to_uom: UOM_ABBREVIATIONS.MTR,
|
|
217
|
+
conversion_factor: 1000,
|
|
218
|
+
meaning: "1 KME = 1000 MTR",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
from_uom: UOM_ABBREVIATIONS.MTR,
|
|
222
|
+
to_uom: UOM_ABBREVIATIONS.KME,
|
|
223
|
+
conversion_factor: 0.001,
|
|
224
|
+
meaning: "1 MTR = 0.001 KME",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
from_uom: UOM_ABBREVIATIONS.YDS,
|
|
228
|
+
to_uom: UOM_ABBREVIATIONS.MTR,
|
|
229
|
+
conversion_factor: 0.9144,
|
|
230
|
+
meaning: "1 YDS = 0.9144 MTR",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
from_uom: UOM_ABBREVIATIONS.MTR,
|
|
234
|
+
to_uom: UOM_ABBREVIATIONS.YDS,
|
|
235
|
+
conversion_factor: 1.09361,
|
|
236
|
+
meaning: "1 MTR = 1.09361 YDS",
|
|
237
|
+
},
|
|
238
|
+
// =========================
|
|
239
|
+
// AREA
|
|
240
|
+
// =========================
|
|
241
|
+
{
|
|
242
|
+
from_uom: UOM_ABBREVIATIONS.SQM,
|
|
243
|
+
to_uom: UOM_ABBREVIATIONS.SQF,
|
|
244
|
+
conversion_factor: 10.7639,
|
|
245
|
+
meaning: "1 SQM = 10.7639 SQF",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
from_uom: UOM_ABBREVIATIONS.SQF,
|
|
249
|
+
to_uom: UOM_ABBREVIATIONS.SQM,
|
|
250
|
+
conversion_factor: 0.092903,
|
|
251
|
+
meaning: "1 SQF = 0.092903 SQM",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
from_uom: UOM_ABBREVIATIONS.SQY,
|
|
255
|
+
to_uom: UOM_ABBREVIATIONS.SQF,
|
|
256
|
+
conversion_factor: 9,
|
|
257
|
+
meaning: "1 SQY = 9 SQF",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
from_uom: UOM_ABBREVIATIONS.SQF,
|
|
261
|
+
to_uom: UOM_ABBREVIATIONS.SQY,
|
|
262
|
+
conversion_factor: 0.111111,
|
|
263
|
+
meaning: "1 SQF = 0.111111 SQY",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
from_uom: UOM_ABBREVIATIONS.SQM,
|
|
267
|
+
to_uom: UOM_ABBREVIATIONS.SQY,
|
|
268
|
+
conversion_factor: 1.19599,
|
|
269
|
+
meaning: "1 SQM = 1.19599 SQY",
|
|
270
|
+
},
|
|
271
|
+
// =========================
|
|
272
|
+
// VOLUME (CUBIC)
|
|
273
|
+
// =========================
|
|
274
|
+
{
|
|
275
|
+
from_uom: UOM_ABBREVIATIONS.CBM,
|
|
276
|
+
to_uom: UOM_ABBREVIATIONS.CCM,
|
|
277
|
+
conversion_factor: 1000000,
|
|
278
|
+
meaning: "1 CBM = 1000000 CCM",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
from_uom: UOM_ABBREVIATIONS.CCM,
|
|
282
|
+
to_uom: UOM_ABBREVIATIONS.CBM,
|
|
283
|
+
conversion_factor: 0.000001,
|
|
284
|
+
meaning: "1 CCM = 0.000001 CBM",
|
|
285
|
+
},
|
|
286
|
+
// =========================
|
|
287
|
+
// COUNT / PACKAGING
|
|
288
|
+
// =========================
|
|
289
|
+
{
|
|
290
|
+
from_uom: UOM_ABBREVIATIONS.DZ,
|
|
291
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
292
|
+
conversion_factor: 12,
|
|
293
|
+
meaning: "1 DZ = 12 PCS",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
from_uom: UOM_ABBREVIATIONS.PCS,
|
|
297
|
+
to_uom: UOM_ABBREVIATIONS.DZ,
|
|
298
|
+
conversion_factor: 1 / 12,
|
|
299
|
+
meaning: "1 PCS = 0.083333 DZ",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
from_uom: UOM_ABBREVIATIONS.GRS,
|
|
303
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
304
|
+
conversion_factor: 144,
|
|
305
|
+
meaning: "1 GRS = 144 PCS",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
from_uom: UOM_ABBREVIATIONS.TGM,
|
|
309
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
310
|
+
conversion_factor: 1440,
|
|
311
|
+
meaning: "1 TGM = 1440 PCS",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
from_uom: UOM_ABBREVIATIONS.GGK,
|
|
315
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
316
|
+
conversion_factor: 1728,
|
|
317
|
+
meaning: "1 GGK = 1728 PCS",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
from_uom: UOM_ABBREVIATIONS.THD,
|
|
321
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
322
|
+
conversion_factor: 1000,
|
|
323
|
+
meaning: "1 THD = 1000 PCS",
|
|
324
|
+
},
|
|
325
|
+
// =========================
|
|
326
|
+
// EQUIVALENT GENERIC COUNT
|
|
327
|
+
// =========================
|
|
328
|
+
{
|
|
329
|
+
from_uom: UOM_ABBREVIATIONS.PCS,
|
|
330
|
+
to_uom: UOM_ABBREVIATIONS.NOS,
|
|
331
|
+
conversion_factor: 1,
|
|
332
|
+
meaning: "1 PCS = 1 NOS",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
from_uom: UOM_ABBREVIATIONS.NOS,
|
|
336
|
+
to_uom: UOM_ABBREVIATIONS.UNT,
|
|
337
|
+
conversion_factor: 1,
|
|
338
|
+
meaning: "1 NOS = 1 UNT",
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
from_uom: UOM_ABBREVIATIONS.EA,
|
|
342
|
+
to_uom: UOM_ABBREVIATIONS.PCS,
|
|
343
|
+
conversion_factor: 1,
|
|
344
|
+
meaning: "1 EA = 1 PCS",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
from_uom: UOM_ABBREVIATIONS.PRS,
|
|
348
|
+
to_uom: UOM_ABBREVIATIONS.PAA,
|
|
349
|
+
conversion_factor: 1,
|
|
350
|
+
meaning: "1 PRS = 1 PAA",
|
|
351
|
+
},
|
|
352
|
+
];
|
|
353
|
+
function isSupportedUOM(targetUOMAbbreviation) {
|
|
354
|
+
return Object.values(UOM_ABBREVIATIONS).includes(targetUOMAbbreviation);
|
|
355
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -25,8 +25,10 @@ export * from "./typings/item.typings";
|
|
|
25
25
|
export * from "./typings/documentTaxes.typings";
|
|
26
26
|
export * from "./typings/docItems.typings";
|
|
27
27
|
export * from "./typings/company/masters/po.typings";
|
|
28
|
+
export * from "./typings/company/masters/poAssociationWithVendorQuoteItem.typings";
|
|
28
29
|
export * from "./typings/company/masters/amendedPOItems.typings";
|
|
29
30
|
export * from "./typings/comparative.typings";
|
|
31
|
+
export * from "./typings/comparativeEarlyAccessRequests.typings";
|
|
30
32
|
export * from "./typings/gate.typings";
|
|
31
33
|
export * from "./typings/grn.typings";
|
|
32
34
|
export * from "./typings/mrn.typings";
|
|
@@ -76,6 +78,8 @@ export * from "./typings/subPOItem.typings";
|
|
|
76
78
|
export * from "./typings/company/masters/customerManagementBody.typings";
|
|
77
79
|
export * from "./typings/companyCustomer.typings";
|
|
78
80
|
export * from "./typings/customer.typings";
|
|
81
|
+
export * from "./typings/vendorQuoteItems.typings";
|
|
82
|
+
export * from "./typings/customUOM.typings";
|
|
79
83
|
export * from "./typings/system/queueJob.typings";
|
|
80
84
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
81
85
|
export * from "./typings/common/address.typings";
|
|
@@ -85,6 +89,9 @@ export * from "./typings/common/retrieveMedia.typings";
|
|
|
85
89
|
export * from "./typings/common/lifecycleLogger.typings";
|
|
86
90
|
export * from "./typings/common/openUOM.typings";
|
|
87
91
|
export * from "./typings/common/ocr.typings";
|
|
92
|
+
export * from "./typings/common/configurableForms/itemQuetionnaire.typings";
|
|
93
|
+
export * from "./typings/common/configurableForms/rfqQuestionnaireQuestions.typings";
|
|
94
|
+
export * from "./typings/common/configurableForms/rfqQuestionnaireAnswers.typings";
|
|
88
95
|
export * from "./constants/permission.constants";
|
|
89
96
|
export * from "./constants/entityTypes.constants";
|
|
90
97
|
export * from "./constants/statuses.constants";
|
|
@@ -101,6 +108,7 @@ export * from "./constants/zod.constant";
|
|
|
101
108
|
export * from "./constants/date.constants";
|
|
102
109
|
export * from "./constants/companyDocumentUplodPath.constants";
|
|
103
110
|
export * from "./constants/vendorPermission.constants";
|
|
111
|
+
export * from "./constants/uom.constants";
|
|
104
112
|
export * from "./classes/asnWrapper.class";
|
|
105
113
|
export * from "./enums/upload.enum";
|
|
106
114
|
export * from "./enums/priority.enum";
|
package/build/index.js
CHANGED
|
@@ -45,8 +45,10 @@ __exportStar(require("./typings/item.typings"), exports);
|
|
|
45
45
|
__exportStar(require("./typings/documentTaxes.typings"), exports);
|
|
46
46
|
__exportStar(require("./typings/docItems.typings"), exports);
|
|
47
47
|
__exportStar(require("./typings/company/masters/po.typings"), exports);
|
|
48
|
+
__exportStar(require("./typings/company/masters/poAssociationWithVendorQuoteItem.typings"), exports);
|
|
48
49
|
__exportStar(require("./typings/company/masters/amendedPOItems.typings"), exports);
|
|
49
50
|
__exportStar(require("./typings/comparative.typings"), exports);
|
|
51
|
+
__exportStar(require("./typings/comparativeEarlyAccessRequests.typings"), exports);
|
|
50
52
|
__exportStar(require("./typings/gate.typings"), exports);
|
|
51
53
|
__exportStar(require("./typings/grn.typings"), exports);
|
|
52
54
|
__exportStar(require("./typings/mrn.typings"), exports);
|
|
@@ -96,6 +98,8 @@ __exportStar(require("./typings/subPOItem.typings"), exports);
|
|
|
96
98
|
__exportStar(require("./typings/company/masters/customerManagementBody.typings"), exports);
|
|
97
99
|
__exportStar(require("./typings/companyCustomer.typings"), exports);
|
|
98
100
|
__exportStar(require("./typings/customer.typings"), exports);
|
|
101
|
+
__exportStar(require("./typings/vendorQuoteItems.typings"), exports);
|
|
102
|
+
__exportStar(require("./typings/customUOM.typings"), exports);
|
|
99
103
|
// System
|
|
100
104
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
101
105
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -107,6 +111,9 @@ __exportStar(require("./typings/common/retrieveMedia.typings"), exports);
|
|
|
107
111
|
__exportStar(require("./typings/common/lifecycleLogger.typings"), exports);
|
|
108
112
|
__exportStar(require("./typings/common/openUOM.typings"), exports);
|
|
109
113
|
__exportStar(require("./typings/common/ocr.typings"), exports);
|
|
114
|
+
__exportStar(require("./typings/common/configurableForms/itemQuetionnaire.typings"), exports);
|
|
115
|
+
__exportStar(require("./typings/common/configurableForms/rfqQuestionnaireQuestions.typings"), exports);
|
|
116
|
+
__exportStar(require("./typings/common/configurableForms/rfqQuestionnaireAnswers.typings"), exports);
|
|
110
117
|
// Constants
|
|
111
118
|
__exportStar(require("./constants/permission.constants"), exports);
|
|
112
119
|
__exportStar(require("./constants/entityTypes.constants"), exports);
|
|
@@ -124,6 +131,7 @@ __exportStar(require("./constants/zod.constant"), exports);
|
|
|
124
131
|
__exportStar(require("./constants/date.constants"), exports);
|
|
125
132
|
__exportStar(require("./constants/companyDocumentUplodPath.constants"), exports);
|
|
126
133
|
__exportStar(require("./constants/vendorPermission.constants"), exports);
|
|
134
|
+
__exportStar(require("./constants/uom.constants"), exports);
|
|
127
135
|
// Classes
|
|
128
136
|
__exportStar(require("./classes/asnWrapper.class"), exports);
|
|
129
137
|
// Enums
|
|
@@ -175,7 +175,7 @@ export interface IASN {
|
|
|
175
175
|
asns_sent_to_vendor_by_user: INestedUser | null;
|
|
176
176
|
child_ves: INestedVES[] | null;
|
|
177
177
|
send_by_user: INestedUser | null;
|
|
178
|
-
|
|
178
|
+
metafields: IASNMetafields | null;
|
|
179
179
|
}
|
|
180
180
|
export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
|
|
181
181
|
road_vehicle_type = "road_vehicle_type",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { INestedCompany } from "../../company.typings";
|
|
2
|
+
import { INestedItem } from "../../item.typings";
|
|
3
|
+
import { CONFIGURABLE_FORM_QUESTION_TYPES } from "../../settings/form/extraFormQues.typings";
|
|
4
|
+
import { INestedUser } from "../../user.typings";
|
|
5
|
+
export declare enum ITEM_QUESTIONNAIRE_INCLUDE {
|
|
6
|
+
parent_item = "parent_item",
|
|
7
|
+
company = "company",
|
|
8
|
+
created_by_user = "created_by_user",
|
|
9
|
+
last_updated_by_user = "last_updated_by_user"
|
|
10
|
+
}
|
|
11
|
+
export interface IItemQuestionnaire {
|
|
12
|
+
id: string;
|
|
13
|
+
item_id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
created_by_user_id: string;
|
|
16
|
+
last_updated_by_user_id: string;
|
|
17
|
+
question_code: string;
|
|
18
|
+
ques_text: string;
|
|
19
|
+
que_type: CONFIGURABLE_FORM_QUESTION_TYPES;
|
|
20
|
+
select_opts: string[];
|
|
21
|
+
min_rows: number | null;
|
|
22
|
+
mime_type: string | null;
|
|
23
|
+
required: boolean;
|
|
24
|
+
default_text_ans: string | null;
|
|
25
|
+
default_yes_no_ans: boolean | null;
|
|
26
|
+
default_date_ans: string | null;
|
|
27
|
+
default_selected_opts_ans: string[];
|
|
28
|
+
is_enabled: boolean;
|
|
29
|
+
is_deleted: boolean;
|
|
30
|
+
deleted_at: string | null;
|
|
31
|
+
created_at: string;
|
|
32
|
+
last_updated_at: string;
|
|
33
|
+
updated_at: string;
|
|
34
|
+
parent_item: INestedItem | null;
|
|
35
|
+
company: INestedCompany | null;
|
|
36
|
+
created_by_user: INestedUser | null;
|
|
37
|
+
last_updated_by_user: INestedUser | null;
|
|
38
|
+
}
|
|
39
|
+
export interface INestedItemQuestionnaire extends Omit<IItemQuestionnaire, "parent_item" | "company" | "created_by_user" | "last_updated_by_user"> {
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ITEM_QUESTIONNAIRE_INCLUDE = void 0;
|
|
4
|
+
var ITEM_QUESTIONNAIRE_INCLUDE;
|
|
5
|
+
(function (ITEM_QUESTIONNAIRE_INCLUDE) {
|
|
6
|
+
ITEM_QUESTIONNAIRE_INCLUDE["parent_item"] = "parent_item";
|
|
7
|
+
ITEM_QUESTIONNAIRE_INCLUDE["company"] = "company";
|
|
8
|
+
ITEM_QUESTIONNAIRE_INCLUDE["created_by_user"] = "created_by_user";
|
|
9
|
+
ITEM_QUESTIONNAIRE_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
10
|
+
})(ITEM_QUESTIONNAIRE_INCLUDE || (exports.ITEM_QUESTIONNAIRE_INCLUDE = ITEM_QUESTIONNAIRE_INCLUDE = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { INestedCompany } from "../../company.typings";
|
|
2
|
+
import { INestedQuote } from "../../quote.typings";
|
|
3
|
+
import { INestedRFQQuestionnaireQuestion } from "./rfqQuestionnaireQuestions.typings";
|
|
4
|
+
export declare enum RFQ_QUESTIONNAIRE_ANSWER_INCLUDE {
|
|
5
|
+
company = "company",
|
|
6
|
+
parent_question = "parent_question",
|
|
7
|
+
parent_quote = "parent_quote"
|
|
8
|
+
}
|
|
9
|
+
export interface IRFQQuestionnaireAnswer {
|
|
10
|
+
id: string;
|
|
11
|
+
company_id: string;
|
|
12
|
+
parent_question_id: string;
|
|
13
|
+
quote_id: string;
|
|
14
|
+
text_ans: string | null;
|
|
15
|
+
yes_no_ans: boolean | null;
|
|
16
|
+
upload_link: string | null;
|
|
17
|
+
date_ans: string | null;
|
|
18
|
+
selected_opts_ans: string[];
|
|
19
|
+
keywords_ans: string[];
|
|
20
|
+
metadata: string | null;
|
|
21
|
+
is_deleted: boolean;
|
|
22
|
+
deleted_at: string | null;
|
|
23
|
+
created_at: string;
|
|
24
|
+
updated_at: string;
|
|
25
|
+
company: INestedCompany | null;
|
|
26
|
+
parent_question: INestedRFQQuestionnaireQuestion | null;
|
|
27
|
+
parent_quote: INestedQuote | null;
|
|
28
|
+
}
|
|
29
|
+
export interface INestedRFQQuestionnaireAnswer extends Omit<IRFQQuestionnaireAnswer, "company" | "parent_question" | "parent_quote"> {
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RFQ_QUESTIONNAIRE_ANSWER_INCLUDE = void 0;
|
|
4
|
+
var RFQ_QUESTIONNAIRE_ANSWER_INCLUDE;
|
|
5
|
+
(function (RFQ_QUESTIONNAIRE_ANSWER_INCLUDE) {
|
|
6
|
+
RFQ_QUESTIONNAIRE_ANSWER_INCLUDE["company"] = "company";
|
|
7
|
+
RFQ_QUESTIONNAIRE_ANSWER_INCLUDE["parent_question"] = "parent_question";
|
|
8
|
+
RFQ_QUESTIONNAIRE_ANSWER_INCLUDE["parent_quote"] = "parent_quote";
|
|
9
|
+
})(RFQ_QUESTIONNAIRE_ANSWER_INCLUDE || (exports.RFQ_QUESTIONNAIRE_ANSWER_INCLUDE = RFQ_QUESTIONNAIRE_ANSWER_INCLUDE = {}));
|