@openbox/shared-types 0.2.84 → 0.2.86

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.
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Details/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import { Services } from '../../services/Services/services.types';
2
+ import { SystemSellingTypes } from '../../system/SellingTypes/system.selling-types.types';
3
+ import { Invoices } from '../Invoices';
4
+ export type InvoicesDetailes = {
5
+ id: string;
6
+ quantity: number;
7
+ unitPrice: number;
8
+ incIva: boolean;
9
+ incRenta5: boolean;
10
+ incRenta10: boolean;
11
+ ventaPrice: number;
12
+ totalIvaPrice: number;
13
+ ivaPrice: number;
14
+ price: number;
15
+ renta5Price: number;
16
+ renta10Price: number;
17
+ vNoSujeta: number;
18
+ vExenta: number;
19
+ vGravada: number;
20
+ chargeDescription: string;
21
+ NCDTotal: boolean;
22
+ invoice: Invoices;
23
+ service: Services;
24
+ sellingType: Pick<SystemSellingTypes, 'id' | 'name'>;
25
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoices.details.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.details.type.js","sourceRoot":"","sources":["../../../src/invoices/Details/invoices.details.type.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { InvoiceHeader } from '../CreateSingle/Request';
2
- export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeader, 'document' | 'authorization'> & {
1
+ import { InvoiceHeaderSection } from '../CreateSingle/Request';
2
+ export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeaderSection, 'document' | 'authorization'> & {
3
3
  sequenceFrom: number;
4
4
  sequenceTo: number;
5
5
  };
@@ -1,4 +1,4 @@
1
- export type InvoiceHeader = {
1
+ export type InvoiceHeaderSection = {
2
2
  customer: string;
3
3
  customerBranch: string;
4
4
  invoicesSeller: string;
@@ -8,7 +8,7 @@ export type InvoiceHeader = {
8
8
  document: string;
9
9
  authorization: string;
10
10
  };
11
- export type InvoiceTotals = {
11
+ export type InvoiceTotalsSection = {
12
12
  sum: number;
13
13
  iva: number;
14
14
  subtotal: number;
@@ -21,7 +21,7 @@ export type InvoiceTotals = {
21
21
  ventaTotal: number;
22
22
  ventaTotalText: string;
23
23
  };
24
- export type InvoiceDetails = {
24
+ export type InvoiceDetailsSection = {
25
25
  quantity: number;
26
26
  unitPrice: number;
27
27
  chargeDescription: string;
@@ -38,7 +38,7 @@ export type InvoiceDetails = {
38
38
  service: string;
39
39
  };
40
40
  export type InvoicesCreateSingleRequest = {
41
- header: InvoiceHeader;
42
- totals: InvoiceTotals;
43
- details: InvoiceDetails[];
41
+ header: InvoiceHeaderSection;
42
+ totals: InvoiceTotalsSection;
43
+ details: InvoiceDetailsSection[];
44
44
  };
@@ -2,6 +2,7 @@ import { CustomersBranches } from '../../customers/Branches/customers.branches.t
2
2
  import { Customers } from '../../customers/Customers/customers.types';
3
3
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types';
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
5
+ import { InvoicesDetailes } from '../Details/invoices.details.type';
5
6
  import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
6
7
  import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type';
7
8
  import { InvoicesSellers } from '../Sellers/invoices.sellers.type';
@@ -49,4 +50,5 @@ export type Invoices = {
49
50
  personType: Pick<SystemPersonTypes, 'id' | 'name'>;
50
51
  customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>;
51
52
  documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>;
53
+ invoiceDetails: InvoicesDetailes[];
52
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.84",
3
+ "version": "0.2.86",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
File without changes
@@ -0,0 +1,26 @@
1
+ import { Services } from '../../services/Services/services.types'
2
+ import { SystemSellingTypes } from '../../system/SellingTypes/system.selling-types.types'
3
+ import { Invoices } from '../Invoices'
4
+
5
+ export type InvoicesDetailes = {
6
+ id: string
7
+ quantity: number
8
+ unitPrice: number
9
+ incIva: boolean
10
+ incRenta5: boolean
11
+ incRenta10: boolean
12
+ ventaPrice: number
13
+ totalIvaPrice: number
14
+ ivaPrice: number
15
+ price: number
16
+ renta5Price: number
17
+ renta10Price: number
18
+ vNoSujeta: number
19
+ vExenta: number
20
+ vGravada: number
21
+ chargeDescription: string
22
+ NCDTotal: boolean
23
+ invoice: Invoices
24
+ service: Services
25
+ sellingType: Pick<SystemSellingTypes, 'id' | 'name'>
26
+ }
@@ -1,7 +1,7 @@
1
- import { InvoiceHeader } from '../CreateSingle/Request'
1
+ import { InvoiceHeaderSection } from '../CreateSingle/Request'
2
2
 
3
3
  export type InvoicesCreateSingleReservedRequest = Pick<
4
- InvoiceHeader,
4
+ InvoiceHeaderSection,
5
5
  'document' | 'authorization'
6
6
  > & {
7
7
  sequenceFrom: number
@@ -1,4 +1,4 @@
1
- export type InvoiceHeader = {
1
+ export type InvoiceHeaderSection = {
2
2
  customer: string
3
3
  customerBranch: string
4
4
  invoicesSeller: string
@@ -9,7 +9,7 @@ export type InvoiceHeader = {
9
9
  authorization: string
10
10
  }
11
11
 
12
- export type InvoiceTotals = {
12
+ export type InvoiceTotalsSection = {
13
13
  sum: number
14
14
  iva: number
15
15
  subtotal: number
@@ -23,7 +23,7 @@ export type InvoiceTotals = {
23
23
  ventaTotalText: string
24
24
  }
25
25
 
26
- export type InvoiceDetails = {
26
+ export type InvoiceDetailsSection = {
27
27
  quantity: number
28
28
  unitPrice: number
29
29
  chargeDescription: string
@@ -41,7 +41,7 @@ export type InvoiceDetails = {
41
41
  }
42
42
 
43
43
  export type InvoicesCreateSingleRequest = {
44
- header: InvoiceHeader
45
- totals: InvoiceTotals
46
- details: InvoiceDetails[]
44
+ header: InvoiceHeaderSection
45
+ totals: InvoiceTotalsSection
46
+ details: InvoiceDetailsSection[]
47
47
  }
@@ -2,6 +2,7 @@ import { CustomersBranches } from '../../customers/Branches/customers.branches.t
2
2
  import { Customers } from '../../customers/Customers/customers.types'
3
3
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types'
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
5
+ import { InvoicesDetailes } from '../Details/invoices.details.type'
5
6
  import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type'
6
7
  import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type'
7
8
  import { InvoicesSellers } from '../Sellers/invoices.sellers.type'
@@ -50,7 +51,7 @@ export type Invoices = {
50
51
  personType: Pick<SystemPersonTypes, 'id' | 'name'>
51
52
  customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>
52
53
  documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>
53
- // invoiceDetails: InvoicesDetailsEntity[]
54
+ invoiceDetails: InvoicesDetailes[]
54
55
  // echarges: Echarges
55
56
  // accountingEntry: AccountingEntriesEntity
56
57
  // relatedDocument: InvoicesEntity