sigesp 0.9.11-20221211 → 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 +87 -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/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 +87 -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(),
|
|
@@ -6325,8 +6358,8 @@ class SigespService {
|
|
|
6325
6358
|
* @param pais: Codigo del pais
|
|
6326
6359
|
|
|
6327
6360
|
*/
|
|
6328
|
-
|
|
6329
|
-
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))));
|
|
6330
6363
|
}
|
|
6331
6364
|
/**
|
|
6332
6365
|
* @description Obtiene los sistemas activas
|
|
@@ -7468,10 +7501,14 @@ class MAccountMarriage {
|
|
|
7468
7501
|
class MServiceType extends MBasicModel {
|
|
7469
7502
|
constructor(type = null) {
|
|
7470
7503
|
super();
|
|
7471
|
-
this.id =
|
|
7504
|
+
this.id = 0;
|
|
7505
|
+
this.idEmpresa = 0;
|
|
7506
|
+
this.idEnterprise = 0;
|
|
7472
7507
|
this.denomination = null;
|
|
7473
7508
|
this.observation = null;
|
|
7474
7509
|
if (type) {
|
|
7510
|
+
this.idEmpresa = parseInt(type.id_empresa);
|
|
7511
|
+
this.idEnterprise = +type.id_enterprise;
|
|
7475
7512
|
this.id = parseInt(type.id_tiposervicio);
|
|
7476
7513
|
this.denomination = type.dentipser;
|
|
7477
7514
|
this.observation = type.obstipser;
|
|
@@ -7479,6 +7516,8 @@ class MServiceType extends MBasicModel {
|
|
|
7479
7516
|
}
|
|
7480
7517
|
dataAsInterface() {
|
|
7481
7518
|
return {
|
|
7519
|
+
id_empresa: this.idEmpresa.toString(),
|
|
7520
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7482
7521
|
dentipser: this.denomination,
|
|
7483
7522
|
id_tiposervicio: this.id.toString(),
|
|
7484
7523
|
obstipser: this.observation
|
|
@@ -7489,15 +7528,17 @@ class MServiceType extends MBasicModel {
|
|
|
7489
7528
|
class MService extends MBasicModel {
|
|
7490
7529
|
constructor(service = null) {
|
|
7491
7530
|
super();
|
|
7492
|
-
this.id =
|
|
7531
|
+
this.id = 0;
|
|
7532
|
+
this.idEnterprise = 0;
|
|
7493
7533
|
this.code = '';
|
|
7494
|
-
this.companyId =
|
|
7495
|
-
this.serviceTypeId =
|
|
7534
|
+
this.companyId = 0;
|
|
7535
|
+
this.serviceTypeId = 0;
|
|
7496
7536
|
this.denomination = '';
|
|
7497
7537
|
this.amount = 0;
|
|
7498
7538
|
this.expensesAccount = '';
|
|
7499
7539
|
this.charges = [];
|
|
7500
7540
|
if (service) {
|
|
7541
|
+
this.idEnterprise = +service.id_enterprise;
|
|
7501
7542
|
this.id = parseInt(service.id_servicio);
|
|
7502
7543
|
this.companyId = parseInt(service.id_empresa);
|
|
7503
7544
|
this.serviceTypeId = parseInt(service.id_tiposervicio);
|
|
@@ -7512,6 +7553,7 @@ class MService extends MBasicModel {
|
|
|
7512
7553
|
}
|
|
7513
7554
|
dataAsInterface() {
|
|
7514
7555
|
return {
|
|
7556
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7515
7557
|
denser: this.denomination,
|
|
7516
7558
|
id_empresa: this.companyId.toString(),
|
|
7517
7559
|
id_servicio: this.id.toString(),
|
|
@@ -7527,12 +7569,14 @@ class MService extends MBasicModel {
|
|
|
7527
7569
|
class MClause extends MBasicModel {
|
|
7528
7570
|
constructor(clause = null) {
|
|
7529
7571
|
super();
|
|
7530
|
-
this.id =
|
|
7531
|
-
this.companyId =
|
|
7572
|
+
this.id = 0;
|
|
7573
|
+
this.companyId = 0;
|
|
7574
|
+
this.idEnterprise = 0;
|
|
7532
7575
|
this.clause = '';
|
|
7533
7576
|
this.denomination = '';
|
|
7534
7577
|
if (clause) {
|
|
7535
7578
|
this.companyId = parseInt(clause.id_empresa);
|
|
7579
|
+
this.idEnterprise = +clause.id_enterprise;
|
|
7536
7580
|
this.clause = clause.codcla;
|
|
7537
7581
|
this.denomination = clause.dencla;
|
|
7538
7582
|
this.id = parseInt(clause.id_clausula);
|
|
@@ -7543,6 +7587,7 @@ class MClause extends MBasicModel {
|
|
|
7543
7587
|
codcla: this.clause,
|
|
7544
7588
|
dencla: this.denomination,
|
|
7545
7589
|
id_empresa: this.companyId ? this.companyId.toString() : null,
|
|
7590
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7546
7591
|
id_clausula: this.id ? this.id.toString() : null
|
|
7547
7592
|
};
|
|
7548
7593
|
}
|
|
@@ -7551,12 +7596,14 @@ class MClause extends MBasicModel {
|
|
|
7551
7596
|
class MClauseModality extends MBasicModel {
|
|
7552
7597
|
constructor(mod = null) {
|
|
7553
7598
|
super();
|
|
7554
|
-
this.id =
|
|
7555
|
-
this.companyId =
|
|
7599
|
+
this.id = 0;
|
|
7600
|
+
this.companyId = 0;
|
|
7601
|
+
this.idEnterprise = 0;
|
|
7556
7602
|
this.code = '';
|
|
7557
7603
|
this.denomination = '';
|
|
7558
7604
|
this.clauses = [];
|
|
7559
7605
|
if (mod) {
|
|
7606
|
+
this.idEnterprise = +mod.id_enterprise;
|
|
7560
7607
|
this.id = parseInt(mod.id_modcla);
|
|
7561
7608
|
this.companyId = parseInt(mod.id_empresa);
|
|
7562
7609
|
this.code = mod.codmodcla;
|
|
@@ -7566,6 +7613,7 @@ class MClauseModality extends MBasicModel {
|
|
|
7566
7613
|
}
|
|
7567
7614
|
dataAsInterface() {
|
|
7568
7615
|
return {
|
|
7616
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
7569
7617
|
clausulas: this.clauses.map((e) => e.dataAsInterface()),
|
|
7570
7618
|
codmodcla: this.code,
|
|
7571
7619
|
denmodcla: this.denomination,
|