bdpformulas 1.0.55 → 1.0.56
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/build/index.d.ts +19 -19
- package/build/strategies/agriculture/balanceAgr.strategy.d.ts +2 -1
- package/build/strategies/agriculture/balanceAgr.strategy.js +153 -16
- package/build/strategies/balance.strategy.d.ts +13 -1
- package/build/strategies/balance.strategy.js +117 -24
- package/build/strategies/common/balance.calc.js +3 -4
- package/build/strategies/common/balanceCalculos/balanceAux.calc.js +2 -2
- package/build/strategies/common/balanceCalculos/flujoAux.calc.js +6 -5
- package/build/strategies/common/declaracionJurada.calc.js +25 -9
- package/build/strategies/general/balanceGeneral.strategy.d.ts +1 -1
- package/build/strategies/general/balanceGeneral.strategy.js +19 -9
- package/build/strategies/index.d.ts +1 -0
- package/build/strategies/index.js +7446 -0
- package/build/strategies/utils.d.ts +7 -0
- package/build/strategies/utils.js +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CampoCalculado, CampoCalculadoDefinido } from './balance.strategy';
|
|
2
|
+
interface FormatCamposCalculadosParams {
|
|
3
|
+
definidos: CampoCalculadoDefinido[];
|
|
4
|
+
cantidadGestiones: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function formatCamposCalculados({ definidos, cantidadGestiones }: FormatCamposCalculadosParams): CampoCalculado[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatCamposCalculados = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
function formatCamposCalculados({ definidos, cantidadGestiones }) {
|
|
6
|
+
const campos = [];
|
|
7
|
+
definidos.forEach((el) => {
|
|
8
|
+
if (el.Correlativos === '*') {
|
|
9
|
+
for (let i = 1; i <= cantidadGestiones; i++) {
|
|
10
|
+
campos.push({
|
|
11
|
+
...(0, lodash_1.pick)(el, ['RubroId', 'Empresa', 'Familiar']),
|
|
12
|
+
Correlativo: i
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else if (el.Correlativos === 'ultima') {
|
|
17
|
+
campos.push({
|
|
18
|
+
...(0, lodash_1.pick)(el, ['RubroId', 'Empresa', 'Familiar']),
|
|
19
|
+
Correlativo: cantidadGestiones
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
el.Correlativos.forEach((corr) => {
|
|
24
|
+
campos.push({
|
|
25
|
+
...(0, lodash_1.pick)(el, ['RubroId', 'Empresa', 'Familiar']),
|
|
26
|
+
Correlativo: corr
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return campos;
|
|
32
|
+
}
|
|
33
|
+
exports.formatCamposCalculados = formatCamposCalculados;
|