@openbox/shared-types 0.6.16 → 0.6.18
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/index.d.ts +0 -1
- package/lib/invoices/index.js +0 -1
- package/lib/invoices/index.js.map +1 -1
- package/lib/purchases/PaymentConditions/CreateMany/Request.d.ts +2 -0
- package/lib/purchases/PaymentConditions/CreateMany/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/CreateMany/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/CreateMany/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Request.d.ts +3 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Request.js +3 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Response.js +3 -0
- package/lib/purchases/PaymentConditions/DeleteMany/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/DeleteSingle/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/DeleteSingle/Response.js +3 -0
- package/lib/purchases/PaymentConditions/DeleteSingle/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/GetMany/Request.d.ts +4 -0
- package/lib/purchases/PaymentConditions/GetMany/Request.js +3 -0
- package/lib/purchases/PaymentConditions/GetMany/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/GetMany/Response.d.ts +7 -0
- package/lib/purchases/PaymentConditions/GetMany/Response.js +3 -0
- package/lib/purchases/PaymentConditions/GetMany/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Request.d.ts +4 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Request.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Response.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateMany/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Request.d.ts +4 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Request.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Response.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateManyStatuses/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Request.d.ts +3 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Request.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Request.js.map +1 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Response.d.ts +2 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Response.js +3 -0
- package/lib/purchases/PaymentConditions/UpdateSingleStatus/Response.js.map +1 -0
- package/lib/purchases/PaymentConditions/index.d.ts +13 -0
- package/lib/purchases/PaymentConditions/index.js +13 -0
- package/lib/purchases/PaymentConditions/index.js.map +1 -1
- package/lib/system/Calculation/CalculateSingle/Request.d.ts +25 -0
- package/lib/system/Calculation/CalculateSingle/Request.js +3 -0
- package/lib/system/Calculation/CalculateSingle/Request.js.map +1 -0
- package/lib/system/Calculation/CalculateSingle/Response.d.ts +69 -0
- package/lib/system/Calculation/CalculateSingle/Response.js +3 -0
- package/lib/system/Calculation/CalculateSingle/Response.js.map +1 -0
- package/lib/system/Calculation/index.js.map +1 -0
- package/lib/system/index.d.ts +1 -0
- package/lib/system/index.js +1 -0
- package/lib/system/index.js.map +1 -1
- package/lib/system/system.enums.d.ts +4 -0
- package/lib/system/system.enums.js +6 -1
- package/lib/system/system.enums.js.map +1 -1
- package/package.json +1 -1
- package/lib/invoices/Calculation/CalculateSingle/Request.d.ts +0 -25
- package/lib/invoices/Calculation/CalculateSingle/Request.js.map +0 -1
- package/lib/invoices/Calculation/CalculateSingle/Response.d.ts +0 -69
- package/lib/invoices/Calculation/CalculateSingle/Response.js.map +0 -1
- package/lib/invoices/Calculation/index.js.map +0 -1
- /package/lib/{invoices/Calculation/CalculateSingle → purchases/PaymentConditions/CreateMany}/Request.js +0 -0
- /package/lib/{invoices/Calculation/CalculateSingle → purchases/PaymentConditions/CreateMany}/Response.js +0 -0
- /package/lib/{invoices → system}/Calculation/index.d.ts +0 -0
- /package/lib/{invoices → system}/Calculation/index.js +0 -0
package/lib/invoices/index.d.ts
CHANGED
package/lib/invoices/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Calculation/"), exports);
|
|
18
17
|
__exportStar(require("./Details"), exports);
|
|
19
18
|
__exportStar(require("./Discounts"), exports);
|
|
20
19
|
__exportStar(require("./DocumentTypes/"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,4CAAyB;AACzB,8CAA2B;AAC3B,sDAAmC;AACnC,6CAA0B;AAC1B,6CAA0B;AAC1B,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/CreateMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/CreateMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/DeleteMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/DeleteMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/DeleteSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/GetMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
+
import { PurchasesPaymentConditions } from '../purchases.payment-conditions.type';
|
|
3
|
+
export type PurchasesPaymentConditionsGetManyResponse = GetManyResponse & {
|
|
4
|
+
data: Array<PurchasesPaymentConditions & {
|
|
5
|
+
index: number;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/GetMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateManyStatuses/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateManyStatuses/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateSingleStatus/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/purchases/PaymentConditions/UpdateSingleStatus/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
export * from './CreateMany/Request';
|
|
2
|
+
export * from './CreateMany/Response';
|
|
1
3
|
export * from './CreateSingle/Request';
|
|
2
4
|
export * from './CreateSingle/Response';
|
|
5
|
+
export * from './DeleteMany/Request';
|
|
6
|
+
export * from './DeleteMany/Response';
|
|
7
|
+
export * from './DeleteSingle/Response';
|
|
8
|
+
export * from './GetMany/Request';
|
|
9
|
+
export * from './GetMany/Response';
|
|
3
10
|
export * from './GetSingle/Response';
|
|
11
|
+
export * from './UpdateMany/Request';
|
|
12
|
+
export * from './UpdateMany/Response';
|
|
13
|
+
export * from './UpdateManyStatuses/Request';
|
|
14
|
+
export * from './UpdateManyStatuses/Response';
|
|
4
15
|
export * from './UpdateSingle/Request';
|
|
5
16
|
export * from './UpdateSingle/Response';
|
|
17
|
+
export * from './UpdateSingleStatus/Request';
|
|
18
|
+
export * from './UpdateSingleStatus/Response';
|
|
6
19
|
export * from './purchases.payment-conditions.type';
|
|
@@ -14,10 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateMany/Request"), exports);
|
|
18
|
+
__exportStar(require("./CreateMany/Response"), exports);
|
|
17
19
|
__exportStar(require("./CreateSingle/Request"), exports);
|
|
18
20
|
__exportStar(require("./CreateSingle/Response"), exports);
|
|
21
|
+
__exportStar(require("./DeleteMany/Request"), exports);
|
|
22
|
+
__exportStar(require("./DeleteMany/Response"), exports);
|
|
23
|
+
__exportStar(require("./DeleteSingle/Response"), exports);
|
|
24
|
+
__exportStar(require("./GetMany/Request"), exports);
|
|
25
|
+
__exportStar(require("./GetMany/Response"), exports);
|
|
19
26
|
__exportStar(require("./GetSingle/Response"), exports);
|
|
27
|
+
__exportStar(require("./UpdateMany/Request"), exports);
|
|
28
|
+
__exportStar(require("./UpdateMany/Response"), exports);
|
|
29
|
+
__exportStar(require("./UpdateManyStatuses/Request"), exports);
|
|
30
|
+
__exportStar(require("./UpdateManyStatuses/Response"), exports);
|
|
20
31
|
__exportStar(require("./UpdateSingle/Request"), exports);
|
|
21
32
|
__exportStar(require("./UpdateSingle/Response"), exports);
|
|
33
|
+
__exportStar(require("./UpdateSingleStatus/Request"), exports);
|
|
34
|
+
__exportStar(require("./UpdateSingleStatus/Response"), exports);
|
|
22
35
|
__exportStar(require("./purchases.payment-conditions.type"), exports);
|
|
23
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/purchases/PaymentConditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC;AACvC,sEAAmD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/purchases/PaymentConditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C;AAC7C,sEAAmD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SystemDiscountsTypesKeys } from '../../system.enums';
|
|
2
|
+
export type SystemCalculationsDetailsRequest = {
|
|
3
|
+
id?: string;
|
|
4
|
+
service?: string;
|
|
5
|
+
product?: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
unitPrice: number;
|
|
8
|
+
price: number;
|
|
9
|
+
incIva: boolean;
|
|
10
|
+
incRenta5: boolean;
|
|
11
|
+
incRenta10: boolean;
|
|
12
|
+
chargeDescription: string;
|
|
13
|
+
};
|
|
14
|
+
export type SystemCalculationsDiscountsRequest = {
|
|
15
|
+
id?: string;
|
|
16
|
+
type: SystemDiscountsTypesKeys;
|
|
17
|
+
quantity: number;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
export type SystemCalculationsCalculateSingleRequest = {
|
|
21
|
+
documentType: number;
|
|
22
|
+
customer: string;
|
|
23
|
+
details: SystemCalculationsDetailsRequest[];
|
|
24
|
+
discounts: SystemCalculationsDiscountsRequest[] | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/Calculation/CalculateSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SystemDiscountsTypesKeys } from '../../system.enums';
|
|
2
|
+
export type SystemCalculationsDetailsResponse = {
|
|
3
|
+
id?: string;
|
|
4
|
+
service?: string;
|
|
5
|
+
product?: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
chargeDescription: string;
|
|
8
|
+
price: number;
|
|
9
|
+
incIva: boolean;
|
|
10
|
+
incRenta5: boolean;
|
|
11
|
+
incRenta10: boolean;
|
|
12
|
+
unitPrice: number;
|
|
13
|
+
ivaPrice: number;
|
|
14
|
+
ventaPrice: number;
|
|
15
|
+
vNoSujeta: number;
|
|
16
|
+
vExenta: number;
|
|
17
|
+
vGravada: number;
|
|
18
|
+
totalIvaPrice: number;
|
|
19
|
+
rentaPrice5: number;
|
|
20
|
+
rentaPrice10?: number;
|
|
21
|
+
sellingType: number;
|
|
22
|
+
unitPriceToShow: number;
|
|
23
|
+
vExentaToShow: number;
|
|
24
|
+
vNoSujetaToShow: number;
|
|
25
|
+
vGravadaToShow: number;
|
|
26
|
+
};
|
|
27
|
+
export type SystemCalculationsDiscountsResponse = {
|
|
28
|
+
id?: string;
|
|
29
|
+
type: SystemDiscountsTypesKeys;
|
|
30
|
+
quantity: number;
|
|
31
|
+
description: string;
|
|
32
|
+
descuNoSuj: number;
|
|
33
|
+
descuExenta: number;
|
|
34
|
+
descuGravada: number;
|
|
35
|
+
descuNoSujToShow: number;
|
|
36
|
+
descuExentaToShow: number;
|
|
37
|
+
descuGravadaToShow: number;
|
|
38
|
+
};
|
|
39
|
+
export type SystemCalculationsTotalsItem = {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
value: number;
|
|
43
|
+
amount: number;
|
|
44
|
+
style?: string[];
|
|
45
|
+
show: true | false;
|
|
46
|
+
type?: 'currency' | 'percentage';
|
|
47
|
+
};
|
|
48
|
+
export interface SystemCalculationsTotalsResponse {
|
|
49
|
+
totalExenta: SystemCalculationsTotalsItem;
|
|
50
|
+
totalNoSuj: SystemCalculationsTotalsItem;
|
|
51
|
+
totalGravada: SystemCalculationsTotalsItem;
|
|
52
|
+
subTotalVentas: SystemCalculationsTotalsItem;
|
|
53
|
+
descuExenta: SystemCalculationsTotalsItem;
|
|
54
|
+
descuNoSuj: SystemCalculationsTotalsItem;
|
|
55
|
+
descuGravada: SystemCalculationsTotalsItem;
|
|
56
|
+
totalDescu: SystemCalculationsTotalsItem;
|
|
57
|
+
porcentajeDescuento: SystemCalculationsTotalsItem;
|
|
58
|
+
totalIva: SystemCalculationsTotalsItem;
|
|
59
|
+
subTotal: SystemCalculationsTotalsItem;
|
|
60
|
+
ivaRetenido: SystemCalculationsTotalsItem;
|
|
61
|
+
reteRenta: SystemCalculationsTotalsItem;
|
|
62
|
+
montoTotalOperacion: SystemCalculationsTotalsItem;
|
|
63
|
+
totalPagar: SystemCalculationsTotalsItem;
|
|
64
|
+
}
|
|
65
|
+
export type SystemCalculationsCalculateSingleResponse = {
|
|
66
|
+
details: SystemCalculationsDetailsResponse[];
|
|
67
|
+
discounts: SystemCalculationsDiscountsResponse[];
|
|
68
|
+
totals: SystemCalculationsTotalsResponse;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Calculation/CalculateSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Calculation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,6DAA0C"}
|
package/lib/system/index.d.ts
CHANGED
package/lib/system/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Calculation/"), exports);
|
|
17
18
|
__exportStar(require("./Cities/"), exports);
|
|
18
19
|
__exportStar(require("./Countries/"), exports);
|
|
19
20
|
__exportStar(require("./Directory/"), exports);
|
package/lib/system/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,6CAA0B;AAC1B,uDAAoC;AACpC,iDAA8B;AAC9B,kDAA+B;AAC/B,6CAA0B;AAC1B,4CAAyB;AACzB,wCAAqB;AACrB,iDAA8B;AAC9B,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,0CAAuB;AACvB,6CAA0B;AAC1B,uDAAoC;AACpC,iDAA8B;AAC9B,kDAA+B;AAC/B,6CAA0B;AAC1B,4CAAyB;AACzB,wCAAqB;AACrB,iDAA8B;AAC9B,gDAA6B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemSettingTypes = exports.SystemSettingKeys = exports.SystemSellingTypesEnum = exports.SystemNaturalTypesEnum = exports.SystemPersonTypesEnum = exports.SystemTaxerTypesEnum = exports.SystemModulesData = void 0;
|
|
3
|
+
exports.SystemDiscountsTypesKeys = exports.SystemSettingTypes = exports.SystemSettingKeys = exports.SystemSellingTypesEnum = exports.SystemNaturalTypesEnum = exports.SystemPersonTypesEnum = exports.SystemTaxerTypesEnum = exports.SystemModulesData = void 0;
|
|
4
4
|
exports.SystemModulesData = {
|
|
5
5
|
Customers: {
|
|
6
6
|
id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa',
|
|
@@ -84,4 +84,9 @@ var SystemSettingTypes;
|
|
|
84
84
|
SystemSettingTypes["NUMBER"] = "NUMBER";
|
|
85
85
|
SystemSettingTypes["BOOLEAN"] = "BOOLEAN";
|
|
86
86
|
})(SystemSettingTypes = exports.SystemSettingTypes || (exports.SystemSettingTypes = {}));
|
|
87
|
+
var SystemDiscountsTypesKeys;
|
|
88
|
+
(function (SystemDiscountsTypesKeys) {
|
|
89
|
+
SystemDiscountsTypesKeys["AMOUNT_DISCOUNT"] = "AMOUNT_DISCOUNT";
|
|
90
|
+
SystemDiscountsTypesKeys["PERCENTAGE_DISCOUNT"] = "PERCENTAGE_DISCOUNT";
|
|
91
|
+
})(SystemDiscountsTypesKeys = exports.SystemDiscountsTypesKeys || (exports.SystemDiscountsTypesKeys = {}));
|
|
87
92
|
//# sourceMappingURL=system.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EA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AqB,QAIhC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mFAAgB,CAAA;IAChB,+EAAc,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,sDAAiC,CAAA;AACnC,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B;AAMD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACrB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,+DAAmC,CAAA;IACnC,uEAA2C,CAAA;AAC7C,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC"}
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
2
|
-
export type InvoicesCalculationsDetailsRequest = {
|
|
3
|
-
id?: string;
|
|
4
|
-
service?: string;
|
|
5
|
-
product?: string;
|
|
6
|
-
quantity: number;
|
|
7
|
-
unitPrice: number;
|
|
8
|
-
price: number;
|
|
9
|
-
incIva: boolean;
|
|
10
|
-
incRenta5: boolean;
|
|
11
|
-
incRenta10: boolean;
|
|
12
|
-
chargeDescription: string;
|
|
13
|
-
};
|
|
14
|
-
export type InvoicesCalculationsDiscountsRequest = {
|
|
15
|
-
id?: string;
|
|
16
|
-
type: InvoicesDiscountsTypesKeys;
|
|
17
|
-
quantity: number;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
export type InvoicesCalculationsCalculateSingleRequest = {
|
|
21
|
-
documentType: number;
|
|
22
|
-
customer: string;
|
|
23
|
-
details: InvoicesCalculationsDetailsRequest[];
|
|
24
|
-
discounts: InvoicesCalculationsDiscountsRequest[] | null;
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Calculation/CalculateSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
2
|
-
export type InvoicesCalculationsDetailsResponse = {
|
|
3
|
-
id?: string;
|
|
4
|
-
service?: string;
|
|
5
|
-
product?: string;
|
|
6
|
-
quantity: number;
|
|
7
|
-
chargeDescription: string;
|
|
8
|
-
price: number;
|
|
9
|
-
incIva: boolean;
|
|
10
|
-
incRenta5: boolean;
|
|
11
|
-
incRenta10: boolean;
|
|
12
|
-
unitPrice: number;
|
|
13
|
-
ivaPrice: number;
|
|
14
|
-
ventaPrice: number;
|
|
15
|
-
vNoSujeta: number;
|
|
16
|
-
vExenta: number;
|
|
17
|
-
vGravada: number;
|
|
18
|
-
totalIvaPrice: number;
|
|
19
|
-
rentaPrice5: number;
|
|
20
|
-
rentaPrice10?: number;
|
|
21
|
-
sellingType: number;
|
|
22
|
-
unitPriceToShow: number;
|
|
23
|
-
vExentaToShow: number;
|
|
24
|
-
vNoSujetaToShow: number;
|
|
25
|
-
vGravadaToShow: number;
|
|
26
|
-
};
|
|
27
|
-
export type InvoicesCalculationsDiscountsResponse = {
|
|
28
|
-
id?: string;
|
|
29
|
-
type: InvoicesDiscountsTypesKeys;
|
|
30
|
-
quantity: number;
|
|
31
|
-
description: string;
|
|
32
|
-
descuNoSuj: number;
|
|
33
|
-
descuExenta: number;
|
|
34
|
-
descuGravada: number;
|
|
35
|
-
descuNoSujToShow: number;
|
|
36
|
-
descuExentaToShow: number;
|
|
37
|
-
descuGravadaToShow: number;
|
|
38
|
-
};
|
|
39
|
-
export type InvoicesCalculationsTotalsItem = {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
value: number;
|
|
43
|
-
amount: number;
|
|
44
|
-
style?: string[];
|
|
45
|
-
show: true | false;
|
|
46
|
-
type?: 'currency' | 'percentage';
|
|
47
|
-
};
|
|
48
|
-
export interface InvoicesCalculationsTotalsResponse {
|
|
49
|
-
totalExenta: InvoicesCalculationsTotalsItem;
|
|
50
|
-
totalNoSuj: InvoicesCalculationsTotalsItem;
|
|
51
|
-
totalGravada: InvoicesCalculationsTotalsItem;
|
|
52
|
-
subTotalVentas: InvoicesCalculationsTotalsItem;
|
|
53
|
-
descuExenta: InvoicesCalculationsTotalsItem;
|
|
54
|
-
descuNoSuj: InvoicesCalculationsTotalsItem;
|
|
55
|
-
descuGravada: InvoicesCalculationsTotalsItem;
|
|
56
|
-
totalDescu: InvoicesCalculationsTotalsItem;
|
|
57
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
58
|
-
totalIva: InvoicesCalculationsTotalsItem;
|
|
59
|
-
subTotal: InvoicesCalculationsTotalsItem;
|
|
60
|
-
ivaRetenido: InvoicesCalculationsTotalsItem;
|
|
61
|
-
reteRenta: InvoicesCalculationsTotalsItem;
|
|
62
|
-
montoTotalOperacion: InvoicesCalculationsTotalsItem;
|
|
63
|
-
totalPagar: InvoicesCalculationsTotalsItem;
|
|
64
|
-
}
|
|
65
|
-
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
66
|
-
details: InvoicesCalculationsDetailsResponse[];
|
|
67
|
-
discounts: InvoicesCalculationsDiscountsResponse[];
|
|
68
|
-
totals: InvoicesCalculationsTotalsResponse;
|
|
69
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Calculation/CalculateSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Calculation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,6DAA0C"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|