sigo-package 1.2.41 → 1.2.43

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
@@ -111,6 +111,7 @@ interface IMateriales {
111
111
  stock: 'Personal' | 'Almacen';
112
112
  ID: number;
113
113
  lote: string;
114
+ CodigoLlave: string;
114
115
  }
115
116
 
116
117
  declare const mapaMOMaterialAL04: Map<string, IMOAndMaterialsRules>;
@@ -329,7 +330,7 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
329
330
 
330
331
  declare function checkAndBuildMaterialsFromStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], key: string, Controller: any): IMateriales[];
331
332
 
332
- declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[], dataStockAlmacen: Pick<StockAlmacenENTITY, 'ID_StockAlmacen' | 'Item' | 'Lote'>[], Controller: any): {
333
+ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote' | 'CodigoLlave'>[], dataStockAlmacen: Pick<StockAlmacenENTITY, 'ID_StockAlmacen' | 'Item' | 'Lote' | 'CodigoLlave'>[], Controller: any): {
333
334
  keyFila: string;
334
335
  key: string;
335
336
  cantidad: number;
@@ -338,6 +339,7 @@ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsR
338
339
  stock: "Personal" | "Almacen";
339
340
  ID: number;
340
341
  lote: string;
342
+ CodigoLlave: string;
341
343
  id: string;
342
344
  text: string;
343
345
  }[];
package/dist/index.d.ts CHANGED
@@ -111,6 +111,7 @@ interface IMateriales {
111
111
  stock: 'Personal' | 'Almacen';
112
112
  ID: number;
113
113
  lote: string;
114
+ CodigoLlave: string;
114
115
  }
115
116
 
116
117
  declare const mapaMOMaterialAL04: Map<string, IMOAndMaterialsRules>;
@@ -329,7 +330,7 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
329
330
 
330
331
  declare function checkAndBuildMaterialsFromStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], key: string, Controller: any): IMateriales[];
331
332
 
332
- declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[], dataStockAlmacen: Pick<StockAlmacenENTITY, 'ID_StockAlmacen' | 'Item' | 'Lote'>[], Controller: any): {
333
+ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote' | 'CodigoLlave'>[], dataStockAlmacen: Pick<StockAlmacenENTITY, 'ID_StockAlmacen' | 'Item' | 'Lote' | 'CodigoLlave'>[], Controller: any): {
333
334
  keyFila: string;
334
335
  key: string;
335
336
  cantidad: number;
@@ -338,6 +339,7 @@ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsR
338
339
  stock: "Personal" | "Almacen";
339
340
  ID: number;
340
341
  lote: string;
342
+ CodigoLlave: string;
341
343
  id: string;
342
344
  text: string;
343
345
  }[];
package/dist/index.js CHANGED
@@ -4375,7 +4375,7 @@ function buildRulesMaterial() {
4375
4375
  ManoObra: []
4376
4376
  }
4377
4377
  ],
4378
- ManoObra: [
4378
+ ManoObra: el.CodigoMO === "" ? [] : [
4379
4379
  {
4380
4380
  Cantidad: 0,
4381
4381
  Codigo: el.CodigoMO,
@@ -5969,7 +5969,8 @@ function checkAndBuildMaterialsFromStock(Materiales, dataStockPersonal, dataStoc
5969
5969
  lote: stock.Lote,
5970
5970
  stock: _stock,
5971
5971
  ID,
5972
- keyFila: `${ID}${_stock}`
5972
+ keyFila: `${ID}${_stock}`,
5973
+ CodigoLlave: stock.CodigoLlave
5973
5974
  });
5974
5975
  break;
5975
5976
  }
@@ -6001,7 +6002,8 @@ function buildDataMaterialsRule(Materiales, dataStockPersonal, dataStockAlmacen,
6001
6002
  material,
6002
6003
  stock,
6003
6004
  ID,
6004
- keyFila: `${ID}${stock}`
6005
+ keyFila: `${ID}${stock}`,
6006
+ CodigoLlave: e.CodigoLlave
6005
6007
  });
6006
6008
  });
6007
6009
  });
package/dist/index.mjs CHANGED
@@ -4243,7 +4243,7 @@ function buildRulesMaterial() {
4243
4243
  ManoObra: []
4244
4244
  }
4245
4245
  ],
4246
- ManoObra: [
4246
+ ManoObra: el.CodigoMO === "" ? [] : [
4247
4247
  {
4248
4248
  Cantidad: 0,
4249
4249
  Codigo: el.CodigoMO,
@@ -5837,7 +5837,8 @@ function checkAndBuildMaterialsFromStock(Materiales, dataStockPersonal, dataStoc
5837
5837
  lote: stock.Lote,
5838
5838
  stock: _stock,
5839
5839
  ID,
5840
- keyFila: `${ID}${_stock}`
5840
+ keyFila: `${ID}${_stock}`,
5841
+ CodigoLlave: stock.CodigoLlave
5841
5842
  });
5842
5843
  break;
5843
5844
  }
@@ -5869,7 +5870,8 @@ function buildDataMaterialsRule(Materiales, dataStockPersonal, dataStockAlmacen,
5869
5870
  material,
5870
5871
  stock,
5871
5872
  ID,
5872
- keyFila: `${ID}${stock}`
5873
+ keyFila: `${ID}${stock}`,
5874
+ CodigoLlave: e.CodigoLlave
5873
5875
  });
5874
5876
  });
5875
5877
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.41",
3
+ "version": "1.2.43",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",