bdpformulas 1.0.95 → 1.0.96
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.
|
@@ -269,6 +269,32 @@ class FlujoConstructor {
|
|
|
269
269
|
filter.forEach((item) => {
|
|
270
270
|
const key = `${item.RubroId}_CLONE_${item.UUID}`;
|
|
271
271
|
const UUID = `CLONE_${item.UUID}`;
|
|
272
|
+
// 12/08/2025 ROLANDO: EDICION PARA LOS RUBROS 61001 Y 73000 GASTOS FINANCIEROS
|
|
273
|
+
let totalMensual = 0;
|
|
274
|
+
for (let i = 1; i <= this.rango; i++) {
|
|
275
|
+
totalMensual += (0, utils_1.ourParseFloat)(item[`Monto${i}`] || 0);
|
|
276
|
+
}
|
|
277
|
+
const existingClone = this.array.find((el) => el.UUID === UUID);
|
|
278
|
+
if (item.RubroId === 'ACT_CNFL_61001' ||
|
|
279
|
+
(item.RubroId === 'ACT_CNFL_73000' && existingClone)) {
|
|
280
|
+
const clone = {
|
|
281
|
+
...existingClone,
|
|
282
|
+
Comprar: item.Comprar,
|
|
283
|
+
Operacion: item.Operacion,
|
|
284
|
+
Monto1: totalMensual
|
|
285
|
+
};
|
|
286
|
+
let nuevoTotal = totalMensual;
|
|
287
|
+
for (let i = 2; i <= this.rango; i++) {
|
|
288
|
+
nuevoTotal += (0, utils_1.ourParseFloat)(existingClone[`Monto${i}`] || 0);
|
|
289
|
+
}
|
|
290
|
+
clone.MontoTotal = nuevoTotal;
|
|
291
|
+
const index = this.array.findIndex((el) => el.UUID === UUID);
|
|
292
|
+
if (index >= 0)
|
|
293
|
+
this.array[index] = clone;
|
|
294
|
+
this.mapObject.set(key, clone);
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
// FIN EDICION
|
|
272
298
|
const clone = {
|
|
273
299
|
...item,
|
|
274
300
|
UUID
|