sigesp 0.9.84-20231102 → 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.
- package/bundles/sigesp.umd.js +170 -16
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Cliente.js +2 -0
- package/esm2015/lib/core/interfaces/Constantes.js +7 -1
- package/esm2015/lib/core/interfaces/CuentaInstitucional.js +1 -1
- package/esm2015/lib/core/interfaces/Integracion.js +1 -1
- package/esm2015/lib/core/models/SCG/accountMarriage.model.js +8 -1
- package/esm2015/lib/core/models/SCG/cuentaInstitucional.model.js +20 -17
- package/esm2015/lib/core/models/SFV/MClienteModel.js +116 -0
- package/esm2015/lib/sigesp.service.js +17 -1
- package/esm2015/public-api.js +4 -2
- package/fesm2015/sigesp.js +163 -17
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Cliente.d.ts +36 -0
- package/lib/core/interfaces/Constantes.d.ts +1 -0
- package/lib/core/interfaces/CuentaInstitucional.d.ts +1 -0
- package/lib/core/interfaces/Integracion.d.ts +1 -0
- package/lib/core/models/SCG/accountMarriage.model.d.ts +2 -0
- package/lib/core/models/SCG/cuentaInstitucional.model.d.ts +1 -0
- package/lib/core/models/SFV/MClienteModel.d.ts +40 -0
- package/lib/sigesp.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -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,6 +1492,7 @@
|
|
|
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;
|
|
@@ -1514,6 +1522,7 @@
|
|
|
1514
1522
|
estatus: this.status,
|
|
1515
1523
|
id_empresa: this.idEmpresa,
|
|
1516
1524
|
nivel: this.nivel,
|
|
1525
|
+
id_dt_cuenta: this.idDtCuenta.toString(),
|
|
1517
1526
|
};
|
|
1518
1527
|
};
|
|
1519
1528
|
return MCuentaInstitucional;
|
|
@@ -8047,6 +8056,25 @@
|
|
|
8047
8056
|
return res;
|
|
8048
8057
|
}));
|
|
8049
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
|
+
};
|
|
8050
8078
|
/**
|
|
8051
8079
|
* @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
|
|
8052
8080
|
* @return Observable<IResponse>
|
|
@@ -8867,10 +8895,16 @@
|
|
|
8867
8895
|
_this.idEmpresa = null;
|
|
8868
8896
|
_this.cuentaContable = null;
|
|
8869
8897
|
_this.cuentaInstitucional = null;
|
|
8898
|
+
_this.idDt = 0;
|
|
8899
|
+
_this.isNew = false;
|
|
8870
8900
|
if (marriage) {
|
|
8871
8901
|
_this.idEmpresa = parseInt(marriage.id_empresa);
|
|
8872
8902
|
_this.cuentaContable = parseInt(marriage.sig_cuenta);
|
|
8873
8903
|
_this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
|
|
8904
|
+
_this.idDt = +marriage.id_dt_cuenta;
|
|
8905
|
+
}
|
|
8906
|
+
else {
|
|
8907
|
+
_this.isNew;
|
|
8874
8908
|
}
|
|
8875
8909
|
return _this;
|
|
8876
8910
|
}
|
|
@@ -8879,6 +8913,7 @@
|
|
|
8879
8913
|
id_empresa: this.idEmpresa.toString(),
|
|
8880
8914
|
sc_cuenta: this.cuentaContable.toString(),
|
|
8881
8915
|
sig_cuenta: this.cuentaInstitucional.toString(),
|
|
8916
|
+
id_dt_cuenta: this.idDt.toString(),
|
|
8882
8917
|
};
|
|
8883
8918
|
};
|
|
8884
8919
|
return MAccountMarriage;
|
|
@@ -9037,6 +9072,123 @@
|
|
|
9037
9072
|
return MClauseModality;
|
|
9038
9073
|
}(MBasicModel));
|
|
9039
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
|
+
|
|
9040
9192
|
var MGroup = /** @class */ (function (_super) {
|
|
9041
9193
|
__extends(MGroup, _super);
|
|
9042
9194
|
function MGroup(group) {
|
|
@@ -14714,6 +14866,7 @@
|
|
|
14714
14866
|
exports.Destino = Destino;
|
|
14715
14867
|
exports.EstadoCivil = EstadoCivil;
|
|
14716
14868
|
exports.Estatus = Estatus;
|
|
14869
|
+
exports.EstatusCliente = EstatusCliente;
|
|
14717
14870
|
exports.EstatusEstudio = EstatusEstudio;
|
|
14718
14871
|
exports.EstatusPersonal = EstatusPersonal;
|
|
14719
14872
|
exports.EstatusPersonalNomina = EstatusPersonalNomina;
|
|
@@ -14750,6 +14903,7 @@
|
|
|
14750
14903
|
exports.MClasification = MClasification;
|
|
14751
14904
|
exports.MClause = MClause;
|
|
14752
14905
|
exports.MClauseModality = MClauseModality;
|
|
14906
|
+
exports.MClient = MClient;
|
|
14753
14907
|
exports.MCodigoUnicoRac = MCodigoUnicoRac;
|
|
14754
14908
|
exports.MCommunity = MCommunity;
|
|
14755
14909
|
exports.MComponent = MComponent;
|