示例#1
0
文件: reporte.py 项目: dravix/pyventa
    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()
示例#2
0
文件: cventa.py 项目: dravix/pyventa
    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