sigesp 0.9.82-20231024 → 0.9.84-20231102

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.
@@ -1120,29 +1120,88 @@ class MCuentaPresupuesto {
1120
1120
  }
1121
1121
  }
1122
1122
 
1123
- class MCuentaInstitucional {
1123
+ class MCuentaInstitucional extends MBasicModel {
1124
1124
  constructor(institucional) {
1125
- this.cuenta = institucional.sc_cuenta;
1126
- this.cueproacu = institucional.cueproacu;
1127
- this.denominacion = institucional.denominacion;
1128
- this.enero = institucional.enero;
1129
- this.febrero = institucional.febrero;
1130
- this.marzo = institucional.marzo;
1131
- this.abril = institucional.abril;
1132
- this.mayo = institucional.mayo;
1133
- this.junio = institucional.junio;
1134
- this.julio = institucional.julio;
1135
- this.agosto = institucional.agosto;
1136
- this.septiembre = institucional.septiembre;
1137
- this.octubre = institucional.octubre;
1138
- this.noviembre = institucional.noviembre;
1139
- this.diciembre = institucional.diciembre;
1140
- this.asignado = institucional.asignado;
1141
- this.distribuir = institucional.distribuir;
1142
- this.status = institucional.estatus;
1143
- this.idEmpresa = institucional.id_empresa;
1144
- this.nivel = institucional.nivel;
1145
- this.referencia = institucional.referencia;
1125
+ super();
1126
+ this.cuenta = '';
1127
+ this.cueproacu = '';
1128
+ this.denominacion = '';
1129
+ this.enero = '';
1130
+ this.febrero = '';
1131
+ this.marzo = '';
1132
+ this.abril = '';
1133
+ this.mayo = '';
1134
+ this.junio = '';
1135
+ this.julio = '';
1136
+ this.agosto = '';
1137
+ this.septiembre = '';
1138
+ this.octubre = '';
1139
+ this.noviembre = '';
1140
+ this.diciembre = '';
1141
+ this.asignado = '';
1142
+ this.distribuir = '';
1143
+ this.status = '';
1144
+ this.idEmpresa = '';
1145
+ this.nivel = '';
1146
+ this.referencia = '';
1147
+ this.denominacionCuentaProvisionAcumulada = '';
1148
+ this.denominacionCuentaReferencia = '';
1149
+ this.denominacionEstatus = '';
1150
+ this.isNew = false;
1151
+ if (institucional) {
1152
+ this.cuenta = institucional.sc_cuenta;
1153
+ this.cueproacu = institucional.cueproacu;
1154
+ this.denominacion = institucional.denominacion;
1155
+ this.enero = institucional.enero;
1156
+ this.febrero = institucional.febrero;
1157
+ this.marzo = institucional.marzo;
1158
+ this.abril = institucional.abril;
1159
+ this.mayo = institucional.mayo;
1160
+ this.junio = institucional.junio;
1161
+ this.julio = institucional.julio;
1162
+ this.agosto = institucional.agosto;
1163
+ this.septiembre = institucional.septiembre;
1164
+ this.octubre = institucional.octubre;
1165
+ this.noviembre = institucional.noviembre;
1166
+ this.diciembre = institucional.diciembre;
1167
+ this.asignado = institucional.asignado;
1168
+ this.distribuir = institucional.distribuir;
1169
+ this.status = institucional.estatus;
1170
+ this.idEmpresa = institucional.id_empresa;
1171
+ this.nivel = institucional.nivel;
1172
+ this.referencia = institucional.referencia;
1173
+ this.denominacionCuentaProvisionAcumulada = institucional.dencueproacu;
1174
+ this.denominacionCuentaReferencia = institucional.denctareferecia;
1175
+ institucional.estatus == 'C' ? this.denominacionEstatus = 'Movimiento' : this.denominacionEstatus = 'Totalizadora';
1176
+ }
1177
+ else {
1178
+ this.isNew = true;
1179
+ }
1180
+ }
1181
+ dataInterface() {
1182
+ return {
1183
+ sc_cuenta: this.cuenta,
1184
+ cueproacu: this.cueproacu,
1185
+ denominacion: this.denominacion,
1186
+ dencueproacu: this.denominacionCuentaProvisionAcumulada,
1187
+ enero: this.enero,
1188
+ febrero: this.febrero,
1189
+ marzo: this.marzo,
1190
+ abril: this.abril,
1191
+ mayo: this.mayo,
1192
+ junio: this.junio,
1193
+ julio: this.julio,
1194
+ agosto: this.agosto,
1195
+ septiembre: this.septiembre,
1196
+ octubre: this.octubre,
1197
+ noviembre: this.noviembre,
1198
+ diciembre: this.diciembre,
1199
+ asignado: this.asignado,
1200
+ distribuir: this.distribuir,
1201
+ estatus: this.status,
1202
+ id_empresa: this.idEmpresa,
1203
+ nivel: this.nivel,
1204
+ };
1146
1205
  }
1147
1206
  }
1148
1207
 
@@ -1420,10 +1479,19 @@ class MConfiguracionSCG extends MBasicModel {
1420
1479
  }
1421
1480
  }
1422
1481
 
1423
- class MPlanUnicoCuenta {
1482
+ class MPlanUnicoCuenta extends MBasicModel {
1424
1483
  constructor(plan) {
1425
- this.denominacion = plan.denominacion;
1426
- this.cuenta = plan.sc_cuenta;
1484
+ super();
1485
+ if (plan) {
1486
+ this.denominacion = plan.denominacion;
1487
+ this.cuenta = plan.sc_cuenta;
1488
+ }
1489
+ }
1490
+ dataInterface() {
1491
+ return {
1492
+ denominacion: this.denominacion,
1493
+ sc_cuenta: this.cuenta,
1494
+ };
1427
1495
  }
1428
1496
  }
1429
1497
 
@@ -2265,8 +2333,9 @@ class MComprobantePresupuestarioIngresos {
2265
2333
  }
2266
2334
  // TERMINAR EL MODELO
2267
2335
 
2268
- class MCuentaIngresos {
2336
+ class MCuentaIngresos extends MBasicModel {
2269
2337
  constructor(cuenta = null, isNew = false) {
2338
+ super();
2270
2339
  this.idEmpresa = null;
2271
2340
  this.nivel = null;
2272
2341
  this.denominacion = '';
@@ -6400,6 +6469,12 @@ class SigespService {
6400
6469
  }
6401
6470
  return false;
6402
6471
  }
6472
+ onlyNumbers2(event) {
6473
+ if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
6474
+ return true;
6475
+ }
6476
+ return false;
6477
+ }
6403
6478
  /**
6404
6479
  * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
6405
6480
  * @param event Evento del teclado
@@ -8093,14 +8168,24 @@ class MProcedencia extends MBasicModel {
8093
8168
  }
8094
8169
  }
8095
8170
 
8096
- class MAccountMarriage {
8171
+ class MAccountMarriage extends MBasicModel {
8097
8172
  constructor(marriage) {
8173
+ super();
8098
8174
  this.idEmpresa = null;
8099
8175
  this.cuentaContable = null;
8100
8176
  this.cuentaInstitucional = null;
8101
- this.idEmpresa = parseInt(marriage.id_empresa);
8102
- this.cuentaContable = parseInt(marriage.sig_cuenta);
8103
- this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8177
+ if (marriage) {
8178
+ this.idEmpresa = parseInt(marriage.id_empresa);
8179
+ this.cuentaContable = parseInt(marriage.sig_cuenta);
8180
+ this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8181
+ }
8182
+ }
8183
+ dataInterface() {
8184
+ return {
8185
+ id_empresa: this.idEmpresa.toString(),
8186
+ sc_cuenta: this.cuentaContable.toString(),
8187
+ sig_cuenta: this.cuentaInstitucional.toString(),
8188
+ };
8104
8189
  }
8105
8190
  }
8106
8191