Some changes in venta and venta_detalle

Still lacks dao functionality for both of them