Commit cf95fd9dd51e1021d129890c21be3192c47f91c3

Authored by Marcelo Puebla
1 parent 8260928b08
Exists in master and in 1 other branch validar_pve

cambiado servicio para aceptar el nombre de quien realiza el pedido.

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
src/app/services/producto.service.ts
... ... @@ -77,19 +77,21 @@ export class ProductoService {
77 77 }
78 78  
79 79 getCategorias() {
  80 +
80 81 return this.http.get(`${appSettings.apiUrl}/categorias`);
81 82 }
82 83  
83   - pagar(medioPago: number) {
  84 + pagar(dataPago: any) {
84 85  
85 86 return new Observable((observer) => {
86 87  
87 88 this.clienteService.getClienteById(-1).subscribe(cliente => {
88 89  
89   - this.http.post(`${appSettings.apiUrl}/comprobante/guardar/${medioPago}`, {
  90 + this.http.post(`${appSettings.apiUrl}/comprobante/guardar/${dataPago.medioPago}`, {
90 91 productos: this.productos,
91 92 cliente: cliente,
92   - origen: 'autoservicio'
  93 + origen: 'autoservicio',
  94 + pedidoAnombreDe: dataPago.pedidoAnombreDe,
93 95 }).subscribe((data) => {
94 96  
95 97 observer.next(data);