bdpformulas 1.0.34 → 1.0.35

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,8 +1,6 @@
1
1
  import { Strategy } from "../../strategy.interface";
2
2
  export default class BalanceAgrStrategy implements Strategy {
3
- ventas: any;
4
- costos: any;
5
- gastos: any;
3
+ actividades: any[];
6
4
  constructor();
7
5
  execute(data: any): any;
8
6
  }
@@ -2,16 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class BalanceAgrStrategy {
4
4
  constructor() {
5
- this.ventas = {};
6
- this.costos = {};
5
+ this.actividades = [];
7
6
  }
8
7
  execute(data) {
9
- data.eerr = calcularEERR(data.eerr, this.ventas, this.costos);
8
+ data.eerr = calcularEERR(data.eerr, this.actividades);
10
9
  return data;
11
10
  }
12
11
  }
13
12
  exports.default = BalanceAgrStrategy;
14
- const calcularEERR = (eerr, ventas, costos) => {
13
+ const calcularEERR = (eerr, actividades) => {
15
14
  // const totalesOtrosIngresos = getOtrosIngresos(ventas)
16
15
  // const mapVentas = getVentasXGestion(ventas)
17
16
  // const costoTotal = calcularCostoTotal(costos)
@@ -1,8 +1,6 @@
1
1
  import { Strategy } from "../../strategy.interface";
2
2
  export default class FlujoProyectadoAgrStrategy implements Strategy {
3
- ventas: any;
4
- costos: any;
5
- gastos: any;
3
+ actividades: any[];
6
4
  constructor();
7
5
  execute(data: any): any;
8
6
  }
@@ -2,15 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  class FlujoProyectadoAgrStrategy {
4
4
  constructor() {
5
- this.ventas = {};
6
- this.costos = {};
5
+ this.actividades = [];
7
6
  }
8
7
  execute(data) {
9
- data.eerr = calcular(data, this.ventas, this.costos);
8
+ data.eerr = calcular(data, this.actividades);
10
9
  return data;
11
10
  }
12
11
  }
13
12
  exports.default = FlujoProyectadoAgrStrategy;
14
- const calcular = (data, ventas, costos) => {
13
+ const calcular = (data, actividades) => {
15
14
  return data;
16
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdpformulas",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",