visorus-erp-core 10.0.2 → 10.1.0
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/visorus-erp-core.umd.js +802 -389
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +1 -1
- package/bundles/visorus-erp-core.umd.min.js.map +1 -1
- package/esm2015/lib/app.module.js +1 -1
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +24 -10
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +10 -12
- package/esm2015/lib/components/agente/services/agente.service.js +24 -16
- package/esm2015/lib/components/almacen/services/almacen.service.js +25 -12
- package/esm2015/lib/components/banco/services/banco.service.js +24 -9
- package/esm2015/lib/components/caja/sessionCaja.service.js +24 -10
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +24 -9
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +24 -9
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +24 -9
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +24 -9
- package/esm2015/lib/components/cliente/services/cliente.service.js +25 -10
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +25 -11
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +25 -11
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +24 -9
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +24 -9
- package/esm2015/lib/components/departamento/services/departamento.service.js +24 -9
- package/esm2015/lib/components/empresa/services/empresa.service.js +25 -12
- package/esm2015/lib/components/flete/services/flete.service.js +24 -10
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +24 -9
- package/esm2015/lib/components/moneda/services/moneda.service.js +24 -10
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +11 -12
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +24 -10
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +25 -11
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +21 -10
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +25 -11
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +14 -12
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +23 -12
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +24 -9
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +24 -9
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +25 -11
- package/esm2015/lib/services/api.service.js +69 -0
- package/esm2015/lib/services/catalogo-adicional.service.js +24 -10
- package/esm2015/lib/services/global.service.js +13 -2
- package/esm2015/lib/services/personaMoral.service.js +24 -9
- package/esm2015/public_api.js +3 -3
- package/fesm2015/visorus-erp-core.js +703 -241
- package/fesm2015/visorus-erp-core.js.map +1 -1
- package/lib/components/acreedor/services/acreedor.service.d.ts +12 -5
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +6 -6
- package/lib/components/agente/services/agente.service.d.ts +14 -8
- package/lib/components/almacen/services/almacen.service.d.ts +13 -6
- package/lib/components/banco/services/banco.service.d.ts +12 -4
- package/lib/components/caja/sessionCaja.service.d.ts +11 -5
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +12 -4
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +12 -4
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +11 -4
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +12 -4
- package/lib/components/cliente/services/cliente.service.d.ts +13 -5
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +13 -6
- package/lib/components/cliente/services/clienteFlete.service.d.ts +12 -6
- package/lib/components/contacto/services/datoContacto.service.d.ts +11 -4
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +11 -4
- package/lib/components/departamento/services/departamento.service.d.ts +11 -4
- package/lib/components/empresa/services/empresa.service.d.ts +12 -6
- package/lib/components/flete/services/flete.service.d.ts +11 -5
- package/lib/components/formaPago/services/FormaPago.service.d.ts +12 -4
- package/lib/components/moneda/services/moneda.service.d.ts +11 -5
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +8 -7
- package/lib/components/proveedor/services/proveedor.service.d.ts +11 -5
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +12 -6
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +11 -6
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +12 -6
- package/lib/components/selecciona-articulo/stock.service.d.ts +7 -5
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +12 -7
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +11 -4
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +11 -4
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +12 -6
- package/lib/services/api.service.d.ts +38 -0
- package/lib/services/catalogo-adicional.service.d.ts +11 -5
- package/lib/services/global.service.d.ts +4 -2
- package/lib/services/personaMoral.service.d.ts +11 -4
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
- package/esm2015/lib/services/crud.service.js +0 -46
- package/lib/services/crud.service.d.ts +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HttpHeaders, HttpClient, HttpParams, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
1
2
|
import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵstaticViewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
2
|
-
import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
3
3
|
import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, FormsModule } from '@angular/forms';
|
|
4
4
|
import { InputText, InputTextModule } from 'primeng/inputtext';
|
|
5
5
|
import { TreeTable, TreeTableToggler, TreeTableModule } from 'primeng/treetable';
|
|
@@ -95,69 +95,110 @@ class GlobalService {
|
|
|
95
95
|
return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
/** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(ɵɵinject(HttpClient)); };
|
|
99
|
+
/** @nocollapse */ GlobalService.ɵprov = ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
|
|
100
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(GlobalService, [{
|
|
101
|
+
type: Injectable,
|
|
102
|
+
args: [{
|
|
103
|
+
providedIn: 'root'
|
|
104
|
+
}]
|
|
105
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
98
106
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return this.
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
107
|
+
// projects/erp-core/src/lib/services/api.service.ts
|
|
108
|
+
class ApiService {
|
|
109
|
+
constructor(http,
|
|
110
|
+
// Inyectamos GlobalService para usar sus métodos de ayuda (construir URL y cabeceras)
|
|
111
|
+
global) {
|
|
112
|
+
this.http = http;
|
|
113
|
+
this.global = global;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Realiza una petición GET genérica y autenticada usando HttpParams.
|
|
117
|
+
* @param endpoint El endpoint del API (ej. '/FormaDePago')
|
|
118
|
+
* @param queryParams Un objeto clave-valor para los parámetros de la URL.
|
|
119
|
+
*/
|
|
120
|
+
get(endpoint, queryParams) {
|
|
121
|
+
// 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
|
|
122
|
+
const params = new HttpParams({ fromObject: queryParams });
|
|
123
|
+
// 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
|
|
124
|
+
const options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
|
|
125
|
+
});
|
|
126
|
+
const url = this.global.getUrl(endpoint);
|
|
127
|
+
return this.http.get(url, options);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Realiza una petición POST genérica y autenticada.
|
|
131
|
+
* @param endpoint El endpoint del API
|
|
132
|
+
* @param body El cuerpo de la petición
|
|
133
|
+
*/
|
|
134
|
+
post(endpoint, body) {
|
|
135
|
+
const url = this.global.getUrl(endpoint);
|
|
136
|
+
const options = this.global.buildAuth();
|
|
137
|
+
return this.http.post(url, body, options);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Realiza una petición PUT genérica y autenticada.
|
|
141
|
+
* @param endpoint El endpoint del API
|
|
142
|
+
* @param id El ID del recurso a actualizar
|
|
143
|
+
* @param body El cuerpo de la petición
|
|
144
|
+
*/
|
|
145
|
+
put(endpoint, id, body) {
|
|
146
|
+
const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
|
|
147
|
+
const options = this.global.buildAuth();
|
|
148
|
+
return this.http.put(url, body, options);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Realiza una petición DELETE genérica y autenticada.
|
|
152
|
+
* @param endpoint El endpoint del API
|
|
153
|
+
* @param id El ID del recurso a eliminar
|
|
154
|
+
*/
|
|
155
|
+
delete(endpoint, id) {
|
|
156
|
+
const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
|
|
157
|
+
const options = this.global.buildAuth();
|
|
158
|
+
return this.http.delete(url, options);
|
|
123
159
|
}
|
|
124
|
-
|
|
125
|
-
|
|
160
|
+
}
|
|
161
|
+
/** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(ɵɵinject(HttpClient), ɵɵinject(GlobalService)); };
|
|
162
|
+
/** @nocollapse */ ApiService.ɵprov = ɵɵdefineInjectable({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' });
|
|
163
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(ApiService, [{
|
|
164
|
+
type: Injectable,
|
|
165
|
+
args: [{
|
|
166
|
+
providedIn: 'root'
|
|
167
|
+
}]
|
|
168
|
+
}], function () { return [{ type: HttpClient }, { type: GlobalService }]; }, null); })();
|
|
169
|
+
|
|
170
|
+
class CuentaContableService {
|
|
171
|
+
constructor(api) {
|
|
172
|
+
this.api = api;
|
|
173
|
+
this.endpoint = 'cuentaContable';
|
|
126
174
|
}
|
|
127
175
|
getAll(params) {
|
|
128
|
-
return this.
|
|
176
|
+
return this.api.get(this.endpoint, params);
|
|
177
|
+
}
|
|
178
|
+
obtieneCuentasContablesRecursivo() {
|
|
179
|
+
return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
|
|
129
180
|
}
|
|
130
181
|
get(id) {
|
|
131
|
-
return this.
|
|
182
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
132
183
|
}
|
|
133
184
|
save(obj) {
|
|
134
|
-
return this.
|
|
185
|
+
return this.api.post(this.endpoint, obj);
|
|
135
186
|
}
|
|
136
187
|
update(obj) {
|
|
137
|
-
return this.
|
|
188
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
138
189
|
}
|
|
139
190
|
delete(id) {
|
|
140
|
-
return this.
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
class CuentaContableService extends CrudService {
|
|
145
|
-
constructor(httpClient) {
|
|
146
|
-
super(httpClient, 'cuentaContable');
|
|
147
|
-
this.httpClient = httpClient;
|
|
148
|
-
}
|
|
149
|
-
obtieneCuentasContablesRecursivo() {
|
|
150
|
-
return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
|
|
191
|
+
return this.api.delete(this.endpoint, id);
|
|
151
192
|
}
|
|
152
193
|
}
|
|
153
|
-
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(
|
|
194
|
+
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(ApiService)); };
|
|
154
195
|
/** @nocollapse */ CuentaContableService.ɵprov = ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
|
|
155
196
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(CuentaContableService, [{
|
|
156
197
|
type: Injectable,
|
|
157
198
|
args: [{
|
|
158
199
|
providedIn: 'root'
|
|
159
200
|
}]
|
|
160
|
-
}], function () { return [{ type:
|
|
201
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
161
202
|
|
|
162
203
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
163
204
|
ɵɵelementStart(0, "tr");
|
|
@@ -1352,20 +1393,35 @@ class LoginModalComponent {
|
|
|
1352
1393
|
}]
|
|
1353
1394
|
}], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
|
|
1354
1395
|
|
|
1355
|
-
class SessionCajaService
|
|
1356
|
-
constructor(
|
|
1357
|
-
|
|
1358
|
-
this.
|
|
1396
|
+
class SessionCajaService {
|
|
1397
|
+
constructor(api) {
|
|
1398
|
+
this.api = api;
|
|
1399
|
+
this.endpoint = 'sessionCaja';
|
|
1400
|
+
}
|
|
1401
|
+
getAll(params) {
|
|
1402
|
+
return this.api.get(this.endpoint, params);
|
|
1403
|
+
}
|
|
1404
|
+
get(id) {
|
|
1405
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
1406
|
+
}
|
|
1407
|
+
save(obj) {
|
|
1408
|
+
return this.api.post(this.endpoint, obj);
|
|
1409
|
+
}
|
|
1410
|
+
update(obj) {
|
|
1411
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
1412
|
+
}
|
|
1413
|
+
delete(id) {
|
|
1414
|
+
return this.api.delete(this.endpoint, id);
|
|
1359
1415
|
}
|
|
1360
1416
|
}
|
|
1361
|
-
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(
|
|
1417
|
+
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(ApiService)); };
|
|
1362
1418
|
/** @nocollapse */ SessionCajaService.ɵprov = ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
|
|
1363
1419
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCajaService, [{
|
|
1364
1420
|
type: Injectable,
|
|
1365
1421
|
args: [{
|
|
1366
1422
|
providedIn: 'root'
|
|
1367
1423
|
}]
|
|
1368
|
-
}], function () { return [{ type:
|
|
1424
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
1369
1425
|
|
|
1370
1426
|
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
1371
1427
|
ɵɵelementStart(0, "a", 4);
|
|
@@ -1589,22 +1645,38 @@ class Cliente {
|
|
|
1589
1645
|
}
|
|
1590
1646
|
}
|
|
1591
1647
|
|
|
1592
|
-
class ClienteService
|
|
1593
|
-
constructor(
|
|
1594
|
-
|
|
1648
|
+
class ClienteService {
|
|
1649
|
+
constructor(api) {
|
|
1650
|
+
this.api = api;
|
|
1651
|
+
this.endpoint = 'cliente';
|
|
1652
|
+
}
|
|
1653
|
+
getAll(params) {
|
|
1654
|
+
return this.api.get(this.endpoint, params);
|
|
1655
|
+
}
|
|
1656
|
+
get(id) {
|
|
1657
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
1658
|
+
}
|
|
1659
|
+
save(obj) {
|
|
1660
|
+
return this.api.post(this.endpoint, obj);
|
|
1661
|
+
}
|
|
1662
|
+
update(obj) {
|
|
1663
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
1664
|
+
}
|
|
1665
|
+
delete(id) {
|
|
1666
|
+
return this.api.delete(this.endpoint, id);
|
|
1595
1667
|
}
|
|
1596
1668
|
validar_archivos_bss(id) {
|
|
1597
|
-
return this.
|
|
1669
|
+
return this.api.get(`${this.endpoint}/validarClienteBss/${id}`);
|
|
1598
1670
|
}
|
|
1599
1671
|
}
|
|
1600
|
-
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(
|
|
1672
|
+
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(ApiService)); };
|
|
1601
1673
|
/** @nocollapse */ ClienteService.ɵprov = ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
|
|
1602
1674
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteService, [{
|
|
1603
1675
|
type: Injectable,
|
|
1604
1676
|
args: [{
|
|
1605
1677
|
providedIn: 'root'
|
|
1606
1678
|
}]
|
|
1607
|
-
}], function () { return [{ type:
|
|
1679
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
1608
1680
|
|
|
1609
1681
|
class PaginateService {
|
|
1610
1682
|
constructor(translate) {
|
|
@@ -1885,20 +1957,35 @@ class Proveedor {
|
|
|
1885
1957
|
}
|
|
1886
1958
|
}
|
|
1887
1959
|
|
|
1888
|
-
class ProveedorService
|
|
1889
|
-
constructor(
|
|
1890
|
-
|
|
1891
|
-
this.
|
|
1960
|
+
class ProveedorService {
|
|
1961
|
+
constructor(api) {
|
|
1962
|
+
this.api = api;
|
|
1963
|
+
this.endpoint = 'proveedor';
|
|
1964
|
+
}
|
|
1965
|
+
getAll(params) {
|
|
1966
|
+
return this.api.get(this.endpoint, params);
|
|
1967
|
+
}
|
|
1968
|
+
get(id) {
|
|
1969
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
1970
|
+
}
|
|
1971
|
+
save(obj) {
|
|
1972
|
+
return this.api.post(this.endpoint, obj);
|
|
1973
|
+
}
|
|
1974
|
+
update(obj) {
|
|
1975
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
1976
|
+
}
|
|
1977
|
+
delete(id) {
|
|
1978
|
+
return this.api.delete(this.endpoint, id);
|
|
1892
1979
|
}
|
|
1893
1980
|
}
|
|
1894
|
-
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(
|
|
1981
|
+
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(ApiService)); };
|
|
1895
1982
|
/** @nocollapse */ ProveedorService.ɵprov = ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
|
|
1896
1983
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorService, [{
|
|
1897
1984
|
type: Injectable,
|
|
1898
1985
|
args: [{
|
|
1899
1986
|
providedIn: 'root'
|
|
1900
1987
|
}]
|
|
1901
|
-
}], function () { return [{ type:
|
|
1988
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
1902
1989
|
|
|
1903
1990
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
1904
1991
|
ɵɵelementStart(0, "tr");
|
|
@@ -2032,34 +2119,51 @@ class SelectProveedorComponent {
|
|
|
2032
2119
|
type: Output
|
|
2033
2120
|
}] }); })();
|
|
2034
2121
|
|
|
2035
|
-
class AlmacenService
|
|
2036
|
-
constructor(
|
|
2037
|
-
|
|
2038
|
-
this.
|
|
2122
|
+
class AlmacenService {
|
|
2123
|
+
constructor(api) {
|
|
2124
|
+
this.api = api;
|
|
2125
|
+
this.endpoint = 'almacen';
|
|
2126
|
+
}
|
|
2127
|
+
getAll(params) {
|
|
2128
|
+
return this.api.get(this.endpoint, params);
|
|
2039
2129
|
}
|
|
2040
2130
|
obtenerAlmacenEmpresa() {
|
|
2041
|
-
|
|
2042
|
-
|
|
2131
|
+
return this.api.get(`${this.endpoint}/obtenerAlmacenEmpresa`);
|
|
2132
|
+
}
|
|
2133
|
+
get(id) {
|
|
2134
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
2135
|
+
}
|
|
2136
|
+
save(obj) {
|
|
2137
|
+
return this.api.post(this.endpoint, obj);
|
|
2138
|
+
}
|
|
2139
|
+
update(obj) {
|
|
2140
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2141
|
+
}
|
|
2142
|
+
delete(id) {
|
|
2143
|
+
return this.api.delete(this.endpoint, id);
|
|
2043
2144
|
}
|
|
2044
2145
|
}
|
|
2045
|
-
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(
|
|
2146
|
+
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(ApiService)); };
|
|
2046
2147
|
/** @nocollapse */ AlmacenService.ɵprov = ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
|
|
2047
2148
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(AlmacenService, [{
|
|
2048
2149
|
type: Injectable,
|
|
2049
2150
|
args: [{
|
|
2050
2151
|
providedIn: 'root'
|
|
2051
2152
|
}]
|
|
2052
|
-
}], function () { return [{ type:
|
|
2153
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
2053
2154
|
|
|
2054
|
-
class StockService
|
|
2055
|
-
constructor(
|
|
2056
|
-
|
|
2057
|
-
this.
|
|
2155
|
+
class StockService {
|
|
2156
|
+
constructor(api) {
|
|
2157
|
+
this.api = api;
|
|
2158
|
+
this.endpoint = 'stock';
|
|
2159
|
+
}
|
|
2160
|
+
getAll(params) {
|
|
2161
|
+
return this.api.get(this.endpoint, params);
|
|
2058
2162
|
}
|
|
2059
2163
|
obtenerExistenciasArticulosDescripcion(parametros, params) {
|
|
2060
|
-
const url = this.
|
|
2164
|
+
const url = `${this.endpoint}/obtenerExistenciasArticulos`;
|
|
2061
2165
|
let promesa = new Promise((resolve, reject) => {
|
|
2062
|
-
this.
|
|
2166
|
+
this.api.post(url, parametros).subscribe((data) => {
|
|
2063
2167
|
resolve(data);
|
|
2064
2168
|
}, (err) => {
|
|
2065
2169
|
reject(err);
|
|
@@ -2068,33 +2172,48 @@ class StockService extends CrudService {
|
|
|
2068
2172
|
return promesa;
|
|
2069
2173
|
}
|
|
2070
2174
|
}
|
|
2071
|
-
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(
|
|
2175
|
+
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(ApiService)); };
|
|
2072
2176
|
/** @nocollapse */ StockService.ɵprov = ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
|
|
2073
2177
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(StockService, [{
|
|
2074
2178
|
type: Injectable,
|
|
2075
2179
|
args: [{
|
|
2076
2180
|
providedIn: 'root'
|
|
2077
2181
|
}]
|
|
2078
|
-
}], function () { return [{ type:
|
|
2182
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
2079
2183
|
|
|
2080
|
-
class ArticuloInformacionService
|
|
2081
|
-
constructor(
|
|
2082
|
-
|
|
2083
|
-
this.
|
|
2184
|
+
class ArticuloInformacionService {
|
|
2185
|
+
constructor(api) {
|
|
2186
|
+
this.api = api;
|
|
2187
|
+
this.endpoint = 'articulo';
|
|
2188
|
+
}
|
|
2189
|
+
getAll(params) {
|
|
2190
|
+
return this.api.get(this.endpoint, params);
|
|
2084
2191
|
}
|
|
2085
2192
|
obtenerExistencias(articulo) {
|
|
2086
2193
|
let uRL = "/existenciasArticulo/" + articulo;
|
|
2087
|
-
return this.
|
|
2194
|
+
return this.api.get(`${this.endpoint}${uRL}`);
|
|
2195
|
+
}
|
|
2196
|
+
get(id) {
|
|
2197
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
2198
|
+
}
|
|
2199
|
+
save(obj) {
|
|
2200
|
+
return this.api.post(this.endpoint, obj);
|
|
2201
|
+
}
|
|
2202
|
+
update(obj) {
|
|
2203
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2204
|
+
}
|
|
2205
|
+
delete(id) {
|
|
2206
|
+
return this.api.delete(this.endpoint, id);
|
|
2088
2207
|
}
|
|
2089
2208
|
}
|
|
2090
|
-
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(
|
|
2209
|
+
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(ApiService)); };
|
|
2091
2210
|
/** @nocollapse */ ArticuloInformacionService.ɵprov = ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
|
|
2092
2211
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ArticuloInformacionService, [{
|
|
2093
2212
|
type: Injectable,
|
|
2094
2213
|
args: [{
|
|
2095
2214
|
providedIn: 'root'
|
|
2096
2215
|
}]
|
|
2097
|
-
}], function () { return [{ type:
|
|
2216
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
2098
2217
|
|
|
2099
2218
|
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
2100
2219
|
ɵɵelement(0, "col");
|
|
@@ -2745,20 +2864,35 @@ class SeleccionaArticuloComponent {
|
|
|
2745
2864
|
type: Output
|
|
2746
2865
|
}] }); })();
|
|
2747
2866
|
|
|
2748
|
-
class AcreedorService
|
|
2749
|
-
constructor(
|
|
2750
|
-
|
|
2751
|
-
this.
|
|
2867
|
+
class AcreedorService {
|
|
2868
|
+
constructor(api) {
|
|
2869
|
+
this.api = api;
|
|
2870
|
+
this.endpoint = 'acreedor';
|
|
2871
|
+
}
|
|
2872
|
+
getAll(params) {
|
|
2873
|
+
return this.api.get(this.endpoint, params);
|
|
2874
|
+
}
|
|
2875
|
+
get(id) {
|
|
2876
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
2877
|
+
}
|
|
2878
|
+
save(obj) {
|
|
2879
|
+
return this.api.post(this.endpoint, obj);
|
|
2880
|
+
}
|
|
2881
|
+
update(obj) {
|
|
2882
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
2883
|
+
}
|
|
2884
|
+
delete(id) {
|
|
2885
|
+
return this.api.delete(this.endpoint, id);
|
|
2752
2886
|
}
|
|
2753
2887
|
}
|
|
2754
|
-
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(
|
|
2888
|
+
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(ApiService)); };
|
|
2755
2889
|
/** @nocollapse */ AcreedorService.ɵprov = ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
|
|
2756
2890
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorService, [{
|
|
2757
2891
|
type: Injectable,
|
|
2758
2892
|
args: [{
|
|
2759
2893
|
providedIn: 'root'
|
|
2760
2894
|
}]
|
|
2761
|
-
}], function () { return [{ type:
|
|
2895
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
2762
2896
|
|
|
2763
2897
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2764
2898
|
ɵɵelementStart(0, "tr");
|
|
@@ -3222,19 +3356,35 @@ class MessageService {
|
|
|
3222
3356
|
}]
|
|
3223
3357
|
}], function () { return [{ type: ToastrService }]; }, null); })();
|
|
3224
3358
|
|
|
3225
|
-
class PersonaMoralService
|
|
3226
|
-
constructor(
|
|
3227
|
-
|
|
3359
|
+
class PersonaMoralService {
|
|
3360
|
+
constructor(api) {
|
|
3361
|
+
this.api = api;
|
|
3362
|
+
this.endpoint = 'personaMoral';
|
|
3363
|
+
}
|
|
3364
|
+
getAll(params) {
|
|
3365
|
+
return this.api.get(this.endpoint, params);
|
|
3366
|
+
}
|
|
3367
|
+
get(id) {
|
|
3368
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3369
|
+
}
|
|
3370
|
+
save(obj) {
|
|
3371
|
+
return this.api.post(this.endpoint, obj);
|
|
3372
|
+
}
|
|
3373
|
+
update(obj) {
|
|
3374
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3375
|
+
}
|
|
3376
|
+
delete(id) {
|
|
3377
|
+
return this.api.delete(this.endpoint, id);
|
|
3228
3378
|
}
|
|
3229
3379
|
}
|
|
3230
|
-
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(
|
|
3380
|
+
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(ApiService)); };
|
|
3231
3381
|
/** @nocollapse */ PersonaMoralService.ɵprov = ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
|
|
3232
3382
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaMoralService, [{
|
|
3233
3383
|
type: Injectable,
|
|
3234
3384
|
args: [{
|
|
3235
3385
|
providedIn: 'root'
|
|
3236
3386
|
}]
|
|
3237
|
-
}], function () { return [{ type:
|
|
3387
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3238
3388
|
|
|
3239
3389
|
class CanActivateGuard {
|
|
3240
3390
|
constructor(controlAccesoService) {
|
|
@@ -3258,20 +3408,35 @@ class CanActivateGuard {
|
|
|
3258
3408
|
}]
|
|
3259
3409
|
}], function () { return [{ type: ControlAccesoService }]; }, null); })();
|
|
3260
3410
|
|
|
3261
|
-
class CatalogoAdicionalService
|
|
3262
|
-
constructor(
|
|
3263
|
-
|
|
3264
|
-
this.
|
|
3411
|
+
class CatalogoAdicionalService {
|
|
3412
|
+
constructor(api) {
|
|
3413
|
+
this.api = api;
|
|
3414
|
+
this.endpoint = 'catalogoAdicional';
|
|
3415
|
+
}
|
|
3416
|
+
getAll(params) {
|
|
3417
|
+
return this.api.get(this.endpoint, params);
|
|
3418
|
+
}
|
|
3419
|
+
get(id) {
|
|
3420
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3421
|
+
}
|
|
3422
|
+
save(obj) {
|
|
3423
|
+
return this.api.post(this.endpoint, obj);
|
|
3424
|
+
}
|
|
3425
|
+
update(obj) {
|
|
3426
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3427
|
+
}
|
|
3428
|
+
delete(id) {
|
|
3429
|
+
return this.api.delete(this.endpoint, id);
|
|
3265
3430
|
}
|
|
3266
3431
|
}
|
|
3267
|
-
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(
|
|
3432
|
+
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(ApiService)); };
|
|
3268
3433
|
/** @nocollapse */ CatalogoAdicionalService.ɵprov = ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
|
|
3269
3434
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoAdicionalService, [{
|
|
3270
3435
|
type: Injectable,
|
|
3271
3436
|
args: [{
|
|
3272
3437
|
providedIn: 'root'
|
|
3273
3438
|
}]
|
|
3274
|
-
}], function () { return [{ type:
|
|
3439
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3275
3440
|
|
|
3276
3441
|
class Authenticated {
|
|
3277
3442
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -3390,32 +3555,41 @@ class VersionCheckService {
|
|
|
3390
3555
|
}]
|
|
3391
3556
|
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3392
3557
|
|
|
3393
|
-
class AgenteService
|
|
3394
|
-
constructor(
|
|
3395
|
-
|
|
3396
|
-
this.
|
|
3558
|
+
class AgenteService {
|
|
3559
|
+
constructor(api) {
|
|
3560
|
+
this.api = api;
|
|
3561
|
+
this.endpoint = 'agente';
|
|
3397
3562
|
}
|
|
3398
3563
|
saveUsuarioAgente(usuario) {
|
|
3399
|
-
|
|
3400
|
-
return this.getHttp().post(url, usuario, this.buildAuth());
|
|
3564
|
+
return this.api.post(`${this.endpoint}/usuario`, usuario);
|
|
3401
3565
|
}
|
|
3402
3566
|
getUsuarioAgente(id) {
|
|
3403
|
-
|
|
3404
|
-
return this.getHttp().get(url, this.buildAuth());
|
|
3567
|
+
return this.api.get(`${this.endpoint}/usuario/${id}`);
|
|
3405
3568
|
}
|
|
3406
3569
|
obtenerAgenteEmpresa() {
|
|
3407
|
-
|
|
3408
|
-
|
|
3570
|
+
return this.api.get(`${this.endpoint}/obtenerAgenteEmpresa`);
|
|
3571
|
+
}
|
|
3572
|
+
get(id) {
|
|
3573
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3574
|
+
}
|
|
3575
|
+
save(obj) {
|
|
3576
|
+
return this.api.post(this.endpoint, obj);
|
|
3577
|
+
}
|
|
3578
|
+
update(obj) {
|
|
3579
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3580
|
+
}
|
|
3581
|
+
delete(id) {
|
|
3582
|
+
return this.api.delete(this.endpoint, id);
|
|
3409
3583
|
}
|
|
3410
3584
|
}
|
|
3411
|
-
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(
|
|
3585
|
+
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(ApiService)); };
|
|
3412
3586
|
/** @nocollapse */ AgenteService.ɵprov = ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
|
|
3413
3587
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(AgenteService, [{
|
|
3414
3588
|
type: Injectable,
|
|
3415
3589
|
args: [{
|
|
3416
3590
|
providedIn: 'root'
|
|
3417
3591
|
}]
|
|
3418
|
-
}], function () { return [{ type:
|
|
3592
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3419
3593
|
|
|
3420
3594
|
class Almacen {
|
|
3421
3595
|
constructor() { }
|
|
@@ -3432,69 +3606,133 @@ class Banco {
|
|
|
3432
3606
|
}
|
|
3433
3607
|
}
|
|
3434
3608
|
|
|
3435
|
-
class BancoService
|
|
3436
|
-
constructor(
|
|
3437
|
-
|
|
3609
|
+
class BancoService {
|
|
3610
|
+
constructor(api) {
|
|
3611
|
+
this.api = api;
|
|
3612
|
+
this.endpoint = 'banco';
|
|
3613
|
+
}
|
|
3614
|
+
getAll(params) {
|
|
3615
|
+
return this.api.get(this.endpoint, params);
|
|
3616
|
+
}
|
|
3617
|
+
get(id) {
|
|
3618
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3619
|
+
}
|
|
3620
|
+
save(obj) {
|
|
3621
|
+
return this.api.post(this.endpoint, obj);
|
|
3622
|
+
}
|
|
3623
|
+
update(obj) {
|
|
3624
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3625
|
+
}
|
|
3626
|
+
delete(id) {
|
|
3627
|
+
return this.api.delete(this.endpoint, id);
|
|
3438
3628
|
}
|
|
3439
3629
|
}
|
|
3440
|
-
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(
|
|
3630
|
+
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(ApiService)); };
|
|
3441
3631
|
/** @nocollapse */ BancoService.ɵprov = ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
|
|
3442
3632
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(BancoService, [{
|
|
3443
3633
|
type: Injectable,
|
|
3444
3634
|
args: [{
|
|
3445
3635
|
providedIn: 'root'
|
|
3446
3636
|
}]
|
|
3447
|
-
}], function () { return [{ type:
|
|
3637
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3448
3638
|
|
|
3449
3639
|
class CatalogoTipo {
|
|
3450
3640
|
constructor() { }
|
|
3451
3641
|
}
|
|
3452
3642
|
|
|
3453
|
-
class CatalogoTipoService
|
|
3454
|
-
constructor(
|
|
3455
|
-
|
|
3643
|
+
class CatalogoTipoService {
|
|
3644
|
+
constructor(api) {
|
|
3645
|
+
this.api = api;
|
|
3646
|
+
this.endpoint = 'catalogoTipo';
|
|
3647
|
+
}
|
|
3648
|
+
getAll(params) {
|
|
3649
|
+
return this.api.get(this.endpoint, params);
|
|
3650
|
+
}
|
|
3651
|
+
get(id) {
|
|
3652
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3653
|
+
}
|
|
3654
|
+
save(obj) {
|
|
3655
|
+
return this.api.post(this.endpoint, obj);
|
|
3656
|
+
}
|
|
3657
|
+
update(obj) {
|
|
3658
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3659
|
+
}
|
|
3660
|
+
delete(id) {
|
|
3661
|
+
return this.api.delete(this.endpoint, id);
|
|
3456
3662
|
}
|
|
3457
3663
|
}
|
|
3458
|
-
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(
|
|
3664
|
+
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(ApiService)); };
|
|
3459
3665
|
/** @nocollapse */ CatalogoTipoService.ɵprov = ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
|
|
3460
3666
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoTipoService, [{
|
|
3461
3667
|
type: Injectable,
|
|
3462
3668
|
args: [{
|
|
3463
3669
|
providedIn: 'root'
|
|
3464
3670
|
}]
|
|
3465
|
-
}], function () { return [{ type:
|
|
3671
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3466
3672
|
|
|
3467
|
-
class ClasificadorTipoService
|
|
3468
|
-
constructor(
|
|
3469
|
-
|
|
3673
|
+
class ClasificadorTipoService {
|
|
3674
|
+
constructor(api) {
|
|
3675
|
+
this.api = api;
|
|
3676
|
+
this.endpoint = 'clasificadorTipo';
|
|
3677
|
+
}
|
|
3678
|
+
getAll(params) {
|
|
3679
|
+
return this.api.get(this.endpoint, params);
|
|
3680
|
+
}
|
|
3681
|
+
get(id) {
|
|
3682
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3683
|
+
}
|
|
3684
|
+
save(obj) {
|
|
3685
|
+
return this.api.post(this.endpoint, obj);
|
|
3686
|
+
}
|
|
3687
|
+
update(obj) {
|
|
3688
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3689
|
+
}
|
|
3690
|
+
delete(id) {
|
|
3691
|
+
return this.api.delete(this.endpoint, id);
|
|
3470
3692
|
}
|
|
3471
3693
|
}
|
|
3472
|
-
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(
|
|
3694
|
+
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(ApiService)); };
|
|
3473
3695
|
/** @nocollapse */ ClasificadorTipoService.ɵprov = ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
|
|
3474
3696
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClasificadorTipoService, [{
|
|
3475
3697
|
type: Injectable,
|
|
3476
3698
|
args: [{
|
|
3477
3699
|
providedIn: 'root'
|
|
3478
3700
|
}]
|
|
3479
|
-
}], function () { return [{ type:
|
|
3701
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3480
3702
|
|
|
3481
3703
|
class ClaveMovimiento {
|
|
3482
3704
|
constructor() { }
|
|
3483
3705
|
}
|
|
3484
3706
|
|
|
3485
|
-
class ClaveMovimientoService
|
|
3486
|
-
constructor(
|
|
3487
|
-
|
|
3707
|
+
class ClaveMovimientoService {
|
|
3708
|
+
constructor(api) {
|
|
3709
|
+
this.api = api;
|
|
3710
|
+
this.endpoint = 'claveMovimiento';
|
|
3711
|
+
}
|
|
3712
|
+
getAll(params) {
|
|
3713
|
+
return this.api.get(this.endpoint, params);
|
|
3714
|
+
}
|
|
3715
|
+
get(id) {
|
|
3716
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3717
|
+
}
|
|
3718
|
+
save(obj) {
|
|
3719
|
+
return this.api.post(this.endpoint, obj);
|
|
3720
|
+
}
|
|
3721
|
+
update(obj) {
|
|
3722
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3723
|
+
}
|
|
3724
|
+
delete(id) {
|
|
3725
|
+
return this.api.delete(this.endpoint, id);
|
|
3488
3726
|
}
|
|
3489
3727
|
}
|
|
3490
|
-
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(
|
|
3728
|
+
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(ApiService)); };
|
|
3491
3729
|
/** @nocollapse */ ClaveMovimientoService.ɵprov = ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
|
|
3492
3730
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
3493
3731
|
type: Injectable,
|
|
3494
3732
|
args: [{
|
|
3495
3733
|
providedIn: 'root'
|
|
3496
3734
|
}]
|
|
3497
|
-
}], function () { return [{ type:
|
|
3735
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3498
3736
|
|
|
3499
3737
|
class ClienteCuentaBanco {
|
|
3500
3738
|
constructor() {
|
|
@@ -3515,43 +3753,73 @@ class ClienteFlete {
|
|
|
3515
3753
|
}
|
|
3516
3754
|
}
|
|
3517
3755
|
|
|
3518
|
-
class ClienteCuentaBancoService
|
|
3519
|
-
constructor(
|
|
3520
|
-
|
|
3521
|
-
this.
|
|
3756
|
+
class ClienteCuentaBancoService {
|
|
3757
|
+
constructor(api) {
|
|
3758
|
+
this.api = api;
|
|
3759
|
+
this.endpoint = 'clienteCuentaBanco';
|
|
3522
3760
|
}
|
|
3523
3761
|
saveAll(params) {
|
|
3524
3762
|
let p = { 'cuentas': params };
|
|
3525
|
-
return this.
|
|
3763
|
+
return this.api.post(this.endpoint, p);
|
|
3764
|
+
}
|
|
3765
|
+
get(id) {
|
|
3766
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3767
|
+
}
|
|
3768
|
+
delete(id) {
|
|
3769
|
+
return this.api.delete(this.endpoint, id);
|
|
3770
|
+
}
|
|
3771
|
+
getAll(params) {
|
|
3772
|
+
return this.api.get(this.endpoint, params);
|
|
3773
|
+
}
|
|
3774
|
+
save(obj) {
|
|
3775
|
+
return this.api.post(this.endpoint, obj);
|
|
3776
|
+
}
|
|
3777
|
+
update(obj) {
|
|
3778
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3526
3779
|
}
|
|
3527
3780
|
}
|
|
3528
|
-
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(
|
|
3781
|
+
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(ApiService)); };
|
|
3529
3782
|
/** @nocollapse */ ClienteCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
3530
3783
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteCuentaBancoService, [{
|
|
3531
3784
|
type: Injectable,
|
|
3532
3785
|
args: [{
|
|
3533
3786
|
providedIn: 'root'
|
|
3534
3787
|
}]
|
|
3535
|
-
}], function () { return [{ type:
|
|
3788
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3536
3789
|
|
|
3537
|
-
class ClienteFleteService
|
|
3538
|
-
constructor(
|
|
3539
|
-
|
|
3540
|
-
this.
|
|
3790
|
+
class ClienteFleteService {
|
|
3791
|
+
constructor(api) {
|
|
3792
|
+
this.api = api;
|
|
3793
|
+
this.endpoint = 'clienteFlete';
|
|
3541
3794
|
}
|
|
3542
3795
|
saveAll(p) {
|
|
3543
3796
|
let params = { fletes: p };
|
|
3544
|
-
return this.
|
|
3797
|
+
return this.api.post(this.endpoint, params);
|
|
3798
|
+
}
|
|
3799
|
+
get(id) {
|
|
3800
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3801
|
+
}
|
|
3802
|
+
delete(id) {
|
|
3803
|
+
return this.api.delete(this.endpoint, id);
|
|
3804
|
+
}
|
|
3805
|
+
getAll(params) {
|
|
3806
|
+
return this.api.get(this.endpoint, params);
|
|
3807
|
+
}
|
|
3808
|
+
save(obj) {
|
|
3809
|
+
return this.api.post(this.endpoint, obj);
|
|
3810
|
+
}
|
|
3811
|
+
update(obj) {
|
|
3812
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3545
3813
|
}
|
|
3546
3814
|
}
|
|
3547
|
-
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(
|
|
3815
|
+
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(ApiService)); };
|
|
3548
3816
|
/** @nocollapse */ ClienteFleteService.ɵprov = ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
|
|
3549
3817
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteFleteService, [{
|
|
3550
3818
|
type: Injectable,
|
|
3551
3819
|
args: [{
|
|
3552
3820
|
providedIn: 'root'
|
|
3553
3821
|
}]
|
|
3554
|
-
}], function () { return [{ type:
|
|
3822
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3555
3823
|
|
|
3556
3824
|
class TipoContacto {
|
|
3557
3825
|
constructor() {
|
|
@@ -3565,52 +3833,100 @@ class DatoContacto {
|
|
|
3565
3833
|
}
|
|
3566
3834
|
}
|
|
3567
3835
|
|
|
3568
|
-
class DatoContactoService
|
|
3569
|
-
constructor(
|
|
3570
|
-
|
|
3836
|
+
class DatoContactoService {
|
|
3837
|
+
constructor(api) {
|
|
3838
|
+
this.api = api;
|
|
3839
|
+
this.endpoint = 'contacto';
|
|
3840
|
+
}
|
|
3841
|
+
getAll(params) {
|
|
3842
|
+
return this.api.get(this.endpoint, params);
|
|
3843
|
+
}
|
|
3844
|
+
get(id) {
|
|
3845
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3846
|
+
}
|
|
3847
|
+
save(obj) {
|
|
3848
|
+
return this.api.post(this.endpoint, obj);
|
|
3849
|
+
}
|
|
3850
|
+
update(obj) {
|
|
3851
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3852
|
+
}
|
|
3853
|
+
delete(id) {
|
|
3854
|
+
return this.api.delete(this.endpoint, id);
|
|
3571
3855
|
}
|
|
3572
3856
|
}
|
|
3573
|
-
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(
|
|
3857
|
+
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(ApiService)); };
|
|
3574
3858
|
/** @nocollapse */ DatoContactoService.ɵprov = ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
|
|
3575
3859
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(DatoContactoService, [{
|
|
3576
3860
|
type: Injectable,
|
|
3577
3861
|
args: [{
|
|
3578
3862
|
providedIn: 'root'
|
|
3579
3863
|
}]
|
|
3580
|
-
}], function () { return [{ type:
|
|
3864
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3581
3865
|
|
|
3582
|
-
class DatoDireccionService
|
|
3583
|
-
constructor(
|
|
3584
|
-
|
|
3866
|
+
class DatoDireccionService {
|
|
3867
|
+
constructor(api) {
|
|
3868
|
+
this.api = api;
|
|
3869
|
+
this.endpoint = 'datoDireccion';
|
|
3870
|
+
}
|
|
3871
|
+
getAll(params) {
|
|
3872
|
+
return this.api.get(this.endpoint, params);
|
|
3873
|
+
}
|
|
3874
|
+
get(id) {
|
|
3875
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3876
|
+
}
|
|
3877
|
+
save(obj) {
|
|
3878
|
+
return this.api.post(this.endpoint, obj);
|
|
3879
|
+
}
|
|
3880
|
+
update(obj) {
|
|
3881
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3882
|
+
}
|
|
3883
|
+
delete(id) {
|
|
3884
|
+
return this.api.delete(this.endpoint, id);
|
|
3585
3885
|
}
|
|
3586
3886
|
}
|
|
3587
|
-
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(
|
|
3887
|
+
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(ApiService)); };
|
|
3588
3888
|
/** @nocollapse */ DatoDireccionService.ɵprov = ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
|
|
3589
3889
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(DatoDireccionService, [{
|
|
3590
3890
|
type: Injectable,
|
|
3591
3891
|
args: [{
|
|
3592
3892
|
providedIn: 'root'
|
|
3593
3893
|
}]
|
|
3594
|
-
}], function () { return [{ type:
|
|
3894
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3595
3895
|
|
|
3596
3896
|
class Departamento {
|
|
3597
3897
|
constructor() {
|
|
3598
3898
|
}
|
|
3599
3899
|
}
|
|
3600
3900
|
|
|
3601
|
-
class DepartamentoService
|
|
3602
|
-
constructor(
|
|
3603
|
-
|
|
3901
|
+
class DepartamentoService {
|
|
3902
|
+
constructor(api) {
|
|
3903
|
+
this.api = api;
|
|
3904
|
+
this.endpoint = 'departamento';
|
|
3905
|
+
}
|
|
3906
|
+
getAll(params) {
|
|
3907
|
+
return this.api.get(this.endpoint, params);
|
|
3908
|
+
}
|
|
3909
|
+
get(id) {
|
|
3910
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3911
|
+
}
|
|
3912
|
+
save(obj) {
|
|
3913
|
+
return this.api.post(this.endpoint, obj);
|
|
3914
|
+
}
|
|
3915
|
+
update(obj) {
|
|
3916
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3917
|
+
}
|
|
3918
|
+
delete(id) {
|
|
3919
|
+
return this.api.delete(this.endpoint, id);
|
|
3604
3920
|
}
|
|
3605
3921
|
}
|
|
3606
|
-
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(
|
|
3922
|
+
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(ApiService)); };
|
|
3607
3923
|
/** @nocollapse */ DepartamentoService.ɵprov = ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
|
|
3608
3924
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(DepartamentoService, [{
|
|
3609
3925
|
type: Injectable,
|
|
3610
3926
|
args: [{
|
|
3611
3927
|
providedIn: 'root'
|
|
3612
3928
|
}]
|
|
3613
|
-
}], function () { return [{ type:
|
|
3929
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3614
3930
|
|
|
3615
3931
|
class FormaPago {
|
|
3616
3932
|
constructor() { }
|
|
@@ -3630,72 +3946,132 @@ class ConfiguracionEmpresaAdministrativa {
|
|
|
3630
3946
|
}
|
|
3631
3947
|
}
|
|
3632
3948
|
|
|
3633
|
-
class EmpresaService
|
|
3634
|
-
constructor(
|
|
3635
|
-
|
|
3636
|
-
this.
|
|
3949
|
+
class EmpresaService {
|
|
3950
|
+
constructor(api) {
|
|
3951
|
+
this.api = api;
|
|
3952
|
+
this.endpoint = 'empresa';
|
|
3953
|
+
}
|
|
3954
|
+
getAll(params) {
|
|
3955
|
+
return this.api.get(this.endpoint, params);
|
|
3637
3956
|
}
|
|
3638
3957
|
get() {
|
|
3639
|
-
|
|
3640
|
-
|
|
3958
|
+
return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario`);
|
|
3959
|
+
}
|
|
3960
|
+
getByEmpresa(id) {
|
|
3961
|
+
return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario/${id}`);
|
|
3962
|
+
}
|
|
3963
|
+
save(obj) {
|
|
3964
|
+
return this.api.post(this.endpoint, obj);
|
|
3965
|
+
}
|
|
3966
|
+
update(obj) {
|
|
3967
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3968
|
+
}
|
|
3969
|
+
delete(id) {
|
|
3970
|
+
return this.api.delete(this.endpoint, id);
|
|
3641
3971
|
}
|
|
3642
3972
|
}
|
|
3643
|
-
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(
|
|
3973
|
+
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(ApiService)); };
|
|
3644
3974
|
/** @nocollapse */ EmpresaService.ɵprov = ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
|
|
3645
3975
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(EmpresaService, [{
|
|
3646
3976
|
type: Injectable,
|
|
3647
3977
|
args: [{
|
|
3648
3978
|
providedIn: 'root'
|
|
3649
3979
|
}]
|
|
3650
|
-
}], function () { return [{ type:
|
|
3980
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3651
3981
|
|
|
3652
|
-
class FleteService
|
|
3653
|
-
constructor(
|
|
3654
|
-
|
|
3655
|
-
this.
|
|
3982
|
+
class FleteService {
|
|
3983
|
+
constructor(api) {
|
|
3984
|
+
this.api = api;
|
|
3985
|
+
this.endpoint = 'flete';
|
|
3986
|
+
}
|
|
3987
|
+
getAll(params) {
|
|
3988
|
+
return this.api.get(this.endpoint, params);
|
|
3989
|
+
}
|
|
3990
|
+
get(id) {
|
|
3991
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
3992
|
+
}
|
|
3993
|
+
save(obj) {
|
|
3994
|
+
return this.api.post(this.endpoint, obj);
|
|
3995
|
+
}
|
|
3996
|
+
update(obj) {
|
|
3997
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
3998
|
+
}
|
|
3999
|
+
delete(id) {
|
|
4000
|
+
return this.api.delete(this.endpoint, id);
|
|
3656
4001
|
}
|
|
3657
4002
|
}
|
|
3658
|
-
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(
|
|
4003
|
+
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(ApiService)); };
|
|
3659
4004
|
/** @nocollapse */ FleteService.ɵprov = ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
|
|
3660
4005
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(FleteService, [{
|
|
3661
4006
|
type: Injectable,
|
|
3662
4007
|
args: [{
|
|
3663
4008
|
providedIn: 'root'
|
|
3664
4009
|
}]
|
|
3665
|
-
}], function () { return [{ type:
|
|
4010
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3666
4011
|
|
|
3667
|
-
class FormaPagoService
|
|
3668
|
-
constructor(
|
|
3669
|
-
|
|
4012
|
+
class FormaPagoService {
|
|
4013
|
+
constructor(api) {
|
|
4014
|
+
this.api = api;
|
|
4015
|
+
this.endpoint = 'FormaDePago';
|
|
4016
|
+
}
|
|
4017
|
+
getAll(params) {
|
|
4018
|
+
return this.api.get(this.endpoint, params);
|
|
4019
|
+
}
|
|
4020
|
+
get(id) {
|
|
4021
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4022
|
+
}
|
|
4023
|
+
save(obj) {
|
|
4024
|
+
return this.api.post(this.endpoint, obj);
|
|
4025
|
+
}
|
|
4026
|
+
update(obj) {
|
|
4027
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4028
|
+
}
|
|
4029
|
+
delete(id) {
|
|
4030
|
+
return this.api.delete(this.endpoint, id);
|
|
3670
4031
|
}
|
|
3671
4032
|
}
|
|
3672
|
-
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(
|
|
4033
|
+
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(ApiService)); };
|
|
3673
4034
|
/** @nocollapse */ FormaPagoService.ɵprov = ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
|
|
3674
4035
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(FormaPagoService, [{
|
|
3675
4036
|
type: Injectable,
|
|
3676
4037
|
args: [{
|
|
3677
4038
|
providedIn: "root"
|
|
3678
4039
|
}]
|
|
3679
|
-
}], function () { return [{ type:
|
|
4040
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3680
4041
|
|
|
3681
4042
|
class Moneda {
|
|
3682
4043
|
constructor() { }
|
|
3683
4044
|
}
|
|
3684
4045
|
|
|
3685
|
-
class MonedaService
|
|
3686
|
-
constructor(
|
|
3687
|
-
|
|
3688
|
-
this.
|
|
4046
|
+
class MonedaService {
|
|
4047
|
+
constructor(api) {
|
|
4048
|
+
this.api = api;
|
|
4049
|
+
this.endpoint = 'moneda';
|
|
4050
|
+
}
|
|
4051
|
+
getAll(params) {
|
|
4052
|
+
return this.api.get(this.endpoint, params);
|
|
4053
|
+
}
|
|
4054
|
+
get(id) {
|
|
4055
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4056
|
+
}
|
|
4057
|
+
save(obj) {
|
|
4058
|
+
return this.api.post(this.endpoint, obj);
|
|
4059
|
+
}
|
|
4060
|
+
update(obj) {
|
|
4061
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4062
|
+
}
|
|
4063
|
+
delete(id) {
|
|
4064
|
+
return this.api.delete(this.endpoint, id);
|
|
3689
4065
|
}
|
|
3690
4066
|
}
|
|
3691
|
-
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(
|
|
4067
|
+
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(ApiService)); };
|
|
3692
4068
|
/** @nocollapse */ MonedaService.ɵprov = ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
|
|
3693
4069
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(MonedaService, [{
|
|
3694
4070
|
type: Injectable,
|
|
3695
4071
|
args: [{
|
|
3696
4072
|
providedIn: 'root'
|
|
3697
4073
|
}]
|
|
3698
|
-
}], function () { return [{ type:
|
|
4074
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3699
4075
|
|
|
3700
4076
|
class EstadoCivil {
|
|
3701
4077
|
constructor() { }
|
|
@@ -3705,26 +4081,26 @@ class Genero {
|
|
|
3705
4081
|
constructor() { }
|
|
3706
4082
|
}
|
|
3707
4083
|
|
|
3708
|
-
class PersonaFisicaService
|
|
3709
|
-
constructor(
|
|
3710
|
-
|
|
3711
|
-
this.
|
|
4084
|
+
class PersonaFisicaService {
|
|
4085
|
+
constructor(api) {
|
|
4086
|
+
this.api = api;
|
|
4087
|
+
this.endpoint = 'PersonaFisica';
|
|
3712
4088
|
}
|
|
3713
4089
|
getGeneros() {
|
|
3714
|
-
return this.
|
|
4090
|
+
return this.api.get(`${this.endpoint}/genero`);
|
|
3715
4091
|
}
|
|
3716
4092
|
getEstadoCivil() {
|
|
3717
|
-
return this.
|
|
4093
|
+
return this.api.get(`${this.endpoint}/estadoCivil`);
|
|
3718
4094
|
}
|
|
3719
4095
|
}
|
|
3720
|
-
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(
|
|
4096
|
+
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(ApiService)); };
|
|
3721
4097
|
/** @nocollapse */ PersonaFisicaService.ɵprov = ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
|
|
3722
4098
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaFisicaService, [{
|
|
3723
4099
|
type: Injectable,
|
|
3724
4100
|
args: [{
|
|
3725
4101
|
providedIn: "root"
|
|
3726
4102
|
}]
|
|
3727
|
-
}], function () { return [{ type:
|
|
4103
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3728
4104
|
|
|
3729
4105
|
class ProveedorCuentaBanco {
|
|
3730
4106
|
constructor() {
|
|
@@ -3741,138 +4117,224 @@ class ProveedorFlete {
|
|
|
3741
4117
|
}
|
|
3742
4118
|
}
|
|
3743
4119
|
|
|
3744
|
-
class ProveedorCuentaBancoService
|
|
3745
|
-
constructor(
|
|
3746
|
-
|
|
3747
|
-
this.
|
|
4120
|
+
class ProveedorCuentaBancoService {
|
|
4121
|
+
constructor(api) {
|
|
4122
|
+
this.api = api;
|
|
4123
|
+
this.endpoint = 'proveedorCuentaBanco';
|
|
4124
|
+
}
|
|
4125
|
+
getAll(params) {
|
|
4126
|
+
return this.api.get(this.endpoint, params);
|
|
3748
4127
|
}
|
|
3749
4128
|
saveAll(params) {
|
|
3750
4129
|
let p = { 'cuentas': params };
|
|
3751
|
-
return this.
|
|
4130
|
+
return this.api.post(this.endpoint, p);
|
|
4131
|
+
}
|
|
4132
|
+
get(id) {
|
|
4133
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4134
|
+
}
|
|
4135
|
+
delete(id) {
|
|
4136
|
+
return this.api.delete(this.endpoint, id);
|
|
4137
|
+
}
|
|
4138
|
+
update(obj) {
|
|
4139
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4140
|
+
}
|
|
4141
|
+
save(obj) {
|
|
4142
|
+
return this.api.post(this.endpoint, obj);
|
|
3752
4143
|
}
|
|
3753
4144
|
}
|
|
3754
|
-
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(
|
|
4145
|
+
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(ApiService)); };
|
|
3755
4146
|
/** @nocollapse */ ProveedorCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
3756
4147
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorCuentaBancoService, [{
|
|
3757
4148
|
type: Injectable,
|
|
3758
4149
|
args: [{
|
|
3759
4150
|
providedIn: 'root'
|
|
3760
4151
|
}]
|
|
3761
|
-
}], function () { return [{ type:
|
|
4152
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3762
4153
|
|
|
3763
|
-
class ProveedorFleteService
|
|
3764
|
-
constructor(
|
|
3765
|
-
|
|
3766
|
-
this.
|
|
4154
|
+
class ProveedorFleteService {
|
|
4155
|
+
constructor(api) {
|
|
4156
|
+
this.api = api;
|
|
4157
|
+
this.endpoint = 'proveedorFlete';
|
|
4158
|
+
}
|
|
4159
|
+
getAll(params) {
|
|
4160
|
+
return this.api.get(this.endpoint, params);
|
|
3767
4161
|
}
|
|
3768
4162
|
saveAll(p) {
|
|
3769
4163
|
let params = { fletes: p };
|
|
3770
4164
|
return this.save(params);
|
|
3771
4165
|
}
|
|
4166
|
+
save(obj) {
|
|
4167
|
+
return this.api.post(this.endpoint, obj);
|
|
4168
|
+
}
|
|
4169
|
+
update(obj) {
|
|
4170
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4171
|
+
}
|
|
4172
|
+
delete(id) {
|
|
4173
|
+
return this.api.delete(this.endpoint, id);
|
|
4174
|
+
}
|
|
3772
4175
|
}
|
|
3773
|
-
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(
|
|
4176
|
+
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(ApiService)); };
|
|
3774
4177
|
/** @nocollapse */ ProveedorFleteService.ɵprov = ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
|
|
3775
4178
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorFleteService, [{
|
|
3776
4179
|
type: Injectable,
|
|
3777
4180
|
args: [{
|
|
3778
4181
|
providedIn: 'root'
|
|
3779
4182
|
}]
|
|
3780
|
-
}], function () { return [{ type:
|
|
4183
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3781
4184
|
|
|
3782
|
-
class ClaveAumentoDisminucionService
|
|
3783
|
-
constructor(
|
|
3784
|
-
|
|
4185
|
+
class ClaveAumentoDisminucionService {
|
|
4186
|
+
constructor(api) {
|
|
4187
|
+
this.api = api;
|
|
4188
|
+
this.endpoint = 'claveAumentoDisminucion';
|
|
4189
|
+
}
|
|
4190
|
+
getAll(params) {
|
|
4191
|
+
return this.api.get(this.endpoint, params);
|
|
4192
|
+
}
|
|
4193
|
+
get(id) {
|
|
4194
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4195
|
+
}
|
|
4196
|
+
save(obj) {
|
|
4197
|
+
return this.api.post(this.endpoint, obj);
|
|
4198
|
+
}
|
|
4199
|
+
update(obj) {
|
|
4200
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4201
|
+
}
|
|
4202
|
+
delete(id) {
|
|
4203
|
+
return this.api.delete(this.endpoint, id);
|
|
3785
4204
|
}
|
|
3786
4205
|
}
|
|
3787
|
-
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(
|
|
4206
|
+
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(ApiService)); };
|
|
3788
4207
|
/** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
|
|
3789
4208
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
|
|
3790
4209
|
type: Injectable,
|
|
3791
4210
|
args: [{
|
|
3792
4211
|
providedIn: 'root'
|
|
3793
4212
|
}]
|
|
3794
|
-
}], function () { return [{ type:
|
|
4213
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3795
4214
|
|
|
3796
|
-
class SerieDocumentoService
|
|
3797
|
-
constructor(
|
|
3798
|
-
|
|
3799
|
-
this.
|
|
4215
|
+
class SerieDocumentoService {
|
|
4216
|
+
constructor(api) {
|
|
4217
|
+
this.api = api;
|
|
4218
|
+
this.endpoint = 'serieDocumento';
|
|
3800
4219
|
}
|
|
3801
4220
|
getTipos() {
|
|
3802
|
-
return this.
|
|
4221
|
+
return this.api.get(`${this.endpoint}/tipoSerie`);
|
|
3803
4222
|
}
|
|
3804
4223
|
getReporte(params) {
|
|
3805
|
-
return this.
|
|
4224
|
+
return this.api.get(`${this.endpoint}/descargaFormatoReporte`, params);
|
|
4225
|
+
}
|
|
4226
|
+
get(id) {
|
|
4227
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4228
|
+
}
|
|
4229
|
+
save(obj) {
|
|
4230
|
+
return this.api.post(this.endpoint, obj);
|
|
4231
|
+
}
|
|
4232
|
+
update(obj) {
|
|
4233
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4234
|
+
}
|
|
4235
|
+
delete(id) {
|
|
4236
|
+
return this.api.delete(this.endpoint, id);
|
|
3806
4237
|
}
|
|
3807
4238
|
}
|
|
3808
|
-
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(
|
|
4239
|
+
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(ApiService)); };
|
|
3809
4240
|
/** @nocollapse */ SerieDocumentoService.ɵprov = ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
|
|
3810
4241
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(SerieDocumentoService, [{
|
|
3811
4242
|
type: Injectable,
|
|
3812
4243
|
args: [{
|
|
3813
4244
|
providedIn: 'root'
|
|
3814
4245
|
}]
|
|
3815
|
-
}], function () { return [{ type:
|
|
4246
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3816
4247
|
|
|
3817
4248
|
class SerieDocumento {
|
|
3818
4249
|
constructor() { }
|
|
3819
4250
|
}
|
|
3820
4251
|
|
|
3821
|
-
class TipoContactoService
|
|
3822
|
-
constructor(
|
|
3823
|
-
|
|
4252
|
+
class TipoContactoService {
|
|
4253
|
+
constructor(api) {
|
|
4254
|
+
this.api = api;
|
|
4255
|
+
this.endpoint = 'tipoContacto';
|
|
4256
|
+
}
|
|
4257
|
+
getAll(params) {
|
|
4258
|
+
return this.api.get(this.endpoint, params);
|
|
4259
|
+
}
|
|
4260
|
+
get(id) {
|
|
4261
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4262
|
+
}
|
|
4263
|
+
save(obj) {
|
|
4264
|
+
return this.api.post(this.endpoint, obj);
|
|
4265
|
+
}
|
|
4266
|
+
update(obj) {
|
|
4267
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4268
|
+
}
|
|
4269
|
+
delete(id) {
|
|
4270
|
+
return this.api.delete(this.endpoint, id);
|
|
3824
4271
|
}
|
|
3825
4272
|
}
|
|
3826
|
-
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(
|
|
4273
|
+
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(ApiService)); };
|
|
3827
4274
|
/** @nocollapse */ TipoContactoService.ɵprov = ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
|
|
3828
4275
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(TipoContactoService, [{
|
|
3829
4276
|
type: Injectable,
|
|
3830
4277
|
args: [{
|
|
3831
4278
|
providedIn: 'root'
|
|
3832
4279
|
}]
|
|
3833
|
-
}], function () { return [{ type:
|
|
4280
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3834
4281
|
|
|
3835
4282
|
class Ubicacion {
|
|
3836
4283
|
constructor() { }
|
|
3837
4284
|
}
|
|
3838
4285
|
|
|
3839
|
-
class UbicacionService
|
|
3840
|
-
constructor(
|
|
3841
|
-
|
|
4286
|
+
class UbicacionService {
|
|
4287
|
+
constructor(api) {
|
|
4288
|
+
this.api = api;
|
|
4289
|
+
this.endpoint = 'ubicacion';
|
|
4290
|
+
}
|
|
4291
|
+
getAll(params) {
|
|
4292
|
+
return this.api.get(this.endpoint, params);
|
|
4293
|
+
}
|
|
4294
|
+
get(id) {
|
|
4295
|
+
return this.api.get(`${this.endpoint}/${id}`);
|
|
4296
|
+
}
|
|
4297
|
+
save(obj) {
|
|
4298
|
+
return this.api.post(this.endpoint, obj);
|
|
4299
|
+
}
|
|
4300
|
+
update(obj) {
|
|
4301
|
+
return this.api.put(this.endpoint, obj.id, obj);
|
|
4302
|
+
}
|
|
4303
|
+
delete(id) {
|
|
4304
|
+
return this.api.delete(this.endpoint, id);
|
|
3842
4305
|
}
|
|
3843
4306
|
}
|
|
3844
|
-
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(
|
|
4307
|
+
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(ApiService)); };
|
|
3845
4308
|
/** @nocollapse */ UbicacionService.ɵprov = ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
|
|
3846
4309
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(UbicacionService, [{
|
|
3847
4310
|
type: Injectable,
|
|
3848
4311
|
args: [{
|
|
3849
4312
|
providedIn: 'root'
|
|
3850
4313
|
}]
|
|
3851
|
-
}], function () { return [{ type:
|
|
4314
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3852
4315
|
|
|
3853
4316
|
class TipoCatalogo {
|
|
3854
4317
|
}
|
|
3855
4318
|
TipoCatalogo.ARTICULO = 2;
|
|
3856
4319
|
TipoCatalogo.USO_CFDI = 11;
|
|
3857
4320
|
|
|
3858
|
-
class AcreedorCuentaContableService
|
|
3859
|
-
constructor(
|
|
3860
|
-
|
|
3861
|
-
this.
|
|
4321
|
+
class AcreedorCuentaContableService {
|
|
4322
|
+
constructor(api) {
|
|
4323
|
+
this.api = api;
|
|
4324
|
+
this.endpoint = 'acreedorCuentaContable';
|
|
3862
4325
|
}
|
|
3863
4326
|
cuentasContables() {
|
|
3864
|
-
|
|
3865
|
-
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
4327
|
+
return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
|
|
3866
4328
|
}
|
|
3867
4329
|
}
|
|
3868
|
-
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(
|
|
4330
|
+
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(ApiService)); };
|
|
3869
4331
|
/** @nocollapse */ AcreedorCuentaContableService.ɵprov = ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
|
|
3870
4332
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorCuentaContableService, [{
|
|
3871
4333
|
type: Injectable,
|
|
3872
4334
|
args: [{
|
|
3873
4335
|
providedIn: 'root'
|
|
3874
4336
|
}]
|
|
3875
|
-
}], function () { return [{ type:
|
|
4337
|
+
}], function () { return [{ type: ApiService }]; }, null); })();
|
|
3876
4338
|
|
|
3877
4339
|
class CuentaContableModel {
|
|
3878
4340
|
constructor() {
|
|
@@ -3893,5 +4355,5 @@ class NormaInformacionFinancieraModel {
|
|
|
3893
4355
|
* Generated bundle index. Do not edit.
|
|
3894
4356
|
*/
|
|
3895
4357
|
|
|
3896
|
-
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule,
|
|
4358
|
+
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, ApiService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
3897
4359
|
//# sourceMappingURL=visorus-erp-core.js.map
|