kcommons 5.0.2 → 5.0.4

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: string;
8
- tax_type: string;
9
- tax_value: string;
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 = {}));
@@ -30,7 +30,7 @@ export interface IQuote {
30
30
  vendor_id: string;
31
31
  company_id: string;
32
32
  quote_no: string;
33
- is_quoted: true;
33
+ is_quoted: boolean;
34
34
  delivery_schedule?: string | null;
35
35
  payment_terms?: string | null;
36
36
  remarks?: string | null;
@@ -48,7 +48,7 @@ export interface IQuote {
48
48
  }
49
49
  export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "company" | "quote_items" | "taxes"> {
50
50
  }
51
- 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"> {
52
52
  }
53
53
  export interface IQuoteItems {
54
54
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",