sigesp 0.9.10-20221210 → 0.9.12-20221217
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/bundles/sigesp.umd.js +89 -39
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Banco.js +1 -1
- package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
- package/esm2015/lib/core/interfaces/ComprobantePresupuestario.js +1 -1
- package/esm2015/lib/core/interfaces/Servicios.js +1 -1
- package/esm2015/lib/core/interfaces/Tributos.js +1 -1
- package/esm2015/lib/core/models/CFG/locations.model.js +12 -9
- package/esm2015/lib/core/models/SCB/bank.model.js +25 -19
- package/esm2015/lib/core/models/SCG/centroCosto.model.js +6 -1
- package/esm2015/lib/core/models/SNO/MPersonal.model.js +3 -1
- package/esm2015/lib/core/models/SOC/charge.model.js +4 -1
- package/esm2015/lib/core/models/SOC/clause.model.js +6 -3
- package/esm2015/lib/core/models/SOC/clauseModality.model.js +6 -3
- package/esm2015/lib/core/models/SOC/configuracionSOC.model.js +4 -1
- package/esm2015/lib/core/models/SOC/service.model.js +7 -4
- package/esm2015/lib/core/models/SOC/serviceCharge.model.js +7 -4
- package/esm2015/lib/core/models/SOC/serviceType.model.js +8 -2
- package/esm2015/lib/core/models/SPG/comprobantePresupuestario.model.js +5 -1
- package/esm2015/lib/core/models/STB/deduction.model.js +7 -1
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +89 -39
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Banco.d.ts +20 -0
- package/lib/core/interfaces/CentroCosto.d.ts +2 -0
- package/lib/core/interfaces/ComprobantePresupuestario.d.ts +2 -0
- package/lib/core/interfaces/Servicios.d.ts +7 -0
- package/lib/core/interfaces/Tributos.d.ts +3 -0
- package/lib/core/models/CFG/locations.model.d.ts +6 -6
- package/lib/core/models/SCB/bank.model.d.ts +3 -1
- package/lib/core/models/SCG/centroCosto.model.d.ts +2 -0
- package/lib/core/models/SOC/charge.model.d.ts +1 -0
- package/lib/core/models/SOC/clause.model.d.ts +1 -0
- package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
- package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
- package/lib/core/models/SOC/service.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceType.model.d.ts +2 -0
- package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +2 -0
- package/lib/core/models/STB/deduction.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +2 -2
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -1201,9 +1201,14 @@ class MAllStructure {
|
|
|
1201
1201
|
|
|
1202
1202
|
class MCentroCosto {
|
|
1203
1203
|
constructor(centroCosto) {
|
|
1204
|
+
this.idEmpresa = 0;
|
|
1205
|
+
this.idEnterprise = 0;
|
|
1206
|
+
this.idEmpresa = +centroCosto.id_empresa;
|
|
1207
|
+
this.idEnterprise = +centroCosto.id_enterprise;
|
|
1204
1208
|
this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
|
|
1205
1209
|
this.denominacion = centroCosto.denominacion;
|
|
1206
1210
|
}
|
|
1211
|
+
;
|
|
1207
1212
|
}
|
|
1208
1213
|
|
|
1209
1214
|
class MFuenteFinanciamiento {
|
|
@@ -1563,7 +1568,9 @@ class MSistema {
|
|
|
1563
1568
|
|
|
1564
1569
|
class MComprobantePresupuestarioEgresos {
|
|
1565
1570
|
constructor(comprobante) {
|
|
1571
|
+
this.idEnterprise = 0;
|
|
1566
1572
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
1573
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
1567
1574
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
1568
1575
|
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
1569
1576
|
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
@@ -1586,7 +1593,9 @@ class MComprobantePresupuestarioEgresos {
|
|
|
1586
1593
|
}
|
|
1587
1594
|
class MComprobantePresupuestarioIngresos {
|
|
1588
1595
|
constructor(comprobante) {
|
|
1596
|
+
this.idEnterprise = 0;
|
|
1589
1597
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
1598
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
1590
1599
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
1591
1600
|
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
1592
1601
|
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
@@ -1839,6 +1848,9 @@ class MCountry extends MBasicModel {
|
|
|
1839
1848
|
this.monofi = parseInt(country.monofi);
|
|
1840
1849
|
this.monsec = parseInt(country.monsec);
|
|
1841
1850
|
}
|
|
1851
|
+
else {
|
|
1852
|
+
this.isNew = true;
|
|
1853
|
+
}
|
|
1842
1854
|
}
|
|
1843
1855
|
dataInterface() {
|
|
1844
1856
|
return {
|
|
@@ -1960,7 +1972,7 @@ class MCity extends MBasicModel {
|
|
|
1960
1972
|
}
|
|
1961
1973
|
}
|
|
1962
1974
|
class MCommunity extends MBasicModel {
|
|
1963
|
-
constructor(
|
|
1975
|
+
constructor(e) {
|
|
1964
1976
|
super();
|
|
1965
1977
|
this.code = null;
|
|
1966
1978
|
this.countryCode = null;
|
|
@@ -1968,13 +1980,13 @@ class MCommunity extends MBasicModel {
|
|
|
1968
1980
|
this.municipalityCode = null;
|
|
1969
1981
|
this.parishCode = null;
|
|
1970
1982
|
this.name = null;
|
|
1971
|
-
if (
|
|
1972
|
-
this.code =
|
|
1973
|
-
this.countryCode =
|
|
1974
|
-
this.stateCode =
|
|
1975
|
-
this.municipalityCode =
|
|
1976
|
-
this.parishCode =
|
|
1977
|
-
this.name =
|
|
1983
|
+
if (e) {
|
|
1984
|
+
this.code = e.codcom.trim();
|
|
1985
|
+
this.countryCode = e.codpai.trim();
|
|
1986
|
+
this.stateCode = e.codest.trim();
|
|
1987
|
+
this.municipalityCode = e.codmun.trim();
|
|
1988
|
+
this.parishCode = e.codpar.trim();
|
|
1989
|
+
this.name = e.descom.trim();
|
|
1978
1990
|
}
|
|
1979
1991
|
else {
|
|
1980
1992
|
this.isNew = true;
|
|
@@ -2165,8 +2177,9 @@ class MSigecofBank extends MBasicModel {
|
|
|
2165
2177
|
class MBank extends MBasicModel {
|
|
2166
2178
|
constructor(bank) {
|
|
2167
2179
|
super();
|
|
2168
|
-
this.idEmpresa =
|
|
2169
|
-
this.id =
|
|
2180
|
+
this.idEmpresa = 0;
|
|
2181
|
+
this.id = 0;
|
|
2182
|
+
this.idEnterprise = 0;
|
|
2170
2183
|
this.name = null;
|
|
2171
2184
|
this.address = null;
|
|
2172
2185
|
this.manager = null;
|
|
@@ -2178,9 +2191,10 @@ class MBank extends MBasicModel {
|
|
|
2178
2191
|
this.swiftCode = null;
|
|
2179
2192
|
this.code = null;
|
|
2180
2193
|
this.email = null;
|
|
2181
|
-
this.enableBox =
|
|
2194
|
+
this.enableBox = false;
|
|
2182
2195
|
if (bank) {
|
|
2183
2196
|
this.idEmpresa = parseInt(bank.id_empresa);
|
|
2197
|
+
this.idEnterprise = +bank.id_enterprise;
|
|
2184
2198
|
this.id = parseInt(bank.id_banco);
|
|
2185
2199
|
this.name = bank.nomban;
|
|
2186
2200
|
this.address = bank.dirban;
|
|
@@ -2199,6 +2213,7 @@ class MBank extends MBasicModel {
|
|
|
2199
2213
|
dataInterface() {
|
|
2200
2214
|
return {
|
|
2201
2215
|
id_empresa: this.idEmpresa.toString(),
|
|
2216
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2202
2217
|
id_banco: this.id.toString(),
|
|
2203
2218
|
codban: this.code,
|
|
2204
2219
|
nomban: this.name,
|
|
@@ -2264,23 +2279,25 @@ class MAgenciaBanco extends MBasicModel {
|
|
|
2264
2279
|
class MCuentaBanco extends MBasicModel {
|
|
2265
2280
|
constructor(cb) {
|
|
2266
2281
|
super();
|
|
2267
|
-
this.idCuentaBanco =
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2271
|
-
this.
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
this.
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2279
|
-
this.
|
|
2280
|
-
this.
|
|
2281
|
-
this.
|
|
2282
|
+
this.idCuentaBanco = 0;
|
|
2283
|
+
this.idEnterprise = 0;
|
|
2284
|
+
this.idEmpresa = 0;
|
|
2285
|
+
this.idBanco = 0;
|
|
2286
|
+
this.idTipoCuenta = 0;
|
|
2287
|
+
this.cuentaBanco = '';
|
|
2288
|
+
this.cuentaExtendida = '';
|
|
2289
|
+
this.denominacionCuenta = '';
|
|
2290
|
+
this.cuentaContable = '';
|
|
2291
|
+
this.fechaApertura = '1900-01-01';
|
|
2292
|
+
this.fechaCierre = '1900-01-01';
|
|
2293
|
+
this.estatus = 0;
|
|
2294
|
+
this.fechaUltimaConciliacion = '1900-01-01';
|
|
2295
|
+
this.denomCuentaContable = '';
|
|
2296
|
+
this.nombrebanco = '';
|
|
2297
|
+
this.nombretipocta = '';
|
|
2282
2298
|
if (cb) {
|
|
2283
2299
|
this.idCuentaBanco = parseInt(cb.id_ctabanco);
|
|
2300
|
+
this.idEnterprise = +cb.id_enterprise;
|
|
2284
2301
|
this.idEmpresa = parseInt(cb.id_empresa);
|
|
2285
2302
|
this.idBanco = parseInt(cb.id_banco);
|
|
2286
2303
|
this.idTipoCuenta = parseInt(cb.id_tipocta);
|
|
@@ -2298,6 +2315,7 @@ class MCuentaBanco extends MBasicModel {
|
|
|
2298
2315
|
}
|
|
2299
2316
|
dataInterface() {
|
|
2300
2317
|
return {
|
|
2318
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2301
2319
|
id_ctabanco: this.idCuentaBanco.toString(),
|
|
2302
2320
|
id_empresa: this.idEmpresa.toString(),
|
|
2303
2321
|
id_banco: this.idBanco.toString(),
|
|
@@ -2346,6 +2364,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
2346
2364
|
constructor(config = null) {
|
|
2347
2365
|
super();
|
|
2348
2366
|
this.id = 0;
|
|
2367
|
+
this.idEnterprise = 0;
|
|
2349
2368
|
this.companyId = 0;
|
|
2350
2369
|
this.serviceOrder = 0;
|
|
2351
2370
|
this.purchaseOrder = 0;
|
|
@@ -2360,6 +2379,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
2360
2379
|
this.statusMultiChargeStructure = false;
|
|
2361
2380
|
if (config) {
|
|
2362
2381
|
this.id = parseInt(config.id_soc);
|
|
2382
|
+
this.idEnterprise = +config.id_enterprise;
|
|
2363
2383
|
this.companyId = parseInt(config.id_empresa);
|
|
2364
2384
|
this.serviceOrder = parseInt(config.numordser);
|
|
2365
2385
|
this.purchaseOrder = parseInt(config.numordcom);
|
|
@@ -2382,6 +2402,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
2382
2402
|
return {
|
|
2383
2403
|
id_soc: this.id.toString(),
|
|
2384
2404
|
id_empresa: this.companyId.toString(),
|
|
2405
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2385
2406
|
soc_bienes: this.goods.join(','),
|
|
2386
2407
|
soc_servicios: this.services.join(','),
|
|
2387
2408
|
estapesoc: this.opening ? '1' : '0',
|
|
@@ -2422,6 +2443,7 @@ class MCargo extends MBasicModel {
|
|
|
2422
2443
|
this.isNew = false;
|
|
2423
2444
|
this.error = false;
|
|
2424
2445
|
this.idEmpresa = 0;
|
|
2446
|
+
this.idEnterprise = 0;
|
|
2425
2447
|
this.id = null;
|
|
2426
2448
|
this.codigo = "";
|
|
2427
2449
|
this.denominacion = "";
|
|
@@ -2438,6 +2460,7 @@ class MCargo extends MBasicModel {
|
|
|
2438
2460
|
this.estadoTipoPresupuesto = "E";
|
|
2439
2461
|
if (charge) {
|
|
2440
2462
|
this.idEmpresa = parseInt(charge.id_empresa);
|
|
2463
|
+
this.idEnterprise = +charge.id_enterprise;
|
|
2441
2464
|
this.id = parseInt(charge.id_cargo);
|
|
2442
2465
|
this.codigo = charge.codcar;
|
|
2443
2466
|
this.denominacion = charge.dencar;
|
|
@@ -2459,6 +2482,7 @@ class MCargo extends MBasicModel {
|
|
|
2459
2482
|
}
|
|
2460
2483
|
interface() {
|
|
2461
2484
|
return {
|
|
2485
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2462
2486
|
codcar: this.codigo,
|
|
2463
2487
|
codestpro: this.codigoEstructuraEgreso,
|
|
2464
2488
|
codestprospi: this.codigoEstructuraIngreso,
|
|
@@ -2482,6 +2506,7 @@ class MDeduction extends MBasicModel {
|
|
|
2482
2506
|
constructor(deduction) {
|
|
2483
2507
|
super();
|
|
2484
2508
|
this.companyId = null;
|
|
2509
|
+
this.idEnterprise = 0;
|
|
2485
2510
|
this.id = null;
|
|
2486
2511
|
this.deductionType = null;
|
|
2487
2512
|
this.codeDeduction = "";
|
|
@@ -2494,6 +2519,7 @@ class MDeduction extends MBasicModel {
|
|
|
2494
2519
|
this.id_conret = 0;
|
|
2495
2520
|
if (deduction) {
|
|
2496
2521
|
this.id = parseInt(deduction.id_deduccion);
|
|
2522
|
+
this.idEnterprise = +deduction.id_enterprise;
|
|
2497
2523
|
this.deductionType = parseInt(deduction.id_tipded);
|
|
2498
2524
|
this.description = deduction.dended;
|
|
2499
2525
|
this.formula = deduction.formula;
|
|
@@ -2512,6 +2538,7 @@ class MDeduction extends MBasicModel {
|
|
|
2512
2538
|
dataInterface() {
|
|
2513
2539
|
return {
|
|
2514
2540
|
id_empresa: this.companyId.toString(),
|
|
2541
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2515
2542
|
id_deduccion: this.id.toString(),
|
|
2516
2543
|
codded: this.codeDeduction,
|
|
2517
2544
|
id_tipded: this.id.toString(),
|
|
@@ -2529,12 +2556,14 @@ class MConceptoRetencion extends MBasicModel {
|
|
|
2529
2556
|
constructor(concepto) {
|
|
2530
2557
|
super();
|
|
2531
2558
|
this.idEmpresa = 0;
|
|
2559
|
+
this.idEnterprise = 0;
|
|
2532
2560
|
this.idConceptoRetencion = 0;
|
|
2533
2561
|
this.codigoConceptoRetencion = '';
|
|
2534
2562
|
this.descripcionActividad = '';
|
|
2535
2563
|
this.observacionConceptoRetencion = '';
|
|
2536
2564
|
if (concepto) {
|
|
2537
2565
|
this.idEmpresa = parseInt(concepto.id_empresa);
|
|
2566
|
+
this.idEnterprise = +concepto.id_enterprise;
|
|
2538
2567
|
this.idConceptoRetencion = parseInt(concepto.id_conret);
|
|
2539
2568
|
this.codigoConceptoRetencion = concepto.codconret;
|
|
2540
2569
|
this.descripcionActividad = concepto.desact;
|
|
@@ -2547,6 +2576,7 @@ class MConceptoRetencion extends MBasicModel {
|
|
|
2547
2576
|
dataInterface() {
|
|
2548
2577
|
return {
|
|
2549
2578
|
id_empresa: this.idEmpresa.toString(),
|
|
2579
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2550
2580
|
id_conret: this.idConceptoRetencion.toString(),
|
|
2551
2581
|
codconret: this.codigoConceptoRetencion,
|
|
2552
2582
|
desact: this.descripcionActividad,
|
|
@@ -2640,13 +2670,15 @@ class MComponent extends MBasicModel {
|
|
|
2640
2670
|
class MServiceCharge extends MBasicModel {
|
|
2641
2671
|
constructor(ser) {
|
|
2642
2672
|
super();
|
|
2643
|
-
this.companyId =
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2673
|
+
this.companyId = 0;
|
|
2674
|
+
this.idEnterprise = 0;
|
|
2675
|
+
this.id = 0;
|
|
2676
|
+
this.serviceId = 0;
|
|
2646
2677
|
this.denomination = '';
|
|
2647
2678
|
this.code = '';
|
|
2648
2679
|
this.status = false;
|
|
2649
2680
|
if (ser) {
|
|
2681
|
+
this.idEnterprise = +ser.id_enterprise;
|
|
2650
2682
|
this.companyId = parseInt(ser.id_empresa);
|
|
2651
2683
|
this.id = parseInt(ser.id_cargo);
|
|
2652
2684
|
this.serviceId = parseInt(ser.id_servicio);
|
|
@@ -2660,6 +2692,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
2660
2692
|
}
|
|
2661
2693
|
interface() {
|
|
2662
2694
|
return {
|
|
2695
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2663
2696
|
id_empresa: this.companyId.toString(),
|
|
2664
2697
|
id_cargo: this.id.toString(),
|
|
2665
2698
|
id_servicio: this.serviceId.toString(),
|
|
@@ -4541,6 +4574,8 @@ class MPersonal extends MBasicModel {
|
|
|
4541
4574
|
else if (this.idHora > 0) {
|
|
4542
4575
|
this.descripcionHorario = p.horini + '-' + p.horfin;
|
|
4543
4576
|
}
|
|
4577
|
+
this.descripcionPuestoTrabajo = p.despuetra;
|
|
4578
|
+
this.codigoPuestoTrabajo = p.codpuetra;
|
|
4544
4579
|
}
|
|
4545
4580
|
else {
|
|
4546
4581
|
this.isNew = true;
|
|
@@ -6323,8 +6358,8 @@ class SigespService {
|
|
|
6323
6358
|
* @param pais: Codigo del pais
|
|
6324
6359
|
|
|
6325
6360
|
*/
|
|
6326
|
-
|
|
6327
|
-
return this.http.get(`${this.URL}/dao/cfg/ciudades_dao.php?pais=${pais}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MCity(e))));
|
|
6361
|
+
getCity(pais, estado) {
|
|
6362
|
+
return this.http.get(`${this.URL}/dao/cfg/ciudades_dao.php?pais=${pais}&estado=${estado}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => res.data.map(e => new MCity(e))));
|
|
6328
6363
|
}
|
|
6329
6364
|
/**
|
|
6330
6365
|
* @description Obtiene los sistemas activas
|
|
@@ -7466,10 +7501,14 @@ class MAccountMarriage {
|
|
|
7466
7501
|
class MServiceType extends MBasicModel {
|
|
7467
7502
|
constructor(type = null) {
|
|
7468
7503
|
super();
|
|
7469
|
-
this.id =
|
|
7504
|
+
this.id = 0;
|
|
7505
|
+
this.idEmpresa = 0;
|
|
7506
|
+
this.idEnterprise = 0;
|
|
7470
7507
|
this.denomination = null;
|
|
7471
7508
|
this.observation = null;
|
|
7472
7509
|
if (type) {
|
|
7510
|
+
this.idEmpresa = parseInt(type.id_empresa);
|
|
7511
|
+
this.idEnterprise = +type.id_enterprise;
|
|
7473
7512
|
this.id = parseInt(type.id_tiposervicio);
|
|
7474
7513
|
this.denomination = type.dentipser;
|
|
7475
7514
|
this.observation = type.obstipser;
|
|
@@ -7477,6 +7516,8 @@ class MServiceType extends MBasicModel {
|
|
|
7477
7516
|
}
|
|
7478
7517
|
dataAsInterface() {
|
|
7479
7518
|
return {
|
|
7519
|
+
id_empresa: this.idEmpresa.toString(),
|
|
7520
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7480
7521
|
dentipser: this.denomination,
|
|
7481
7522
|
id_tiposervicio: this.id.toString(),
|
|
7482
7523
|
obstipser: this.observation
|
|
@@ -7487,15 +7528,17 @@ class MServiceType extends MBasicModel {
|
|
|
7487
7528
|
class MService extends MBasicModel {
|
|
7488
7529
|
constructor(service = null) {
|
|
7489
7530
|
super();
|
|
7490
|
-
this.id =
|
|
7531
|
+
this.id = 0;
|
|
7532
|
+
this.idEnterprise = 0;
|
|
7491
7533
|
this.code = '';
|
|
7492
|
-
this.companyId =
|
|
7493
|
-
this.serviceTypeId =
|
|
7534
|
+
this.companyId = 0;
|
|
7535
|
+
this.serviceTypeId = 0;
|
|
7494
7536
|
this.denomination = '';
|
|
7495
7537
|
this.amount = 0;
|
|
7496
7538
|
this.expensesAccount = '';
|
|
7497
7539
|
this.charges = [];
|
|
7498
7540
|
if (service) {
|
|
7541
|
+
this.idEnterprise = +service.id_enterprise;
|
|
7499
7542
|
this.id = parseInt(service.id_servicio);
|
|
7500
7543
|
this.companyId = parseInt(service.id_empresa);
|
|
7501
7544
|
this.serviceTypeId = parseInt(service.id_tiposervicio);
|
|
@@ -7510,6 +7553,7 @@ class MService extends MBasicModel {
|
|
|
7510
7553
|
}
|
|
7511
7554
|
dataAsInterface() {
|
|
7512
7555
|
return {
|
|
7556
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7513
7557
|
denser: this.denomination,
|
|
7514
7558
|
id_empresa: this.companyId.toString(),
|
|
7515
7559
|
id_servicio: this.id.toString(),
|
|
@@ -7525,12 +7569,14 @@ class MService extends MBasicModel {
|
|
|
7525
7569
|
class MClause extends MBasicModel {
|
|
7526
7570
|
constructor(clause = null) {
|
|
7527
7571
|
super();
|
|
7528
|
-
this.id =
|
|
7529
|
-
this.companyId =
|
|
7572
|
+
this.id = 0;
|
|
7573
|
+
this.companyId = 0;
|
|
7574
|
+
this.idEnterprise = 0;
|
|
7530
7575
|
this.clause = '';
|
|
7531
7576
|
this.denomination = '';
|
|
7532
7577
|
if (clause) {
|
|
7533
7578
|
this.companyId = parseInt(clause.id_empresa);
|
|
7579
|
+
this.idEnterprise = +clause.id_enterprise;
|
|
7534
7580
|
this.clause = clause.codcla;
|
|
7535
7581
|
this.denomination = clause.dencla;
|
|
7536
7582
|
this.id = parseInt(clause.id_clausula);
|
|
@@ -7541,6 +7587,7 @@ class MClause extends MBasicModel {
|
|
|
7541
7587
|
codcla: this.clause,
|
|
7542
7588
|
dencla: this.denomination,
|
|
7543
7589
|
id_empresa: this.companyId ? this.companyId.toString() : null,
|
|
7590
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7544
7591
|
id_clausula: this.id ? this.id.toString() : null
|
|
7545
7592
|
};
|
|
7546
7593
|
}
|
|
@@ -7549,12 +7596,14 @@ class MClause extends MBasicModel {
|
|
|
7549
7596
|
class MClauseModality extends MBasicModel {
|
|
7550
7597
|
constructor(mod = null) {
|
|
7551
7598
|
super();
|
|
7552
|
-
this.id =
|
|
7553
|
-
this.companyId =
|
|
7599
|
+
this.id = 0;
|
|
7600
|
+
this.companyId = 0;
|
|
7601
|
+
this.idEnterprise = 0;
|
|
7554
7602
|
this.code = '';
|
|
7555
7603
|
this.denomination = '';
|
|
7556
7604
|
this.clauses = [];
|
|
7557
7605
|
if (mod) {
|
|
7606
|
+
this.idEnterprise = +mod.id_enterprise;
|
|
7558
7607
|
this.id = parseInt(mod.id_modcla);
|
|
7559
7608
|
this.companyId = parseInt(mod.id_empresa);
|
|
7560
7609
|
this.code = mod.codmodcla;
|
|
@@ -7564,6 +7613,7 @@ class MClauseModality extends MBasicModel {
|
|
|
7564
7613
|
}
|
|
7565
7614
|
dataAsInterface() {
|
|
7566
7615
|
return {
|
|
7616
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7567
7617
|
clausulas: this.clauses.map((e) => e.dataAsInterface()),
|
|
7568
7618
|
codmodcla: this.code,
|
|
7569
7619
|
denmodcla: this.denomination,
|