kcommons 18.11.4 → 18.11.5
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,4 +1,5 @@
|
|
|
1
1
|
import { IQuoteItems } from "./quote.typings";
|
|
2
|
+
import { INestedSupplierInvoiceItem } from "./supplierInvoice.typings";
|
|
2
3
|
import { IVendorQuoteItems } from "./vendorQuoteItems.typings";
|
|
3
4
|
export interface ICustomUOM {
|
|
4
5
|
id: string;
|
|
@@ -9,16 +10,19 @@ export interface ICustomUOM {
|
|
|
9
10
|
parent_vendor_quote_item_id: string | null;
|
|
10
11
|
last_updated_by_vendor_user_id?: string | null;
|
|
11
12
|
last_updated_by_user_id?: string | null;
|
|
13
|
+
parent_supplier_invoice_item_id?: string | null;
|
|
12
14
|
created_at: Date;
|
|
13
15
|
updated_at: Date;
|
|
14
16
|
vendor_quote_item?: IVendorQuoteItems | null;
|
|
15
17
|
quote_item?: IQuoteItems | null;
|
|
18
|
+
supplier_invoice_item?: INestedSupplierInvoiceItem | null;
|
|
16
19
|
}
|
|
17
|
-
export interface INestedCustomUOM extends Omit<ICustomUOM, "vendor_quote_item" | "quote_item"> {
|
|
20
|
+
export interface INestedCustomUOM extends Omit<ICustomUOM, "vendor_quote_item" | "quote_item" | "supplier_invoice_item"> {
|
|
18
21
|
}
|
|
19
22
|
export declare enum CUSTOM_UOM_INCLUDE {
|
|
20
23
|
vendor_quote_item = "vendor_quote_item",
|
|
21
|
-
quote_item = "quote_item"
|
|
24
|
+
quote_item = "quote_item",
|
|
25
|
+
supplier_invoice_item = "supplier_invoice_item"
|
|
22
26
|
}
|
|
23
27
|
export interface ICustomUOMInputs extends Omit<INestedCustomUOM, "id" | "last_updated_by_vendor_user_id" | "last_updated_by_user_id" | "created_at" | "updated_at"> {
|
|
24
28
|
}
|
|
@@ -5,4 +5,5 @@ var CUSTOM_UOM_INCLUDE;
|
|
|
5
5
|
(function (CUSTOM_UOM_INCLUDE) {
|
|
6
6
|
CUSTOM_UOM_INCLUDE["vendor_quote_item"] = "vendor_quote_item";
|
|
7
7
|
CUSTOM_UOM_INCLUDE["quote_item"] = "quote_item";
|
|
8
|
+
CUSTOM_UOM_INCLUDE["supplier_invoice_item"] = "supplier_invoice_item";
|
|
8
9
|
})(CUSTOM_UOM_INCLUDE || (exports.CUSTOM_UOM_INCLUDE = CUSTOM_UOM_INCLUDE = {}));
|
|
@@ -3,6 +3,7 @@ import { INestedCompany } from "./company.typings";
|
|
|
3
3
|
import { INestedInvoiceItemRecordItem, INestedInvoiceMatchingRecord } from "./company/masters/imr.typings";
|
|
4
4
|
import { INestedPo, INestedPOItem } from "./company/masters/po.typings";
|
|
5
5
|
import { INestedCompanyVendors } from "./companyVendors.typings";
|
|
6
|
+
import { INestedCustomUOM } from "./customUOM.typings";
|
|
6
7
|
import { INestedGRN } from "./grn.typings";
|
|
7
8
|
import { INestedMRN } from "./mrn.typings";
|
|
8
9
|
import { INestedUser } from "./user.typings";
|
|
@@ -106,7 +107,8 @@ export declare enum SUPPLIER_INVOICE_INCLUDE {
|
|
|
106
107
|
}
|
|
107
108
|
export declare enum SUPPLIER_INVOICE_ITEM_INCLUDE {
|
|
108
109
|
invoice = "invoice",
|
|
109
|
-
parent_po_item = "parent_po_item"
|
|
110
|
+
parent_po_item = "parent_po_item",
|
|
111
|
+
custom_uom = "custom_uom"
|
|
110
112
|
}
|
|
111
113
|
export interface ISupplierInvoiceItem {
|
|
112
114
|
id: string;
|
|
@@ -122,14 +124,16 @@ export interface ISupplierInvoiceItem {
|
|
|
122
124
|
discount_type: string | null;
|
|
123
125
|
discount_value: number | null;
|
|
124
126
|
gst_rate: number | null;
|
|
127
|
+
custom_uom_id?: string | null;
|
|
125
128
|
gst_amount: number;
|
|
126
129
|
created_at: string;
|
|
127
130
|
updated_at: string;
|
|
128
131
|
invoice: INestedSupplierInvoice | null;
|
|
129
132
|
parent_po_item: INestedPOItem | null;
|
|
130
133
|
associated_imr_item: INestedInvoiceItemRecordItem | null;
|
|
134
|
+
custom_uom: INestedCustomUOM | null;
|
|
131
135
|
}
|
|
132
|
-
export interface INestedSupplierInvoiceItem extends Omit<ISupplierInvoiceItem, "invoice" | "parent_po_item" | "associated_imr_item"> {
|
|
136
|
+
export interface INestedSupplierInvoiceItem extends Omit<ISupplierInvoiceItem, "invoice" | "parent_po_item" | "associated_imr_item" | "custom_uom"> {
|
|
133
137
|
}
|
|
134
138
|
export declare enum SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS {
|
|
135
139
|
PO_MISMATCH = "PO_MISMATCH",
|
|
@@ -141,11 +145,15 @@ export interface ISupplierInvoiceMetafields {
|
|
|
141
145
|
parent_gi_created_by_user: INestedUser | null;
|
|
142
146
|
vendor_contact_info: IVerndorDataForSupplierInvoice | null;
|
|
143
147
|
associated_po_items: INestedPOItem[] | null;
|
|
148
|
+
custom_uoms: INestedCustomUOM[] | null;
|
|
149
|
+
custom_uom_calculations: ICustomUomCalculations | null;
|
|
144
150
|
}
|
|
145
151
|
export declare enum SUPPLIER_INVOICE_METFIELD_INCLUDE {
|
|
146
152
|
parent_gi_created_by_user = "parent_gi_created_by_user",
|
|
147
153
|
vendor_contact_info = "vendor_contact_info",
|
|
148
|
-
associated_po_items = "associated_po_items"
|
|
154
|
+
associated_po_items = "associated_po_items",
|
|
155
|
+
custom_uoms = "custom_uoms",
|
|
156
|
+
custom_uom_calculations = "custom_uom_calculations"
|
|
149
157
|
}
|
|
150
158
|
export interface IVerndorDataForSupplierInvoice {
|
|
151
159
|
vendor_trade_name: string | null;
|
|
@@ -157,4 +165,11 @@ export interface IVerndorDataForSupplierInvoice {
|
|
|
157
165
|
middlename: string | null;
|
|
158
166
|
lastname: string | null;
|
|
159
167
|
}
|
|
168
|
+
export interface ICustomUomCalculations {
|
|
169
|
+
supplier_invoice_item_id: string | null;
|
|
170
|
+
quantity: number | null;
|
|
171
|
+
per_unit_rate: number | null;
|
|
172
|
+
total: number | null;
|
|
173
|
+
uom: string | null;
|
|
174
|
+
}
|
|
160
175
|
export {};
|
|
@@ -29,6 +29,7 @@ var SUPPLIER_INVOICE_ITEM_INCLUDE;
|
|
|
29
29
|
(function (SUPPLIER_INVOICE_ITEM_INCLUDE) {
|
|
30
30
|
SUPPLIER_INVOICE_ITEM_INCLUDE["invoice"] = "invoice";
|
|
31
31
|
SUPPLIER_INVOICE_ITEM_INCLUDE["parent_po_item"] = "parent_po_item";
|
|
32
|
+
SUPPLIER_INVOICE_ITEM_INCLUDE["custom_uom"] = "custom_uom";
|
|
32
33
|
})(SUPPLIER_INVOICE_ITEM_INCLUDE || (exports.SUPPLIER_INVOICE_ITEM_INCLUDE = SUPPLIER_INVOICE_ITEM_INCLUDE = {}));
|
|
33
34
|
var SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS;
|
|
34
35
|
(function (SUPPLIER_INVOICE_MARKED_AS_INVALID_REASONS) {
|
|
@@ -43,4 +44,6 @@ var SUPPLIER_INVOICE_METFIELD_INCLUDE;
|
|
|
43
44
|
SUPPLIER_INVOICE_METFIELD_INCLUDE["parent_gi_created_by_user"] = "parent_gi_created_by_user";
|
|
44
45
|
SUPPLIER_INVOICE_METFIELD_INCLUDE["vendor_contact_info"] = "vendor_contact_info";
|
|
45
46
|
SUPPLIER_INVOICE_METFIELD_INCLUDE["associated_po_items"] = "associated_po_items";
|
|
47
|
+
SUPPLIER_INVOICE_METFIELD_INCLUDE["custom_uoms"] = "custom_uoms";
|
|
48
|
+
SUPPLIER_INVOICE_METFIELD_INCLUDE["custom_uom_calculations"] = "custom_uom_calculations";
|
|
46
49
|
})(SUPPLIER_INVOICE_METFIELD_INCLUDE || (exports.SUPPLIER_INVOICE_METFIELD_INCLUDE = SUPPLIER_INVOICE_METFIELD_INCLUDE = {}));
|