sigesp 0.9.83-20230111 → 0.9.85-20231103

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.
@@ -779,6 +779,12 @@
779
779
  { value: "3", denominacion: 'Preaviso 104' },
780
780
  { value: "4", denominacion: 'Preaviso 107' },
781
781
  ];
782
+ var EstatusCliente = [
783
+ { value: "A", denominacion: 'Activo' },
784
+ { value: "B", denominacion: 'Bloqueado' },
785
+ { value: "S", denominacion: 'Suspendido' },
786
+ { value: "E", denominacion: 'No Activo' },
787
+ ];
782
788
  var Orden = [
783
789
  { value: "1", denominacion: 'Código del Personal' },
784
790
  { value: "2", denominacion: 'Apellido del Personal' },
@@ -1438,28 +1444,29 @@
1438
1444
  _this.cuenta = '';
1439
1445
  _this.cueproacu = '';
1440
1446
  _this.denominacion = '';
1441
- _this.enero = '';
1442
- _this.febrero = '';
1443
- _this.marzo = '';
1444
- _this.abril = '';
1445
- _this.mayo = '';
1446
- _this.junio = '';
1447
- _this.julio = '';
1448
- _this.agosto = '';
1449
- _this.septiembre = '';
1450
- _this.octubre = '';
1451
- _this.noviembre = '';
1452
- _this.diciembre = '';
1453
- _this.asignado = '';
1447
+ _this.enero = '0';
1448
+ _this.febrero = '0';
1449
+ _this.marzo = '0';
1450
+ _this.abril = '0';
1451
+ _this.mayo = '0';
1452
+ _this.junio = '0';
1453
+ _this.julio = '0';
1454
+ _this.agosto = '0';
1455
+ _this.septiembre = '0';
1456
+ _this.octubre = '0';
1457
+ _this.noviembre = '0';
1458
+ _this.diciembre = '0';
1459
+ _this.asignado = '0';
1454
1460
  _this.distribuir = '';
1455
- _this.status = '';
1456
- _this.idEmpresa = '';
1457
- _this.nivel = '';
1461
+ _this.status = '0';
1462
+ _this.idEmpresa = '0';
1463
+ _this.nivel = '0';
1458
1464
  _this.referencia = '';
1459
1465
  _this.denominacionCuentaProvisionAcumulada = '';
1460
1466
  _this.denominacionCuentaReferencia = '';
1461
1467
  _this.denominacionEstatus = '';
1462
1468
  _this.isNew = false;
1469
+ _this.idDtCuenta = 0;
1463
1470
  if (institucional) {
1464
1471
  _this.cuenta = institucional.sc_cuenta;
1465
1472
  _this.cueproacu = institucional.cueproacu;
@@ -1485,12 +1492,39 @@
1485
1492
  _this.denominacionCuentaProvisionAcumulada = institucional.dencueproacu;
1486
1493
  _this.denominacionCuentaReferencia = institucional.denctareferecia;
1487
1494
  institucional.estatus == 'C' ? _this.denominacionEstatus = 'Movimiento' : _this.denominacionEstatus = 'Totalizadora';
1495
+ _this.idDtCuenta = +institucional.id_dt_cuenta;
1488
1496
  }
1489
1497
  else {
1490
1498
  _this.isNew = true;
1491
1499
  }
1492
1500
  return _this;
1493
1501
  }
1502
+ MCuentaInstitucional.prototype.dataInterface = function () {
1503
+ return {
1504
+ sc_cuenta: this.cuenta,
1505
+ cueproacu: this.cueproacu,
1506
+ denominacion: this.denominacion,
1507
+ dencueproacu: this.denominacionCuentaProvisionAcumulada,
1508
+ enero: this.enero,
1509
+ febrero: this.febrero,
1510
+ marzo: this.marzo,
1511
+ abril: this.abril,
1512
+ mayo: this.mayo,
1513
+ junio: this.junio,
1514
+ julio: this.julio,
1515
+ agosto: this.agosto,
1516
+ septiembre: this.septiembre,
1517
+ octubre: this.octubre,
1518
+ noviembre: this.noviembre,
1519
+ diciembre: this.diciembre,
1520
+ asignado: this.asignado,
1521
+ distribuir: this.distribuir,
1522
+ estatus: this.status,
1523
+ id_empresa: this.idEmpresa,
1524
+ nivel: this.nivel,
1525
+ id_dt_cuenta: this.idDtCuenta.toString(),
1526
+ };
1527
+ };
1494
1528
  return MCuentaInstitucional;
1495
1529
  }(MBasicModel));
1496
1530
 
@@ -1779,13 +1813,24 @@
1779
1813
  return MConfiguracionSCG;
1780
1814
  }(MBasicModel));
1781
1815
 
1782
- var MPlanUnicoCuenta = /** @class */ (function () {
1816
+ var MPlanUnicoCuenta = /** @class */ (function (_super) {
1817
+ __extends(MPlanUnicoCuenta, _super);
1783
1818
  function MPlanUnicoCuenta(plan) {
1784
- this.denominacion = plan.denominacion;
1785
- this.cuenta = plan.sc_cuenta;
1819
+ var _this = _super.call(this) || this;
1820
+ if (plan) {
1821
+ _this.denominacion = plan.denominacion;
1822
+ _this.cuenta = plan.sc_cuenta;
1823
+ }
1824
+ return _this;
1786
1825
  }
1826
+ MPlanUnicoCuenta.prototype.dataInterface = function () {
1827
+ return {
1828
+ denominacion: this.denominacion,
1829
+ sc_cuenta: this.cuenta,
1830
+ };
1831
+ };
1787
1832
  return MPlanUnicoCuenta;
1788
- }());
1833
+ }(MBasicModel));
1789
1834
 
1790
1835
  var TableSelectComponent = /** @class */ (function () {
1791
1836
  //disableMasterToggle: boolean = false;
@@ -8011,6 +8056,25 @@
8011
8056
  return res;
8012
8057
  }));
8013
8058
  };
8059
+ /**
8060
+ * @description Obtiene los clientes
8061
+ * @return Observable<IResponse>
8062
+ * @author Dimaly Crespo
8063
+ * @tipo [basico,codigo,cedula]
8064
+ *
8065
+ */
8066
+ SigespService.prototype.getCliente = function (tipo, id, codigo, cedula) {
8067
+ if (tipo === void 0) { tipo = 'default'; }
8068
+ if (id === void 0) { id = 0; }
8069
+ if (codigo === void 0) { codigo = ''; }
8070
+ if (cedula === void 0) { cedula = ''; }
8071
+ return this.http.get(this.URL + "/dao/sfv/client_dao.php?tipo=" + tipo + "&id=" + id + "&codigo=" + codigo + "&cedrifcli=" + cedula, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
8072
+ if (res.success) {
8073
+ res.data = res.data.map(function (e) { return new MClient(e); });
8074
+ }
8075
+ return res;
8076
+ }));
8077
+ };
8014
8078
  /**
8015
8079
  * @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
8016
8080
  * @return Observable<IResponse>
@@ -8824,17 +8888,36 @@
8824
8888
  return MProcedencia;
8825
8889
  }(MBasicModel));
8826
8890
 
8827
- var MAccountMarriage = /** @class */ (function () {
8891
+ var MAccountMarriage = /** @class */ (function (_super) {
8892
+ __extends(MAccountMarriage, _super);
8828
8893
  function MAccountMarriage(marriage) {
8829
- this.idEmpresa = null;
8830
- this.cuentaContable = null;
8831
- this.cuentaInstitucional = null;
8832
- this.idEmpresa = parseInt(marriage.id_empresa);
8833
- this.cuentaContable = parseInt(marriage.sig_cuenta);
8834
- this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8894
+ var _this = _super.call(this) || this;
8895
+ _this.idEmpresa = null;
8896
+ _this.cuentaContable = null;
8897
+ _this.cuentaInstitucional = null;
8898
+ _this.idDt = 0;
8899
+ _this.isNew = false;
8900
+ if (marriage) {
8901
+ _this.idEmpresa = parseInt(marriage.id_empresa);
8902
+ _this.cuentaContable = parseInt(marriage.sig_cuenta);
8903
+ _this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8904
+ _this.idDt = +marriage.id_dt_cuenta;
8905
+ }
8906
+ else {
8907
+ _this.isNew;
8908
+ }
8909
+ return _this;
8835
8910
  }
8911
+ MAccountMarriage.prototype.dataInterface = function () {
8912
+ return {
8913
+ id_empresa: this.idEmpresa.toString(),
8914
+ sc_cuenta: this.cuentaContable.toString(),
8915
+ sig_cuenta: this.cuentaInstitucional.toString(),
8916
+ id_dt_cuenta: this.idDt.toString(),
8917
+ };
8918
+ };
8836
8919
  return MAccountMarriage;
8837
- }());
8920
+ }(MBasicModel));
8838
8921
 
8839
8922
  var MServiceType = /** @class */ (function (_super) {
8840
8923
  __extends(MServiceType, _super);
@@ -8989,6 +9072,123 @@
8989
9072
  return MClauseModality;
8990
9073
  }(MBasicModel));
8991
9074
 
9075
+ var MClient = /** @class */ (function () {
9076
+ function MClient(e) {
9077
+ var _this = this;
9078
+ this.idEmpresa = 0;
9079
+ this.idCliente = 0;
9080
+ this.idCategoria = 0;
9081
+ this.idVendedor = 0;
9082
+ this.estatusTipoCliente = 0;
9083
+ this.codigo = '';
9084
+ this.cedulaRifCliente = '';
9085
+ this.nombreCliente = '';
9086
+ this.direccionCliente = '';
9087
+ this.telefonoClientePrincipal = '';
9088
+ this.telefonoClienteSecundario = '';
9089
+ this.fechaRegistroCliente = '';
9090
+ this.emailCliente = '';
9091
+ this.estatusCliente = '';
9092
+ this.cedulaRepresentante = '';
9093
+ this.nombreRepresentante = '';
9094
+ this.emailRepresentante = '';
9095
+ this.comentario = '';
9096
+ this.codigoPais = '';
9097
+ this.codigoEstado = '';
9098
+ this.codigoMunicipio = '';
9099
+ this.codigoParroquia = '';
9100
+ this.codigoPostal = '';
9101
+ this.nompreApellidoContato = '';
9102
+ this.ubicacionContacto = '';
9103
+ this.telelefonoContacto = '';
9104
+ this.emailContacto = '';
9105
+ this.aplicarCuentaPorCobrar = 0;
9106
+ this.descripcionParroquia = '';
9107
+ this.descripcionMunicipio = '';
9108
+ this.descripcionEstado = '';
9109
+ this.descripcionPais = '';
9110
+ this.clienteEspecial = 0;
9111
+ this.limiteCredito = 0;
9112
+ this.denominacionEstataus = '';
9113
+ if (e) {
9114
+ this.idEmpresa = e.id_empresa;
9115
+ this.idCliente = e.id_cliente;
9116
+ this.idCategoria = e.id_categoria;
9117
+ this.idVendedor = e.id_vendedor;
9118
+ this.estatusTipoCliente = e.esttipcli;
9119
+ this.codigo = e.codigo;
9120
+ this.cedulaRifCliente = e.cedrifcli;
9121
+ this.nombreCliente = e.nomcli;
9122
+ this.direccionCliente = e.dircli;
9123
+ this.telefonoClientePrincipal = e.telclipri;
9124
+ this.telefonoClienteSecundario = e.telclisec;
9125
+ this.fechaRegistroCliente = e.fecregcli;
9126
+ this.emailCliente = e.emacli;
9127
+ this.estatusCliente = e.estcli;
9128
+ this.cedulaRepresentante = e.cedrep;
9129
+ this.nombreRepresentante = e.nomrep;
9130
+ this.emailRepresentante = e.emarep;
9131
+ this.comentario = e.comentario;
9132
+ this.codigoPais = e.codpai;
9133
+ this.codigoEstado = e.codest;
9134
+ this.codigoMunicipio = e.codmun;
9135
+ this.codigoParroquia = e.codpar;
9136
+ this.codigoPostal = e.codpos;
9137
+ this.nompreApellidoContato = e.nomapecon;
9138
+ this.ubicacionContacto = e.ubicon;
9139
+ this.telelefonoContacto = e.telcon;
9140
+ this.emailContacto = e.emacon;
9141
+ this.aplicarCuentaPorCobrar = e.aplicarcxc;
9142
+ this.descripcionParroquia = e.despar;
9143
+ this.descripcionMunicipio = e.desmun;
9144
+ this.descripcionEstado = e.desest;
9145
+ this.descripcionPais = e.despai;
9146
+ this.clienteEspecial = e.cliesp;
9147
+ this.limiteCredito = e.limitecredito;
9148
+ this.denominacionEstataus = EstatusCliente.find(function (e) { return e.value = _this.estatusCliente; }).denominacion;
9149
+ }
9150
+ }
9151
+ MClient.prototype.dataInterface = function () {
9152
+ return {
9153
+ id_empresa: this.idEmpresa,
9154
+ id_cliente: this.idCliente,
9155
+ id_categoria: this.idCategoria,
9156
+ id_vendedor: this.idVendedor,
9157
+ codigo: this.codigo,
9158
+ cedrifcli: this.cedulaRifCliente,
9159
+ nomcli: this.nombreCliente,
9160
+ dircli: this.direccionCliente,
9161
+ telclipri: this.telefonoClientePrincipal,
9162
+ telclisec: this.telefonoClienteSecundario,
9163
+ fecregcli: this.fechaRegistroCliente,
9164
+ emacli: this.emailCliente,
9165
+ estcli: this.estatusCliente,
9166
+ cedrep: this.cedulaRepresentante,
9167
+ nomrep: this.nombreCliente,
9168
+ emarep: this.emailRepresentante,
9169
+ comentario: this.comentario,
9170
+ codpai: this.codigoPais,
9171
+ codest: this.codigoEstado,
9172
+ codmun: this.codigoMunicipio,
9173
+ codpar: this.codigoParroquia,
9174
+ codpos: this.codigoPostal,
9175
+ nomapecon: this.nompreApellidoContato,
9176
+ ubicon: this.ubicacionContacto,
9177
+ telcon: this.telelefonoContacto,
9178
+ emacon: this.emailContacto,
9179
+ aplicarcxc: this.aplicarCuentaPorCobrar,
9180
+ despar: this.descripcionPais,
9181
+ desmun: this.descripcionMunicipio,
9182
+ desest: this.descripcionEstado,
9183
+ despai: this.descripcionPais,
9184
+ cliesp: this.clienteEspecial,
9185
+ limitecredito: this.limiteCredito,
9186
+ esttipcli: this.estatusTipoCliente,
9187
+ };
9188
+ };
9189
+ return MClient;
9190
+ }());
9191
+
8992
9192
  var MGroup = /** @class */ (function (_super) {
8993
9193
  __extends(MGroup, _super);
8994
9194
  function MGroup(group) {
@@ -14666,6 +14866,7 @@
14666
14866
  exports.Destino = Destino;
14667
14867
  exports.EstadoCivil = EstadoCivil;
14668
14868
  exports.Estatus = Estatus;
14869
+ exports.EstatusCliente = EstatusCliente;
14669
14870
  exports.EstatusEstudio = EstatusEstudio;
14670
14871
  exports.EstatusPersonal = EstatusPersonal;
14671
14872
  exports.EstatusPersonalNomina = EstatusPersonalNomina;
@@ -14702,6 +14903,7 @@
14702
14903
  exports.MClasification = MClasification;
14703
14904
  exports.MClause = MClause;
14704
14905
  exports.MClauseModality = MClauseModality;
14906
+ exports.MClient = MClient;
14705
14907
  exports.MCodigoUnicoRac = MCodigoUnicoRac;
14706
14908
  exports.MCommunity = MCommunity;
14707
14909
  exports.MComponent = MComponent;