src/app/components/layout/pages/venta/venta.component.ts
selector | app-venta |
styleUrls | ./venta.component.css |
templateUrl | ./venta.component.html |
Properties |
Methods |
constructor(_productoServ: ProductoService, _ventaServ: VentaService, _fb: FormBuilder, _utilidadServ: UtilidadService)
|
|||||||||||||||
Parameters :
|
agregarProductoVenta |
agregarProductoVenta()
|
Returns :
void
|
eliminarProducto | ||||||
eliminarProducto(detalleV: DetalleVenta)
|
||||||
Parameters :
Returns :
void
|
mostrarProducto | ||||||
mostrarProducto(producto: Producto)
|
||||||
Parameters :
Returns :
string
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
productoParaVenta | ||||||
productoParaVenta(event: any)
|
||||||
Parameters :
Returns :
void
|
productosFiltro | ||||||
productosFiltro(busqueda: any)
|
||||||
Parameters :
Returns :
Producto[]
|
registrarVenta |
registrarVenta()
|
Returns :
void
|
bloquearBotonRegistrar |
Type : boolean
|
Default value : false
|
columnasTabla |
Type : string[]
|
Default value : ['producto','cantidad','precio','total','accion']
|
datosDetalleVenta |
Default value : new MatTableDataSource(this.listaProductosParaVenta)
|
formularioProductoVenta |
Type : FormGroup
|
listaProductos |
Type : Producto[]
|
Default value : []
|
listaProductosFiltro |
Type : Producto[]
|
Default value : []
|
listaProductosParaVenta |
Type : DetalleVenta[]
|
Default value : []
|
productoSeleccionado |
Type : Producto
|
tipoPago |
Type : string
|
Default value : 'Efectivo'
|
totalPagar |
Type : number
|
Default value : 0
|
./venta.component.css