sigesp 0.9.34-20230209 → 0.9.36-20230211
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 +8 -7
- 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/sigesp.service.js +5 -5
- package/esm2015/lib/validation.service.js +4 -4
- package/fesm2015/sigesp.js +7 -7
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +2 -2
- package/lib/validation.service.d.ts +1 -1
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -7471,8 +7471,8 @@
|
|
|
7471
7471
|
* @return Observable<IResponse>
|
|
7472
7472
|
* @author Carlos Albornoz
|
|
7473
7473
|
*/
|
|
7474
|
-
SigespService.prototype.getBanks = function (
|
|
7475
|
-
return this.http.get(this.URL + "/dao/scb/banco_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7474
|
+
SigespService.prototype.getBanks = function (idEnterprise) {
|
|
7475
|
+
return this.http.get(this.URL + "/dao/scb/banco_dao.php?e=" + idEnterprise, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7476
7476
|
if (res.success) {
|
|
7477
7477
|
res.data = res.data.map(function (e) { return new MBank(e); });
|
|
7478
7478
|
}
|
|
@@ -7492,8 +7492,8 @@
|
|
|
7492
7492
|
return res;
|
|
7493
7493
|
}));
|
|
7494
7494
|
};
|
|
7495
|
-
SigespService.prototype.getAllBankAccount = function (id) {
|
|
7496
|
-
return this.http.get(this.URL + "/dao/scb/cuenta_banco_dao.php?", { headers: this.getHttpHeaders() })
|
|
7495
|
+
SigespService.prototype.getAllBankAccount = function (tipo, id) {
|
|
7496
|
+
return this.http.get(this.URL + "/dao/scb/cuenta_banco_dao.php?tipo=" + tipo + "&e=" + id, { headers: this.getHttpHeaders() })
|
|
7497
7497
|
.pipe(operators.map(function (res) {
|
|
7498
7498
|
if (res.success) {
|
|
7499
7499
|
res.data = res.data.map(function (element) { return new MCuentaBanco(element); });
|
|
@@ -8115,7 +8115,7 @@
|
|
|
8115
8115
|
CurrencyService.prototype.returnNumber = function (event, decimal, thousands, amountDecimals) {
|
|
8116
8116
|
if (decimal === void 0) { decimal = ','; }
|
|
8117
8117
|
if (thousands === void 0) { thousands = '.'; }
|
|
8118
|
-
if (amountDecimals === void 0) { amountDecimals =
|
|
8118
|
+
if (amountDecimals === void 0) { amountDecimals = 0; }
|
|
8119
8119
|
if (!decimal || decimal.trim() == '') {
|
|
8120
8120
|
decimal = ',';
|
|
8121
8121
|
}
|
|
@@ -8128,7 +8128,7 @@
|
|
|
8128
8128
|
if (number.trim() == '') {
|
|
8129
8129
|
number = '0';
|
|
8130
8130
|
}
|
|
8131
|
-
return
|
|
8131
|
+
return +(parseFloat(number).toFixed(amountDecimals));
|
|
8132
8132
|
};
|
|
8133
8133
|
CurrencyService.prototype.validateCurrency = function (e, number, decimal, decimalAmount) {
|
|
8134
8134
|
if (decimal === void 0) { decimal = ','; }
|
|
@@ -8170,9 +8170,10 @@
|
|
|
8170
8170
|
}
|
|
8171
8171
|
return;
|
|
8172
8172
|
};
|
|
8173
|
-
CurrencyService.prototype.transformString = function (value, decimal, thousands) {
|
|
8173
|
+
CurrencyService.prototype.transformString = function (value, decimal, thousands, amountDecimals) {
|
|
8174
8174
|
if (decimal === void 0) { decimal = ','; }
|
|
8175
8175
|
if (thousands === void 0) { thousands = '.'; }
|
|
8176
|
+
if (amountDecimals === void 0) { amountDecimals = 5; }
|
|
8176
8177
|
if (!decimal || decimal.trim() == '') {
|
|
8177
8178
|
decimal = ',';
|
|
8178
8179
|
}
|