

DROP TABLE IF EXISTS Montos_Facturados;
CREATE TABLE Montos_Facturados (
  id int(11) NOT NULL AUTO_INCREMENT,
  ID_Sucursal Integer default '0',
  Nro_Ticket Double default '0',
  Nro_Factura Double default '0',
  Serie_Factura varchar(10) default '',
  Sub_Total Double default '0',
  IVA_Total Double default '0',
  Total Double default '0',
  Fecha TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  status Integer default '0',
  PRIMARY KEY (id)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;














select Nombre_Archivo, Documento from Comprobantes_Fiscales where ID_Factura = 262 AND Descripcion = 'PDF' AND ID_Sucursal = 5;