sigo-package 1.2.1 → 1.2.2

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/dist/index.d.mts CHANGED
@@ -263,7 +263,7 @@ type ReglaSoplado = {
263
263
  declare const mapaReglaSopladoTroncal: Map<string, ReglaSoplado[]>;
264
264
  declare const mapaReglaSopladoClientes: Map<string, ReglaSoplado[]>;
265
265
 
266
- declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
266
+ declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
267
267
 
268
268
  declare const CalcularResumenLiquidaciones: Funcion$1;
269
269
  interface Funcion$1 {
package/dist/index.d.ts CHANGED
@@ -263,7 +263,7 @@ type ReglaSoplado = {
263
263
  declare const mapaReglaSopladoTroncal: Map<string, ReglaSoplado[]>;
264
264
  declare const mapaReglaSopladoClientes: Map<string, ReglaSoplado[]>;
265
265
 
266
- declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
266
+ declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
267
267
 
268
268
  declare const CalcularResumenLiquidaciones: Funcion$1;
269
269
  interface Funcion$1 {
package/dist/index.js CHANGED
@@ -5308,6 +5308,7 @@ function updatePriceContractorMO(valorizaciones, priceContractorMO) {
5308
5308
  } else {
5309
5309
  valorizacion.PrecioContrata = precioContratista[0].Precio;
5310
5310
  }
5311
+ valorizacion.TotalContrata = valorizacion.PrecioContrata * valorizacion.Cantidad;
5311
5312
  }
5312
5313
  }
5313
5314
  __name(updatePriceContractorMO, "updatePriceContractorMO");
package/dist/index.mjs CHANGED
@@ -5211,6 +5211,7 @@ function updatePriceContractorMO(valorizaciones, priceContractorMO) {
5211
5211
  } else {
5212
5212
  valorizacion.PrecioContrata = precioContratista[0].Precio;
5213
5213
  }
5214
+ valorizacion.TotalContrata = valorizacion.PrecioContrata * valorizacion.Cantidad;
5214
5215
  }
5215
5216
  }
5216
5217
  __name(updatePriceContractorMO, "updatePriceContractorMO");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",