def facturar(self): ide=str(self.tVentas.selectedIndexes()[0].data().toString()) venta=Venta(self.parent.conexion) venta.cambiarTipo(ide,1) F=Factura(self.parent, ide) F.imprimir() self.actualizar()
def facturar(self): if int(self.parent.cliente['id'])<2: selected=self.parent.selCliente() if selected>0: self.facturar() else: ide=self.allocate(1,0) #fac=factura(self.parent,id) F=Factura(self.parent,ide) F.imprimir() self.parent.limpiar() return ide