kcommons 5.0.11 → 5.0.13

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,3 +1,4 @@
1
+ /**Used For Indent, PR and MI */
1
2
  export interface IDocItem {
2
3
  id: string;
3
4
  item_id: string;
@@ -13,6 +14,7 @@ export interface IDocItem {
13
14
  created_at?: string | null;
14
15
  updated_at?: string | null;
15
16
  }
17
+ /**Used For Indent, PR and MI */
16
18
  export declare class DocItem implements IDocItem {
17
19
  constructor(partial: DocItem);
18
20
  id: string;
@@ -29,3 +31,19 @@ export declare class DocItem implements IDocItem {
29
31
  created_at?: string | null;
30
32
  updated_at?: string | null;
31
33
  }
34
+ export interface ITaxRelatedItemInputs {
35
+ id: string;
36
+ item_id: string;
37
+ provided_quantity?: number | null;
38
+ per_unit_rate?: number | null;
39
+ discount_value?: number | null;
40
+ discount_type?: string | null;
41
+ resultant_value?: number | null;
42
+ gst?: number | null;
43
+ requested_quantity?: number | null;
44
+ remark?: string | null;
45
+ is_deleted?: boolean | null;
46
+ deleted_at?: string | null;
47
+ created_at?: string | null;
48
+ updated_at?: string | null;
49
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DocItem = void 0;
4
+ /**Used For Indent, PR and MI */
4
5
  class DocItem {
5
6
  constructor(partial) {
6
7
  this.id = "";
@@ -1,4 +1,5 @@
1
1
  import { INestedCompany } from "./company.typings";
2
+ import { ITaxRelatedItemInputs } from "./docItems.typings";
2
3
  import { INestedDocumentTaxes } from "./documentTaxes.typings";
3
4
  import { INestedItem } from "./item.typings";
4
5
  import { INestedRFQ, INestedRFQItem } from "./rfq.typings";
@@ -50,22 +51,9 @@ export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "co
50
51
  }
51
52
  export interface IQuoteInputs extends Omit<IQuote, "id" | "quoted_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at" | "parent_rfq" | "vendor" | "company" | "quote_items" | "taxes"> {
52
53
  }
53
- export interface IQuoteItems {
54
- id: string;
54
+ export interface IQuoteItems extends ITaxRelatedItemInputs {
55
55
  quote_id: string;
56
- item_id: string;
57
56
  rfq_item_id?: string | null;
58
- requested_quantity?: number | null;
59
- gst?: number | null;
60
- per_unit_rate?: number | null;
61
- quoted_quantity?: number | null;
62
- discount_type?: string | null;
63
- discount_value?: number | null;
64
- remark?: string | null;
65
- is_deleted?: boolean | null;
66
- deleted_at?: string | null;
67
- created_at?: string | null;
68
- updated_at?: string | null;
69
57
  quote?: INestedQuote | null;
70
58
  item?: INestedItem | null;
71
59
  rfq_item?: INestedRFQItem | null;
@@ -83,7 +71,7 @@ export declare class QuoteItemFactory implements IQuoteItems {
83
71
  requested_quantity: number;
84
72
  gst?: number | null;
85
73
  per_unit_rate?: number | null;
86
- quoted_quantity?: number | null;
74
+ provided_quantity?: number | null;
87
75
  discount_type?: string | null;
88
76
  discount_value?: number | null;
89
77
  remark?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.0.11",
3
+ "version": "5.0.13",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",