@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.
- package/lib/invoices/Details/index.d.ts +0 -0
- package/lib/invoices/Details/index.js +2 -0
- package/lib/invoices/Details/index.js.map +1 -0
- package/lib/invoices/Details/invoices.details.type.d.ts +25 -0
- package/lib/invoices/Details/invoices.details.type.js +3 -0
- package/lib/invoices/Details/invoices.details.type.js.map +1 -0
- package/lib/invoices/Invoices/CreateReserved/Request.d.ts +2 -2
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +6 -6
- package/lib/invoices/Invoices/invoices.types.d.ts +2 -0
- package/package.json +1 -1
- package/src/invoices/Details/index.ts +0 -0
- package/src/invoices/Details/invoices.details.type.ts +26 -0
- package/src/invoices/Invoices/CreateReserved/Request.ts +2 -2
- package/src/invoices/Invoices/CreateSingle/Request.ts +6 -6
- package/src/invoices/Invoices/invoices.types.ts +2 -1
|
File without changes
|
|
@@ -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 @@
|
|
|
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 {
|
|
2
|
-
export type InvoicesCreateSingleReservedRequest = Pick<
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
42
|
-
totals:
|
|
43
|
-
details:
|
|
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
|
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 {
|
|
1
|
+
import { InvoiceHeaderSection } from '../CreateSingle/Request'
|
|
2
2
|
|
|
3
3
|
export type InvoicesCreateSingleReservedRequest = Pick<
|
|
4
|
-
|
|
4
|
+
InvoiceHeaderSection,
|
|
5
5
|
'document' | 'authorization'
|
|
6
6
|
> & {
|
|
7
7
|
sequenceFrom: number
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
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
|
|
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
|
|
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:
|
|
45
|
-
totals:
|
|
46
|
-
details:
|
|
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
|
-
|
|
54
|
+
invoiceDetails: InvoicesDetailes[]
|
|
54
55
|
// echarges: Echarges
|
|
55
56
|
// accountingEntry: AccountingEntriesEntity
|
|
56
57
|
// relatedDocument: InvoicesEntity
|