bdpformulas 1.0.16 → 1.0.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/build/index.d.ts CHANGED
@@ -2,9 +2,11 @@ import Auxiliar from './strategies/pecuary/anexo.strategy';
2
2
  import Desarrollo from './strategies/pecuary/desarrollo.strategy';
3
3
  import VentasPec from "./strategies/pecuary/ventas.strategy";
4
4
  import Context from "./context";
5
+ import CostosPec from "./strategies/pecuary/costos.strategy";
5
6
  declare const Pecuario: {
6
7
  Auxiliar: typeof Auxiliar;
7
8
  Desarrollo: typeof Desarrollo;
8
9
  VentasPec: typeof VentasPec;
10
+ CostosPec: typeof CostosPec;
9
11
  };
10
12
  export { Context, Pecuario };
package/build/index.js CHANGED
@@ -9,9 +9,11 @@ const desarrollo_strategy_1 = __importDefault(require("./strategies/pecuary/desa
9
9
  const ventas_strategy_1 = __importDefault(require("./strategies/pecuary/ventas.strategy"));
10
10
  const context_1 = __importDefault(require("./context"));
11
11
  exports.Context = context_1.default;
12
+ const costos_strategy_1 = __importDefault(require("./strategies/pecuary/costos.strategy"));
12
13
  const Pecuario = {
13
14
  Auxiliar: anexo_strategy_1.default,
14
15
  Desarrollo: desarrollo_strategy_1.default,
15
- VentasPec: ventas_strategy_1.default
16
+ VentasPec: ventas_strategy_1.default,
17
+ CostosPec: costos_strategy_1.default
16
18
  };
17
19
  exports.Pecuario = Pecuario;
@@ -6,37 +6,49 @@ export declare const CostosPecSchema: z.ZodObject<{
6
6
  Conceptos: z.ZodArray<z.ZodObject<{
7
7
  IndicadorABM: z.ZodEnum<["N", "M"]>;
8
8
  RubroId: z.ZodString;
9
- Subtipo: z.ZodString;
10
- Correlativo: z.ZodNumber;
11
- Monto: z.ZodNumber;
9
+ Subtipo: z.ZodEnum<["C", "A", "I"]>;
10
+ Descripcion: z.ZodString;
11
+ Unidad: z.ZodString;
12
+ CodigoConcepto: z.ZodString;
13
+ MontoCantidad: z.ZodNumber;
14
+ MontoPrecio: z.ZodNumber;
12
15
  }, "strip", z.ZodTypeAny, {
13
16
  RubroId: string;
14
17
  IndicadorABM: "N" | "M";
15
- Monto: number;
16
- Correlativo: number;
17
- Subtipo: string;
18
+ Descripcion: string;
19
+ Unidad: string;
20
+ CodigoConcepto: string;
21
+ Subtipo: "A" | "C" | "I";
22
+ MontoCantidad: number;
23
+ MontoPrecio: number;
18
24
  }, {
19
25
  RubroId: string;
20
26
  IndicadorABM: "N" | "M";
21
- Monto: number;
22
- Correlativo: number;
23
- Subtipo: string;
27
+ Descripcion: string;
28
+ Unidad: string;
29
+ CodigoConcepto: string;
30
+ Subtipo: "A" | "C" | "I";
31
+ MontoCantidad: number;
32
+ MontoPrecio: number;
24
33
  }>, "many">;
25
34
  Comportamiento: z.ZodArray<z.ZodObject<{
26
35
  RubroId: z.ZodString;
36
+ Subtipo: z.ZodEnum<["C", "A", "I"]>;
27
37
  IndicadorABM: z.ZodEnum<["N", "M"]>;
28
- Unidad: z.ZodString;
29
- CicloId: z.ZodString;
38
+ Correlativo: z.ZodNumber;
39
+ Monto: z.ZodNumber;
30
40
  }, "strip", z.ZodTypeAny, {
31
41
  RubroId: string;
32
42
  IndicadorABM: "N" | "M";
33
- Unidad: string;
34
- CicloId: string;
43
+ Monto: number;
44
+ Correlativo: number;
45
+ Subtipo: "A" | "C" | "I";
35
46
  }, {
36
47
  RubroId: string;
37
48
  IndicadorABM: "N" | "M";
38
- Unidad: string;
39
- CicloId: string;
49
+ Monto: number;
50
+ Correlativo: number;
51
+ Subtipo: "A" | "C" | "I";
40
52
  }>, "many">;
41
53
  }, "strip", z.ZodTypeAny, {
42
54
  EvaluacionId: number;
@@ -45,15 +57,19 @@ export declare const CostosPecSchema: z.ZodObject<{
45
57
  Conceptos: {
46
58
  RubroId: string;
47
59
  IndicadorABM: "N" | "M";
48
- Monto: number;
49
- Correlativo: number;
50
- Subtipo: string;
60
+ Descripcion: string;
61
+ Unidad: string;
62
+ CodigoConcepto: string;
63
+ Subtipo: "A" | "C" | "I";
64
+ MontoCantidad: number;
65
+ MontoPrecio: number;
51
66
  }[];
52
67
  Comportamiento: {
53
68
  RubroId: string;
54
69
  IndicadorABM: "N" | "M";
55
- Unidad: string;
56
- CicloId: string;
70
+ Monto: number;
71
+ Correlativo: number;
72
+ Subtipo: "A" | "C" | "I";
57
73
  }[];
58
74
  }, {
59
75
  EvaluacionId: number;
@@ -62,15 +78,699 @@ export declare const CostosPecSchema: z.ZodObject<{
62
78
  Conceptos: {
63
79
  RubroId: string;
64
80
  IndicadorABM: "N" | "M";
65
- Monto: number;
66
- Correlativo: number;
67
- Subtipo: string;
81
+ Descripcion: string;
82
+ Unidad: string;
83
+ CodigoConcepto: string;
84
+ Subtipo: "A" | "C" | "I";
85
+ MontoCantidad: number;
86
+ MontoPrecio: number;
68
87
  }[];
69
88
  Comportamiento: {
70
89
  RubroId: string;
71
90
  IndicadorABM: "N" | "M";
72
- Unidad: string;
73
- CicloId: string;
91
+ Monto: number;
92
+ Correlativo: number;
93
+ Subtipo: "A" | "C" | "I";
74
94
  }[];
75
95
  }>;
76
96
  export type CostosPecType = z.infer<typeof CostosPecSchema>;
97
+ declare const CalcCostos: z.ZodObject<{
98
+ Auxiliar: z.ZodObject<{
99
+ EvaluacionId: z.ZodNumber;
100
+ ActividadEconomicaId: z.ZodNumber;
101
+ PID: z.ZodNumber;
102
+ PropiedadesGanaderas: z.ZodArray<z.ZodObject<{
103
+ UUID: z.ZodString;
104
+ IndicadorABM: z.ZodEnum<["A", "N", "M", "B"]>;
105
+ TipoGanadoId: z.ZodString;
106
+ RazaGanadoId: z.ZodString;
107
+ Fecha: z.ZodString;
108
+ TipoDocumentoId: z.ZodString;
109
+ Rubros: z.ZodArray<z.ZodObject<{
110
+ RubroId: z.ZodString;
111
+ CantidadCabezas: z.ZodNumber;
112
+ PesoPromedio: z.ZodNumber;
113
+ PrecioCabeza: z.ZodNumber;
114
+ PrecioCabezaBalance: z.ZodNumber;
115
+ Total: z.ZodOptional<z.ZodNumber>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ RubroId: string;
118
+ CantidadCabezas: number;
119
+ PesoPromedio: number;
120
+ PrecioCabeza: number;
121
+ PrecioCabezaBalance: number;
122
+ Total?: number | undefined;
123
+ }, {
124
+ RubroId: string;
125
+ CantidadCabezas: number;
126
+ PesoPromedio: number;
127
+ PrecioCabeza: number;
128
+ PrecioCabezaBalance: number;
129
+ Total?: number | undefined;
130
+ }>, "many">;
131
+ Total: z.ZodOptional<z.ZodNumber>;
132
+ PesoAclaracion: z.ZodString;
133
+ PrecioAclaracion: z.ZodString;
134
+ TipoGanadoDesc: z.ZodOptional<z.ZodString>;
135
+ RazaGanadoDesc: z.ZodOptional<z.ZodString>;
136
+ TipoDocumentoDesc: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ UUID: string;
139
+ IndicadorABM: "A" | "N" | "M" | "B";
140
+ TipoGanadoId: string;
141
+ RazaGanadoId: string;
142
+ Fecha: string;
143
+ TipoDocumentoId: string;
144
+ Rubros: {
145
+ RubroId: string;
146
+ CantidadCabezas: number;
147
+ PesoPromedio: number;
148
+ PrecioCabeza: number;
149
+ PrecioCabezaBalance: number;
150
+ Total?: number | undefined;
151
+ }[];
152
+ PesoAclaracion: string;
153
+ PrecioAclaracion: string;
154
+ Total?: number | undefined;
155
+ TipoGanadoDesc?: string | undefined;
156
+ RazaGanadoDesc?: string | undefined;
157
+ TipoDocumentoDesc?: string | undefined;
158
+ }, {
159
+ UUID: string;
160
+ IndicadorABM: "A" | "N" | "M" | "B";
161
+ TipoGanadoId: string;
162
+ RazaGanadoId: string;
163
+ Fecha: string;
164
+ TipoDocumentoId: string;
165
+ Rubros: {
166
+ RubroId: string;
167
+ CantidadCabezas: number;
168
+ PesoPromedio: number;
169
+ PrecioCabeza: number;
170
+ PrecioCabezaBalance: number;
171
+ Total?: number | undefined;
172
+ }[];
173
+ PesoAclaracion: string;
174
+ PrecioAclaracion: string;
175
+ Total?: number | undefined;
176
+ TipoGanadoDesc?: string | undefined;
177
+ RazaGanadoDesc?: string | undefined;
178
+ TipoDocumentoDesc?: string | undefined;
179
+ }>, "many">;
180
+ HistoricoHato: z.ZodArray<z.ZodObject<{
181
+ RubroId: z.ZodString;
182
+ Gestion: z.ZodNumber;
183
+ CantidadCabezas: z.ZodNumber;
184
+ PrecioCabeza: z.ZodNumber;
185
+ }, "strip", z.ZodTypeAny, {
186
+ RubroId: string;
187
+ CantidadCabezas: number;
188
+ PrecioCabeza: number;
189
+ Gestion: number;
190
+ }, {
191
+ RubroId: string;
192
+ CantidadCabezas: number;
193
+ PrecioCabeza: number;
194
+ Gestion: number;
195
+ }>, "many">;
196
+ Inventario: z.ZodArray<z.ZodObject<{
197
+ RubroId: z.ZodString;
198
+ IndicadorABM: z.ZodEnum<["A", "N", "M", "B"]>;
199
+ UUID: z.ZodString;
200
+ Descripcion: z.ZodString;
201
+ Cantidad: z.ZodNumber;
202
+ Precio: z.ZodNumber;
203
+ }, "strip", z.ZodTypeAny, {
204
+ RubroId: string;
205
+ UUID: string;
206
+ IndicadorABM: "A" | "N" | "M" | "B";
207
+ Descripcion: string;
208
+ Cantidad: number;
209
+ Precio: number;
210
+ }, {
211
+ RubroId: string;
212
+ UUID: string;
213
+ IndicadorABM: "A" | "N" | "M" | "B";
214
+ Descripcion: string;
215
+ Cantidad: number;
216
+ Precio: number;
217
+ }>, "many">;
218
+ }, "strip", z.ZodTypeAny, {
219
+ EvaluacionId: number;
220
+ ActividadEconomicaId: number;
221
+ PID: number;
222
+ PropiedadesGanaderas: {
223
+ UUID: string;
224
+ IndicadorABM: "A" | "N" | "M" | "B";
225
+ TipoGanadoId: string;
226
+ RazaGanadoId: string;
227
+ Fecha: string;
228
+ TipoDocumentoId: string;
229
+ Rubros: {
230
+ RubroId: string;
231
+ CantidadCabezas: number;
232
+ PesoPromedio: number;
233
+ PrecioCabeza: number;
234
+ PrecioCabezaBalance: number;
235
+ Total?: number | undefined;
236
+ }[];
237
+ PesoAclaracion: string;
238
+ PrecioAclaracion: string;
239
+ Total?: number | undefined;
240
+ TipoGanadoDesc?: string | undefined;
241
+ RazaGanadoDesc?: string | undefined;
242
+ TipoDocumentoDesc?: string | undefined;
243
+ }[];
244
+ HistoricoHato: {
245
+ RubroId: string;
246
+ CantidadCabezas: number;
247
+ PrecioCabeza: number;
248
+ Gestion: number;
249
+ }[];
250
+ Inventario: {
251
+ RubroId: string;
252
+ UUID: string;
253
+ IndicadorABM: "A" | "N" | "M" | "B";
254
+ Descripcion: string;
255
+ Cantidad: number;
256
+ Precio: number;
257
+ }[];
258
+ }, {
259
+ EvaluacionId: number;
260
+ ActividadEconomicaId: number;
261
+ PID: number;
262
+ PropiedadesGanaderas: {
263
+ UUID: string;
264
+ IndicadorABM: "A" | "N" | "M" | "B";
265
+ TipoGanadoId: string;
266
+ RazaGanadoId: string;
267
+ Fecha: string;
268
+ TipoDocumentoId: string;
269
+ Rubros: {
270
+ RubroId: string;
271
+ CantidadCabezas: number;
272
+ PesoPromedio: number;
273
+ PrecioCabeza: number;
274
+ PrecioCabezaBalance: number;
275
+ Total?: number | undefined;
276
+ }[];
277
+ PesoAclaracion: string;
278
+ PrecioAclaracion: string;
279
+ Total?: number | undefined;
280
+ TipoGanadoDesc?: string | undefined;
281
+ RazaGanadoDesc?: string | undefined;
282
+ TipoDocumentoDesc?: string | undefined;
283
+ }[];
284
+ HistoricoHato: {
285
+ RubroId: string;
286
+ CantidadCabezas: number;
287
+ PrecioCabeza: number;
288
+ Gestion: number;
289
+ }[];
290
+ Inventario: {
291
+ RubroId: string;
292
+ UUID: string;
293
+ IndicadorABM: "A" | "N" | "M" | "B";
294
+ Descripcion: string;
295
+ Cantidad: number;
296
+ Precio: number;
297
+ }[];
298
+ }>;
299
+ Desarrollo: z.ZodObject<{
300
+ EvaluacionId: z.ZodNumber;
301
+ FechaEvaluacion: z.ZodString;
302
+ ActividadEconomicaId: z.ZodNumber;
303
+ PersonaId: z.ZodNumber;
304
+ PID: z.ZodString;
305
+ NombreCompleto: z.ZodString;
306
+ Municipio: z.ZodString;
307
+ NombrePropiedad: z.ZodString;
308
+ TamannoHectareas: z.ZodNumber;
309
+ ActividadGanadera: z.ZodString;
310
+ CantidadProyeccion: z.ZodNumber;
311
+ Solicitudes: z.ZodArray<z.ZodObject<{
312
+ SolicitudOperacionId: z.ZodNumber;
313
+ TipoSolicitudOperacionId: z.ZodString;
314
+ Monto: z.ZodString;
315
+ Moneda: z.ZodString;
316
+ MonedaDesc: z.ZodString;
317
+ Plazo: z.ZodString;
318
+ TipoOperacionId: z.ZodString;
319
+ TipoOperacionDesc: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ SolicitudOperacionId: number;
322
+ TipoSolicitudOperacionId: string;
323
+ Monto: string;
324
+ Moneda: string;
325
+ MonedaDesc: string;
326
+ Plazo: string;
327
+ TipoOperacionId: string;
328
+ TipoOperacionDesc: string;
329
+ }, {
330
+ SolicitudOperacionId: number;
331
+ TipoSolicitudOperacionId: string;
332
+ Monto: string;
333
+ Moneda: string;
334
+ MonedaDesc: string;
335
+ Plazo: string;
336
+ TipoOperacionId: string;
337
+ TipoOperacionDesc: string;
338
+ }>, "many">;
339
+ Avaluo: z.ZodArray<z.ZodObject<{
340
+ RubroId: z.ZodString;
341
+ Descripcion: z.ZodString;
342
+ PlanInversion: z.ZodNullable<z.ZodNumber>;
343
+ Equivalencia: z.ZodNullable<z.ZodNumber>;
344
+ Porcentaje: z.ZodNullable<z.ZodNumber>;
345
+ Justificaciones: z.ZodNullable<z.ZodString>;
346
+ HatoInicial: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
347
+ PrecioVenta: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ RubroId: string;
350
+ Descripcion: string;
351
+ PlanInversion: number | null;
352
+ Equivalencia: number | null;
353
+ Porcentaje: number | null;
354
+ Justificaciones: string | null;
355
+ HatoInicial?: number | null | undefined;
356
+ PrecioVenta?: number | null | undefined;
357
+ }, {
358
+ RubroId: string;
359
+ Descripcion: string;
360
+ PlanInversion: number | null;
361
+ Equivalencia: number | null;
362
+ Porcentaje: number | null;
363
+ Justificaciones: string | null;
364
+ HatoInicial?: number | null | undefined;
365
+ PrecioVenta?: number | null | undefined;
366
+ }>, "many">;
367
+ Parametros: z.ZodArray<z.ZodObject<{
368
+ RubroId: z.ZodString;
369
+ Descripcion: z.ZodString;
370
+ Tipo: z.ZodNullable<z.ZodString>;
371
+ Porcentaje: z.ZodNullable<z.ZodString>;
372
+ Bandera: z.ZodNullable<z.ZodString>;
373
+ Justificaciones: z.ZodNullable<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ RubroId: string;
376
+ Descripcion: string;
377
+ Porcentaje: string | null;
378
+ Justificaciones: string | null;
379
+ Tipo: string | null;
380
+ Bandera: string | null;
381
+ }, {
382
+ RubroId: string;
383
+ Descripcion: string;
384
+ Porcentaje: string | null;
385
+ Justificaciones: string | null;
386
+ Tipo: string | null;
387
+ Bandera: string | null;
388
+ }>, "many">;
389
+ }, "strip", z.ZodTypeAny, {
390
+ EvaluacionId: number;
391
+ ActividadEconomicaId: number;
392
+ PID: string;
393
+ FechaEvaluacion: string;
394
+ PersonaId: number;
395
+ NombreCompleto: string;
396
+ Municipio: string;
397
+ NombrePropiedad: string;
398
+ TamannoHectareas: number;
399
+ ActividadGanadera: string;
400
+ CantidadProyeccion: number;
401
+ Solicitudes: {
402
+ SolicitudOperacionId: number;
403
+ TipoSolicitudOperacionId: string;
404
+ Monto: string;
405
+ Moneda: string;
406
+ MonedaDesc: string;
407
+ Plazo: string;
408
+ TipoOperacionId: string;
409
+ TipoOperacionDesc: string;
410
+ }[];
411
+ Avaluo: {
412
+ RubroId: string;
413
+ Descripcion: string;
414
+ PlanInversion: number | null;
415
+ Equivalencia: number | null;
416
+ Porcentaje: number | null;
417
+ Justificaciones: string | null;
418
+ HatoInicial?: number | null | undefined;
419
+ PrecioVenta?: number | null | undefined;
420
+ }[];
421
+ Parametros: {
422
+ RubroId: string;
423
+ Descripcion: string;
424
+ Porcentaje: string | null;
425
+ Justificaciones: string | null;
426
+ Tipo: string | null;
427
+ Bandera: string | null;
428
+ }[];
429
+ }, {
430
+ EvaluacionId: number;
431
+ ActividadEconomicaId: number;
432
+ PID: string;
433
+ FechaEvaluacion: string;
434
+ PersonaId: number;
435
+ NombreCompleto: string;
436
+ Municipio: string;
437
+ NombrePropiedad: string;
438
+ TamannoHectareas: number;
439
+ ActividadGanadera: string;
440
+ CantidadProyeccion: number;
441
+ Solicitudes: {
442
+ SolicitudOperacionId: number;
443
+ TipoSolicitudOperacionId: string;
444
+ Monto: string;
445
+ Moneda: string;
446
+ MonedaDesc: string;
447
+ Plazo: string;
448
+ TipoOperacionId: string;
449
+ TipoOperacionDesc: string;
450
+ }[];
451
+ Avaluo: {
452
+ RubroId: string;
453
+ Descripcion: string;
454
+ PlanInversion: number | null;
455
+ Equivalencia: number | null;
456
+ Porcentaje: number | null;
457
+ Justificaciones: string | null;
458
+ HatoInicial?: number | null | undefined;
459
+ PrecioVenta?: number | null | undefined;
460
+ }[];
461
+ Parametros: {
462
+ RubroId: string;
463
+ Descripcion: string;
464
+ Porcentaje: string | null;
465
+ Justificaciones: string | null;
466
+ Tipo: string | null;
467
+ Bandera: string | null;
468
+ }[];
469
+ }>;
470
+ Costos: z.ZodObject<{
471
+ EvaluacionId: z.ZodNumber;
472
+ ActividadEconomicaId: z.ZodNumber;
473
+ PID: z.ZodNumber;
474
+ Conceptos: z.ZodArray<z.ZodObject<{
475
+ IndicadorABM: z.ZodEnum<["N", "M"]>;
476
+ RubroId: z.ZodString;
477
+ Subtipo: z.ZodEnum<["C", "A", "I"]>;
478
+ Descripcion: z.ZodString;
479
+ Unidad: z.ZodString;
480
+ CodigoConcepto: z.ZodString;
481
+ MontoCantidad: z.ZodNumber;
482
+ MontoPrecio: z.ZodNumber;
483
+ }, "strip", z.ZodTypeAny, {
484
+ RubroId: string;
485
+ IndicadorABM: "N" | "M";
486
+ Descripcion: string;
487
+ Unidad: string;
488
+ CodigoConcepto: string;
489
+ Subtipo: "A" | "C" | "I";
490
+ MontoCantidad: number;
491
+ MontoPrecio: number;
492
+ }, {
493
+ RubroId: string;
494
+ IndicadorABM: "N" | "M";
495
+ Descripcion: string;
496
+ Unidad: string;
497
+ CodigoConcepto: string;
498
+ Subtipo: "A" | "C" | "I";
499
+ MontoCantidad: number;
500
+ MontoPrecio: number;
501
+ }>, "many">;
502
+ Comportamiento: z.ZodArray<z.ZodObject<{
503
+ RubroId: z.ZodString;
504
+ Subtipo: z.ZodEnum<["C", "A", "I"]>;
505
+ IndicadorABM: z.ZodEnum<["N", "M"]>;
506
+ Correlativo: z.ZodNumber;
507
+ Monto: z.ZodNumber;
508
+ }, "strip", z.ZodTypeAny, {
509
+ RubroId: string;
510
+ IndicadorABM: "N" | "M";
511
+ Monto: number;
512
+ Correlativo: number;
513
+ Subtipo: "A" | "C" | "I";
514
+ }, {
515
+ RubroId: string;
516
+ IndicadorABM: "N" | "M";
517
+ Monto: number;
518
+ Correlativo: number;
519
+ Subtipo: "A" | "C" | "I";
520
+ }>, "many">;
521
+ }, "strip", z.ZodTypeAny, {
522
+ EvaluacionId: number;
523
+ ActividadEconomicaId: number;
524
+ PID: number;
525
+ Conceptos: {
526
+ RubroId: string;
527
+ IndicadorABM: "N" | "M";
528
+ Descripcion: string;
529
+ Unidad: string;
530
+ CodigoConcepto: string;
531
+ Subtipo: "A" | "C" | "I";
532
+ MontoCantidad: number;
533
+ MontoPrecio: number;
534
+ }[];
535
+ Comportamiento: {
536
+ RubroId: string;
537
+ IndicadorABM: "N" | "M";
538
+ Monto: number;
539
+ Correlativo: number;
540
+ Subtipo: "A" | "C" | "I";
541
+ }[];
542
+ }, {
543
+ EvaluacionId: number;
544
+ ActividadEconomicaId: number;
545
+ PID: number;
546
+ Conceptos: {
547
+ RubroId: string;
548
+ IndicadorABM: "N" | "M";
549
+ Descripcion: string;
550
+ Unidad: string;
551
+ CodigoConcepto: string;
552
+ Subtipo: "A" | "C" | "I";
553
+ MontoCantidad: number;
554
+ MontoPrecio: number;
555
+ }[];
556
+ Comportamiento: {
557
+ RubroId: string;
558
+ IndicadorABM: "N" | "M";
559
+ Monto: number;
560
+ Correlativo: number;
561
+ Subtipo: "A" | "C" | "I";
562
+ }[];
563
+ }>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ Desarrollo: {
566
+ EvaluacionId: number;
567
+ ActividadEconomicaId: number;
568
+ PID: string;
569
+ FechaEvaluacion: string;
570
+ PersonaId: number;
571
+ NombreCompleto: string;
572
+ Municipio: string;
573
+ NombrePropiedad: string;
574
+ TamannoHectareas: number;
575
+ ActividadGanadera: string;
576
+ CantidadProyeccion: number;
577
+ Solicitudes: {
578
+ SolicitudOperacionId: number;
579
+ TipoSolicitudOperacionId: string;
580
+ Monto: string;
581
+ Moneda: string;
582
+ MonedaDesc: string;
583
+ Plazo: string;
584
+ TipoOperacionId: string;
585
+ TipoOperacionDesc: string;
586
+ }[];
587
+ Avaluo: {
588
+ RubroId: string;
589
+ Descripcion: string;
590
+ PlanInversion: number | null;
591
+ Equivalencia: number | null;
592
+ Porcentaje: number | null;
593
+ Justificaciones: string | null;
594
+ HatoInicial?: number | null | undefined;
595
+ PrecioVenta?: number | null | undefined;
596
+ }[];
597
+ Parametros: {
598
+ RubroId: string;
599
+ Descripcion: string;
600
+ Porcentaje: string | null;
601
+ Justificaciones: string | null;
602
+ Tipo: string | null;
603
+ Bandera: string | null;
604
+ }[];
605
+ };
606
+ Auxiliar: {
607
+ EvaluacionId: number;
608
+ ActividadEconomicaId: number;
609
+ PID: number;
610
+ PropiedadesGanaderas: {
611
+ UUID: string;
612
+ IndicadorABM: "A" | "N" | "M" | "B";
613
+ TipoGanadoId: string;
614
+ RazaGanadoId: string;
615
+ Fecha: string;
616
+ TipoDocumentoId: string;
617
+ Rubros: {
618
+ RubroId: string;
619
+ CantidadCabezas: number;
620
+ PesoPromedio: number;
621
+ PrecioCabeza: number;
622
+ PrecioCabezaBalance: number;
623
+ Total?: number | undefined;
624
+ }[];
625
+ PesoAclaracion: string;
626
+ PrecioAclaracion: string;
627
+ Total?: number | undefined;
628
+ TipoGanadoDesc?: string | undefined;
629
+ RazaGanadoDesc?: string | undefined;
630
+ TipoDocumentoDesc?: string | undefined;
631
+ }[];
632
+ HistoricoHato: {
633
+ RubroId: string;
634
+ CantidadCabezas: number;
635
+ PrecioCabeza: number;
636
+ Gestion: number;
637
+ }[];
638
+ Inventario: {
639
+ RubroId: string;
640
+ UUID: string;
641
+ IndicadorABM: "A" | "N" | "M" | "B";
642
+ Descripcion: string;
643
+ Cantidad: number;
644
+ Precio: number;
645
+ }[];
646
+ };
647
+ Costos: {
648
+ EvaluacionId: number;
649
+ ActividadEconomicaId: number;
650
+ PID: number;
651
+ Conceptos: {
652
+ RubroId: string;
653
+ IndicadorABM: "N" | "M";
654
+ Descripcion: string;
655
+ Unidad: string;
656
+ CodigoConcepto: string;
657
+ Subtipo: "A" | "C" | "I";
658
+ MontoCantidad: number;
659
+ MontoPrecio: number;
660
+ }[];
661
+ Comportamiento: {
662
+ RubroId: string;
663
+ IndicadorABM: "N" | "M";
664
+ Monto: number;
665
+ Correlativo: number;
666
+ Subtipo: "A" | "C" | "I";
667
+ }[];
668
+ };
669
+ }, {
670
+ Desarrollo: {
671
+ EvaluacionId: number;
672
+ ActividadEconomicaId: number;
673
+ PID: string;
674
+ FechaEvaluacion: string;
675
+ PersonaId: number;
676
+ NombreCompleto: string;
677
+ Municipio: string;
678
+ NombrePropiedad: string;
679
+ TamannoHectareas: number;
680
+ ActividadGanadera: string;
681
+ CantidadProyeccion: number;
682
+ Solicitudes: {
683
+ SolicitudOperacionId: number;
684
+ TipoSolicitudOperacionId: string;
685
+ Monto: string;
686
+ Moneda: string;
687
+ MonedaDesc: string;
688
+ Plazo: string;
689
+ TipoOperacionId: string;
690
+ TipoOperacionDesc: string;
691
+ }[];
692
+ Avaluo: {
693
+ RubroId: string;
694
+ Descripcion: string;
695
+ PlanInversion: number | null;
696
+ Equivalencia: number | null;
697
+ Porcentaje: number | null;
698
+ Justificaciones: string | null;
699
+ HatoInicial?: number | null | undefined;
700
+ PrecioVenta?: number | null | undefined;
701
+ }[];
702
+ Parametros: {
703
+ RubroId: string;
704
+ Descripcion: string;
705
+ Porcentaje: string | null;
706
+ Justificaciones: string | null;
707
+ Tipo: string | null;
708
+ Bandera: string | null;
709
+ }[];
710
+ };
711
+ Auxiliar: {
712
+ EvaluacionId: number;
713
+ ActividadEconomicaId: number;
714
+ PID: number;
715
+ PropiedadesGanaderas: {
716
+ UUID: string;
717
+ IndicadorABM: "A" | "N" | "M" | "B";
718
+ TipoGanadoId: string;
719
+ RazaGanadoId: string;
720
+ Fecha: string;
721
+ TipoDocumentoId: string;
722
+ Rubros: {
723
+ RubroId: string;
724
+ CantidadCabezas: number;
725
+ PesoPromedio: number;
726
+ PrecioCabeza: number;
727
+ PrecioCabezaBalance: number;
728
+ Total?: number | undefined;
729
+ }[];
730
+ PesoAclaracion: string;
731
+ PrecioAclaracion: string;
732
+ Total?: number | undefined;
733
+ TipoGanadoDesc?: string | undefined;
734
+ RazaGanadoDesc?: string | undefined;
735
+ TipoDocumentoDesc?: string | undefined;
736
+ }[];
737
+ HistoricoHato: {
738
+ RubroId: string;
739
+ CantidadCabezas: number;
740
+ PrecioCabeza: number;
741
+ Gestion: number;
742
+ }[];
743
+ Inventario: {
744
+ RubroId: string;
745
+ UUID: string;
746
+ IndicadorABM: "A" | "N" | "M" | "B";
747
+ Descripcion: string;
748
+ Cantidad: number;
749
+ Precio: number;
750
+ }[];
751
+ };
752
+ Costos: {
753
+ EvaluacionId: number;
754
+ ActividadEconomicaId: number;
755
+ PID: number;
756
+ Conceptos: {
757
+ RubroId: string;
758
+ IndicadorABM: "N" | "M";
759
+ Descripcion: string;
760
+ Unidad: string;
761
+ CodigoConcepto: string;
762
+ Subtipo: "A" | "C" | "I";
763
+ MontoCantidad: number;
764
+ MontoPrecio: number;
765
+ }[];
766
+ Comportamiento: {
767
+ RubroId: string;
768
+ IndicadorABM: "N" | "M";
769
+ Monto: number;
770
+ Correlativo: number;
771
+ Subtipo: "A" | "C" | "I";
772
+ }[];
773
+ };
774
+ }>;
775
+ export type CalcCostosType = z.infer<typeof CalcCostos>;
776
+ export {};
@@ -2,18 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CostosPecSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const auxiliar_schema_1 = require("./auxiliar.schema");
6
+ const desarrolloResponse_Schema_1 = require("./desarrolloResponse.Schema");
5
7
  const Comportamiento = zod_1.z.object({
6
8
  RubroId: zod_1.z.string().max(50),
9
+ Subtipo: zod_1.z.enum(['C', 'A', 'I']),
7
10
  IndicadorABM: zod_1.z.enum(['N', 'M']),
8
- Unidad: zod_1.z.string().max(50),
9
- CicloId: zod_1.z.string().max(20),
11
+ Correlativo: zod_1.z.number(),
12
+ Monto: zod_1.z.number(),
10
13
  });
11
14
  const Conceptos = zod_1.z.object({
12
15
  IndicadorABM: zod_1.z.enum(['N', 'M']),
13
16
  RubroId: zod_1.z.string().max(50),
14
- Subtipo: zod_1.z.string().max(50),
15
- Correlativo: zod_1.z.number(),
16
- Monto: zod_1.z.number(),
17
+ Subtipo: zod_1.z.enum(['C', 'A', 'I']),
18
+ Descripcion: zod_1.z.string().max(50),
19
+ Unidad: zod_1.z.string().max(50),
20
+ CodigoConcepto: zod_1.z.string().max(30),
21
+ MontoCantidad: zod_1.z.number(),
22
+ MontoPrecio: zod_1.z.number(),
17
23
  });
18
24
  exports.CostosPecSchema = zod_1.z.object({
19
25
  EvaluacionId: zod_1.z.number(),
@@ -22,11 +28,8 @@ exports.CostosPecSchema = zod_1.z.object({
22
28
  Conceptos: zod_1.z.array(Conceptos),
23
29
  Comportamiento: zod_1.z.array(Comportamiento),
24
30
  });
25
- // const CalcVentas=z.object({
26
- // Auxiliar: AuxiliarSchema,
27
- // Desarrollo: DesarrolloSchema,
28
- // Ventas: VentasPecSchema,
29
- //
30
- // })
31
- //
32
- // export type CalcVentasType = z.infer<typeof CalcVentas>;
31
+ const CalcCostos = zod_1.z.object({
32
+ Auxiliar: auxiliar_schema_1.AuxiliarSchema,
33
+ Desarrollo: desarrolloResponse_Schema_1.DesarrolloSchema,
34
+ Costos: exports.CostosPecSchema,
35
+ });
@@ -18,6 +18,7 @@ export declare const RUBROS: {
18
18
  ACT_PEC_M2536: string;
19
19
  ACT_PEC_M36: string;
20
20
  ACT_PEC_NOV: string;
21
+ ACT_PEC_SALDO: string;
21
22
  };
22
- export declare const getOrden: (rubro: string) => 3 | 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | undefined;
23
+ export declare const getOrden: (rubro: string) => 3 | 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
23
24
  export declare const getMap: (array: any[], key: string) => any;
@@ -37,7 +37,8 @@ exports.RUBROS = {
37
37
  ACT_PEC_M1324: "ACT_PEC_M1324",
38
38
  ACT_PEC_M2536: "ACT_PEC_M2536",
39
39
  ACT_PEC_M36: "ACT_PEC_M36",
40
- ACT_PEC_NOV: "ACT_PEC_NOV"
40
+ ACT_PEC_NOV: "ACT_PEC_NOV",
41
+ ACT_PEC_SALDO: 'ACT_PEC_SALDO'
41
42
  };
42
43
  const getOrden = (rubro) => {
43
44
  if (rubro == exports.RUBROS.ACT_PEC_M36)
@@ -58,6 +59,8 @@ const getOrden = (rubro) => {
58
59
  return 8;
59
60
  if (rubro == exports.RUBROS.ACT_PEC_NOV)
60
61
  return 9;
62
+ if (rubro == exports.RUBROS.ACT_PEC_SALDO)
63
+ return 10;
61
64
  };
62
65
  exports.getOrden = getOrden;
63
66
  const getMap = (array, key) => {
@@ -0,0 +1,2 @@
1
+ export declare const calcularComportamiento: (conceptosCalc: any, comportamiento: any) => unknown[];
2
+ export declare const calcularCostos: (comportamientoCalc: any) => unknown[];
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calcularCostos = exports.calcularComportamiento = void 0;
4
+ const Constantes_1 = require("../Constantes");
5
+ const calcularComportamiento = (conceptosCalc, comportamiento) => {
6
+ const totales = conceptosCalc.reduce((acc, item) => {
7
+ if (item.CodigoConcepto == 'TOTAL_GRUPO') {
8
+ acc.set(item.Subtipo, item);
9
+ }
10
+ return acc;
11
+ }, new Map());
12
+ const result = comportamiento.reduce((acc, item) => {
13
+ const key = `${item.Subtipo}_${item.RubroId}`;
14
+ if (!acc.has(key)) {
15
+ let totalCostoCampanna = 0;
16
+ if (totales.has(item.Subtipo)) {
17
+ totalCostoCampanna = totales.get(item.Subtipo)[item.RubroId];
18
+ }
19
+ acc.set(key, {
20
+ RubroId: item.RubroId,
21
+ Descripcion: item.Descripcion,
22
+ Total: 0,
23
+ Subtipo: item.Subtipo,
24
+ CostoCampanna: totalCostoCampanna,
25
+ Orden: (0, Constantes_1.getOrden)(item.RubroId)
26
+ });
27
+ }
28
+ acc.get(key)[`C-${item.Correlativo}`] = parseFloat(item.Monto);
29
+ acc.get(key)[`Desc-${item.Correlativo}`] = item.CorrelativoDesc;
30
+ acc.get(key).Total += parseFloat(item.Monto);
31
+ return acc;
32
+ }, new Map());
33
+ return Array.from(result.values());
34
+ };
35
+ exports.calcularComportamiento = calcularComportamiento;
36
+ const calcularCostos = (comportamientoCalc) => {
37
+ const TOTAL = 'TOT01';
38
+ const result = comportamientoCalc.reduce((acc, item) => {
39
+ if (!acc.has(TOTAL)) {
40
+ acc.set(TOTAL, {
41
+ RubroId: TOTAL,
42
+ Descripcion: 'TOTAL',
43
+ Total: 0,
44
+ });
45
+ }
46
+ if (!acc.has(item.RubroId)) {
47
+ acc.set(item.RubroId, {
48
+ RubroId: item.RubroId,
49
+ Descripcion: item.Descripcion,
50
+ Total: 0,
51
+ });
52
+ }
53
+ for (const key in item) {
54
+ if (key.startsWith('C-')) {
55
+ if (!Object.keys(acc.get(item.RubroId)).includes(key))
56
+ acc.get(item.RubroId)[key] = 0;
57
+ if (!Object.keys(acc.get(TOTAL)).includes(key))
58
+ acc.get(TOTAL)[key] = 0;
59
+ const costo = item[key] * item.CostoCampanna / 100;
60
+ acc.get(item.RubroId).Total += costo;
61
+ acc.get(item.RubroId)[key] += costo;
62
+ acc.get(TOTAL)[key] += costo;
63
+ acc.get(TOTAL).Total += costo;
64
+ }
65
+ if (key.startsWith('Desc-')) {
66
+ acc.get(item.RubroId)[key] = item[key];
67
+ acc.get(TOTAL)[key] = item[key];
68
+ }
69
+ }
70
+ // acc[item.RubroId] = item.Total
71
+ return acc;
72
+ }, new Map());
73
+ return Array.from(result.values());
74
+ };
75
+ exports.calcularCostos = calcularCostos;
@@ -0,0 +1 @@
1
+ export declare const calcular: (conceptos: any, configuracion: any, auxiliarPrimitivo: any, desarrolloCalc: any) => any[];
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.calcular = void 0;
4
+ const Constantes_1 = require("../Constantes");
5
+ const getPrimeraFila = (configuracion, auxiliarPrimitivo, desarrolloCalc) => {
6
+ const gestionMaxima = Math.max(...auxiliarPrimitivo.HistoricoHato.map((item) => item.Gestion));
7
+ const historicoHato = auxiliarPrimitivo.HistoricoHato.filter((item) => item.Gestion == gestionMaxima);
8
+ const hatoMap = (0, Constantes_1.getMap)(historicoHato, 'RubroId');
9
+ let result = configuracion.reduce((acc, item) => {
10
+ if (!Object.keys(acc).includes('CodigoConcepto')) {
11
+ acc.CodigoConcepto = 'ROOT';
12
+ acc.Descripcion = 'Detalle';
13
+ acc.Subtipo = 'X';
14
+ acc.SubtipoDesc = 'Detalle';
15
+ acc.Unidad = 'Unidad';
16
+ acc.Correlativo = 0;
17
+ acc.CorrelativoDesc = '';
18
+ acc.Total = 0;
19
+ acc.TotalPlusHato = 0;
20
+ }
21
+ let value = 0;
22
+ if (item.RubroId !== 'ACT_PEC_SALDO') {
23
+ value = parseFloat(hatoMap.get(item.RubroId).CantidadCabezas);
24
+ acc.Total += value;
25
+ }
26
+ else {
27
+ const proyeccion = desarrolloCalc.Proyeccion.find((item) => item.RubroId == 'TOT01');
28
+ if (proyeccion != null)
29
+ value = proyeccion['C-0'];
30
+ }
31
+ acc[item.RubroId] = value;
32
+ acc.TotalPlusHato += value;
33
+ return acc;
34
+ }, {});
35
+ return [result];
36
+ };
37
+ const getFila = (configuracion, correlativo = 0) => {
38
+ return configuracion.reduce((acc, item) => {
39
+ if (!Object.keys(acc).includes('CodigoConcepto')) {
40
+ acc.CodigoConcepto = '';
41
+ acc.Subtipo = '';
42
+ acc.SubtipoDesc = 'Detalle';
43
+ acc.Unidad = 'Unidad';
44
+ acc.Correlativo = correlativo;
45
+ acc.CorrelativoDesc = '';
46
+ acc.Descripcion = '';
47
+ acc.Total = 0;
48
+ acc.TotalPlusHato = 0;
49
+ }
50
+ acc[item.RubroId] = 0;
51
+ return acc;
52
+ }, {});
53
+ };
54
+ const getGrupoCalculado = (grupo, configuracion) => {
55
+ let result = new Map();
56
+ result.set(1, getFila(configuracion, 1));
57
+ result.set(2, getFila(configuracion, 2));
58
+ result.set(3, getFila(configuracion, 3));
59
+ grupo.forEach((item) => {
60
+ const monto = parseFloat(item.Monto);
61
+ result.get(item.Correlativo).CodigoConcepto = item.Grupo;
62
+ result.get(item.Correlativo).Subtipo = item.Subtipo;
63
+ result.get(item.Correlativo).Descripcion = item.Descripcion;
64
+ result.get(item.Correlativo).SubtipoDesc = item.SubtipoDesc;
65
+ result.get(item.Correlativo).Unidad = item.Descripcion2;
66
+ result.get(item.Correlativo).CorrelativoDesc = item.CorrelativoDesc;
67
+ result.get(item.Correlativo)[item.RubroId] = monto;
68
+ if (item.RubroId !== 'ACT_PEC_SALDO') {
69
+ result.get(item.Correlativo).Total += monto;
70
+ }
71
+ result.get(item.Correlativo).TotalPlusHato += monto;
72
+ });
73
+ result.get(3).CodigoConcepto = grupo[0].Grupo;
74
+ result.get(3).Subtipo = grupo[0].Subtipo;
75
+ result.get(3).SubtipoDesc = grupo[0].SubtipoDesc;
76
+ result.get(3).Unidad = '';
77
+ for (const config of configuracion) {
78
+ const subtotal = result.get(1)[config.RubroId] * result.get(2)[config.RubroId];
79
+ result.get(3)[config.RubroId] = subtotal;
80
+ if (config.RubroId != Constantes_1.RUBROS.ACT_PEC_SALDO)
81
+ result.get(3).Total += subtotal;
82
+ result.get(3).TotalPlusHato += subtotal;
83
+ }
84
+ return result;
85
+ };
86
+ const calcular = (conceptos, configuracion, auxiliarPrimitivo, desarrolloCalc) => {
87
+ const root = getPrimeraFila(configuracion, auxiliarPrimitivo, desarrolloCalc);
88
+ const agrupados = conceptos.reduce((acc, item) => {
89
+ if (!acc.has(item.Grupo))
90
+ acc.set(item.Grupo, []);
91
+ acc.get(item.Grupo).push(item);
92
+ return acc;
93
+ }, new Map());
94
+ let result = [];
95
+ let subtipos = new Map();
96
+ //@ts-ignore
97
+ for (const [key, value] of agrupados) {
98
+ const grupoCalc = getGrupoCalculado(agrupados.get(key), configuracion);
99
+ const subtipo = grupoCalc.get(3).Subtipo;
100
+ if (!subtipos.has(subtipo))
101
+ subtipos.set(subtipo, getFila(configuracion, 4));
102
+ subtipos.get(subtipo).CodigoConcepto = 'TOTAL_GRUPO';
103
+ subtipos.get(subtipo).Subtipo = grupoCalc.get(3).Subtipo;
104
+ subtipos.get(subtipo).SubtipoDesc = grupoCalc.get(3).SubtipoDesc;
105
+ subtipos.get(subtipo).Descripcion = grupoCalc.get(3).SubtipoDesc;
106
+ subtipos.get(subtipo).Unidad = grupoCalc.get(3).Unidad;
107
+ configuracion.forEach((item) => {
108
+ subtipos.get(subtipo)[item.RubroId] += grupoCalc.get(3)[item.RubroId];
109
+ });
110
+ subtipos.get(subtipo).Total += grupoCalc.get(3).Total;
111
+ subtipos.get(subtipo).TotalPlusHato += grupoCalc.get(3).TotalPlusHato;
112
+ result = [...result, ...Array.from(grupoCalc.values())];
113
+ }
114
+ return [...root, ...result, ...Array.from(subtipos.values())];
115
+ };
116
+ exports.calcular = calcular;
@@ -0,0 +1,4 @@
1
+ import { Strategy } from "../../strategy.interface";
2
+ export default class CostosPec implements Strategy {
3
+ execute(data: any): any;
4
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const desarrollo_strategy_1 = __importDefault(require("./desarrollo.strategy"));
30
+ const conceptosCalc = __importStar(require("./costos.detail/conceptosCalc"));
31
+ //@ts-ignore
32
+ const comportamientoCalc = __importStar(require("./costos.detail/comportamientoCalc"));
33
+ class CostosPec {
34
+ execute(data) {
35
+ let result = {};
36
+ const dataDesarrollo = {
37
+ Desarrollo: data.Desarrollo,
38
+ Auxiliar: data.Auxiliar
39
+ };
40
+ const desarrolloCalc = new desarrollo_strategy_1.default().execute(dataDesarrollo);
41
+ result.Conceptos = conceptosCalc.calcular(data.Costos.Conceptos, data.Costos.Configuracion, data.Auxiliar, desarrolloCalc);
42
+ result.Comportamiento =
43
+ comportamientoCalc.calcularComportamiento(result.Conceptos, data.Costos.Comportamiento);
44
+ result.Calculo = comportamientoCalc.calcularCostos(result.Comportamiento);
45
+ return result;
46
+ }
47
+ }
48
+ exports.default = CostosPec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdpformulas",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",