
    i                         S SK Jr  S rg)    )get_connectionbdproductivoc                     Sn  [        5       nU(       d  [        S5      eUR                  5       nUR                  U 5        UR	                  5       nU Vs/ s H  n0 SUS   _SUS   _SUS   _S	US
   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS   _SUS    _S!US"   _S#US$   _US%   US&   US'   US(   US)   US*   US+   US,   US-   US.   US/   S0.EPM     snU(       a  UR                  5         $ $ s  snf ! [         a2  n[        S1U 35        / s S2nAW(       a  UR                  5         $ $ S2nAff = f! W(       a  UR                  5         f f = f)3z,Obtiene los Breakers desde la base de datos.u%  
    SELECT 
           isnull (DES_Reporte_financiero_Cont.ContractNum, '')as ContractNum,
    isnull (DES_Reporte_financiero_Cont.EntryDate, '')as EntryDate,
    isnull (DES_Reporte_financiero_Cont.EntryPerson, '')as EntryPerson,
    isnull (DES_Reporte_financiero_Cont.Folio, '')as Folio,
    isnull (DES_Reporte_financiero_Cont.ContractCode, '')as ContractCode,
    isnull (DES_Reporte_financiero_Cont.Division, '')as Division,
    isnull (DES_Reporte_financiero_Cont.Clasificación, '')as Clasificación,
    isnull (DES_Reporte_financiero_Cont.Departamento, '')as Departamento,
    isnull (DES_Reporte_financiero_Cont.DepartamentClass, '')as DepartamentClass,
    isnull (DES_Reporte_financiero_Cont.ContractDescription, '')as ContractDescription,
    isnull (DES_Reporte_financiero_Cont.CustNum, '')as CustNum,
    isnull (DES_Reporte_financiero_Cont.CustID, '')as CustID,
    isnull (DES_Reporte_financiero_Cont.Cliente, '')as Cliente,
    isnull (DES_Reporte_financiero_Cont.Importe, '')as Importe,
    isnull (DES_Reporte_financiero_Cont.ImporteMXN, '')as ImporteMXN,
    isnull (DES_Reporte_financiero_Cont.CurrencyCode, '')as CurrencyCode,
    isnull (DES_Reporte_financiero_Cont.ExchangeRate, '')as ExchangeRate,
    isnull (DES_Reporte_financiero_Cont.Duration, '')as Duration,
    isnull (DES_Reporte_financiero_Cont.Modifier, '')as Modifier,
    isnull (DES_Reporte_financiero_Cont.ActiveDate, '')as ActiveDate,
    isnull (DES_Reporte_financiero_Cont.ExpireDate, '')as ExpireDate,
    isnull (DES_Reporte_financiero_Cont.ContractComment, '')as ContractComment,
    isnull (DES_Reporte_financiero_Cont.InvoiceComment, '')as InvoiceComment,
    isnull (DES_Reporte_financiero_Cont.TipoDeContrato, '')as TipoDeContrato,
    isnull (DES_Reporte_financiero_Cont.Facturado, '')as Facturado,
    isnull (DES_Reporte_financiero_Cont.FacturadoIVA, '')as FacturadoIVA,
    isnull (DES_Reporte_financiero_Cont.FacturadoIVAMXN, '')as FacturadoIVAMXN,
    isnull (DES_Reporte_financiero_Cont.ListaDeFacturas, '')as ListaDeFacturas

    FROM
        DES_Reporte_financiero_Cont
    u4   No se pudo establecer conexión con la base de datosContractNumr   	EntryDate   EntryPerson   Folio   ContractCode   Division   u   Clasificación   Departamento   DepartamentClass   ContractDescription	   CustNum
   CustID   Cliente   Importe   
ImporteMXN   CurrencyCode   ExchangeRate                                    )DurationModifier
ActiveDate
ExpireDateContractCommentInvoiceCommentTipoDeContrato	FacturadoFacturadoIVAFacturadoIVAMXNListaDeFacturasz.[Error inesperado] Error obteniendo breakers: N)r   ConnectionErrorcursorexecutefetchallclose	Exceptionprint)queryconnr<   resultsrowes         څC:\Users\victor.barrera\Documents\proyectos\elepV3\Elep\src\Consultas_SQL\SupYCtrol\GerenteSyC\GSYCReporte_financiero_ContratosSQL.pyget_ConsultarH      s1   !ED-)+!"XYYu//#@ !="< !#;s1vSV s1v Q	
 A CF !#a& A #CF &s1v 3r7 #b' 3r7 3r7 c"g  B!" B#$  GG!"g!"g#&r7"%b'"%b' W #B#&r7#&r79: !="F JJL G">  >qcBC	JJL 	 JJL sC   AD B!D6D D 
E E/E0E EE E/N)Consultas_SQL.conexionr   rH        rG   <module>rL      s   
 >QrK   