ó
    âø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 GHs  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$   _0 S%US&   _S'US(   _S)US*   _S+US,   _S-US.   _S/US0   _S1US2   _S3US4   _S5US6   _S7US8   _S9US:   _S;US<   _S=US>   _S?US@   _SAUSB   _SCUSD   _SEUSF   _E0 SGUSH   _SIUSJ   _SKUSL   _SMUSN   _SOUSP   _SQUSR   _SSUST   _SUUSV   _SWUSX   _SYUSZ   _S[US\   _S]US^   _S_US`   _SaUSb   _ScUSd   _SeUSf   _SgUSh   _EUSi   USj   USk   USl   USm   USn   USo   USp   USq   USr   USs   USt   USu   Sv.EPGMv     snU(       a  UR                  5         $ $ s  snf ! [         a2  n[        SwU 35        / s SxnAW(       a  UR                  5         $ $ SxnAff = f! W(       a  UR                  5         f f = f)yz,Obtiene los Breakers desde la base de datos.u  
    SELECT 
        isnull (DES_Reporte_financiero_OV.Company, '')as Company,
        isnull (DES_Reporte_financiero_OV.OV, '')as OV,
        isnull (DES_Reporte_financiero_OV.FechaOV, '')as FechaOV,
        isnull (DES_Reporte_financiero_OV.OrderCode, '')as OrderCode,
        isnull (DES_Reporte_financiero_OV.DivisiÃ³n, '')as DivisiÃ³n,
        isnull (DES_Reporte_financiero_OV.ClasificaciÃ³n, '')as ClasificaciÃ³n,
        isnull (DES_Reporte_financiero_OV.Departamento, '')as Departamento,
        isnull (DES_Reporte_financiero_OV.DepartamentClass, '')as DepartamentClass,
        isnull (DES_Reporte_financiero_OV.Vendedor, '')as Vendedor,
        isnull (DES_Reporte_financiero_OV.CustNum, '')as CustNum,
        isnull (DES_Reporte_financiero_OV.CustID, '')as CustID,
        isnull (DES_Reporte_financiero_OV.Cliente, '')as Cliente,
        isnull (DES_Reporte_financiero_OV.TotalLines, '')as TotalLines,
        isnull (DES_Reporte_financiero_OV.EstatusOV, '')as EstatusOV,
        isnull (DES_Reporte_financiero_OV. Importe , '')as  Importe ,
        isnull (DES_Reporte_financiero_OV. Descuento , '')as  Descuento ,
        isnull (DES_Reporte_financiero_OV. [Misc.] , '')as  [Misc.] ,
        isnull (DES_Reporte_financiero_OV. Subtotal , '')as  Subtotal ,
        isnull (DES_Reporte_financiero_OV. Impuesto , '')as  Impuesto ,
        isnull (DES_Reporte_financiero_OV. Redondeo , '')as  Redondeo ,
        isnull (DES_Reporte_financiero_OV. [Total de la Orden] , '')as  [Total de la Orden] ,
        isnull (DES_Reporte_financiero_OV.Moneda, '')as Moneda,
        isnull (DES_Reporte_financiero_OV. Cambio , '')as  Cambio ,
        isnull (DES_Reporte_financiero_OV. ImporteMXN , '')as  ImporteMXN ,
        isnull (DES_Reporte_financiero_OV. DescuentoMXN , '')as  DescuentoMXN ,
        isnull (DES_Reporte_financiero_OV. [Misc.MXN] , '')as  [Misc.MXN] ,
        isnull (DES_Reporte_financiero_OV. SubtotalMXN , '')as  SubtotalMXN ,
        isnull (DES_Reporte_financiero_OV. ImpuestoMXN , '')as  ImpuestoMXN ,
        isnull (DES_Reporte_financiero_OV. RedondeoMXN , '')as  RedondeoMXN ,
        isnull (DES_Reporte_financiero_OV. [Total de la Orden MXN] , '')as  [Total de la Orden MXN] ,
        isnull (DES_Reporte_financiero_OV.[Terminos OV], '')as [Terminos OV],
        isnull (DES_Reporte_financiero_OV.[Dias de pago OV], '')as [Dias de pago OV],
        isnull (DES_Reporte_financiero_OV.[Comentario de OV], '')as [Comentario de OV],
        isnull (DES_Reporte_financiero_OV.TipoDeVenta, '')as TipoDeVenta,
        isnull (DES_Reporte_financiero_OV. Facturado , '')as  Facturado ,
        isnull (DES_Reporte_financiero_OV. FacturadoIVA , '')as  FacturadoIVA ,
        isnull (DES_Reporte_financiero_OV. FacturadoMXN , '')as  FacturadoMXN ,
        isnull (DES_Reporte_financiero_OV. FacturadoIVAMXN , '')as  FacturadoIVAMXN ,
        isnull (DES_Reporte_financiero_OV.ListaDeFacturas, '')as ListaDeFacturas,
        isnull (DES_Reporte_financiero_OV.FechaUltimaFactura, '')as FechaUltimaFactura,
        isnull (DES_Reporte_financiero_OV. [Facturacion Manual] , '')as  [Facturacion Manual] ,
        isnull (DES_Reporte_financiero_OV.[Comentario de correccion], '')as [Comentario de correccion],
        isnull (DES_Reporte_financiero_OV. [Por Facturar] , '')as  [Por Facturar] ,
        isnull (DES_Reporte_financiero_OV.[%], '')as [%],
        isnull (DES_Reporte_financiero_OV. RevisiÃ³n , '')as  RevisiÃ³n ,
        isnull (DES_Reporte_financiero_OV.AllProjectID, '')as AllProjectID,
        isnull (DES_Reporte_financiero_OV.Columna1, '')as Columna1,
        isnull (DES_Reporte_financiero_OV.JobNumsInProject, '')as JobNumsInProject,
        isnull (DES_Reporte_financiero_OV. Material , '')as  Material ,
        isnull (DES_Reporte_financiero_OV. Labor , '')as  Labor ,
        isnull (DES_Reporte_financiero_OV. Burden , '')as  Burden ,
        isnull (DES_Reporte_financiero_OV. Subcontract , '')as  Subcontract ,
        isnull (DES_Reporte_financiero_OV. MtlBur , '')as  MtlBur ,
        isnull (DES_Reporte_financiero_OV. TotalCostPrj , '')as  TotalCostPrj ,
        isnull (DES_Reporte_financiero_OV.JobNumsDirectOV, '')as JobNumsDirectOV,
        isnull (DES_Reporte_financiero_OV. MaterialDir , '')as  MaterialDir ,
        isnull (DES_Reporte_financiero_OV. LaborDir , '')as  LaborDir ,
        isnull (DES_Reporte_financiero_OV. BurdenDir , '')as  BurdenDir ,
        isnull (DES_Reporte_financiero_OV. SubcontractDir , '')as  SubcontractDir ,
        isnull (DES_Reporte_financiero_OV. MtlBurDir , '')as  MtlBurDir ,
        isnull (DES_Reporte_financiero_OV. TotalCostDir , '')as  TotalCostDir ,
        isnull (DES_Reporte_financiero_OV.TotalCost, '')as TotalCost,
        isnull (DES_Reporte_financiero_OV.Utilidad, '')as Utilidad,
        isnull (DES_Reporte_financiero_OV.[%2], '')as [%2]

    FROM
        DES_Reporte_financiero_OV
    u4   No se pudo establecer conexiÃ³n con la base de datosÚCompanyr   ÚOVé   ÚFechaOVé   Ú	OrderCodeé   u	   DivisiÃ³né   u   ClasificaciÃ³né   ÚDepartamentoé   ÚDepartamentClassé   ÚVendedoré   ÚCustNumé	   ÚCustIDé
   ÚClienteé   Ú
TotalLinesé   Ú	EstatusOVé   ÚImporteé   Ú	Descuentoé   ÚMiscé   ÚSubtotalé   ÚImpuestoé   ÚRedondeoé   ÚTotal_de_la_Ordené   ÚMonedaé   ÚCambioé   Ú
ImporteMXNé   ÚDescuentoMXNé   ÚMiscMXNé   ÚSubtotalMXNé   ÚImpuestoMXNé   ÚRedondeoMXNé   ÚTotal_de_la_Orden_MXNé   ÚTerminos_OVé   ÚDias_de_pago_OVé   ÚComentario_de_OVé    ÚTipoDeVentaé!   Ú	Facturadoé"   ÚFacturadoIVAé#   ÚFacturadoMXNé$   ÚFacturadoIVAMXNé%   ÚListaDeFacturasé&   ÚFechaUltimaFacturaé'   ÚFacturacion_Manualé(   ÚComentario_de_correccioné)   ÚPor_Facturaré*   Ú
porcentageé+   u	   RevisiÃ³né,   ÚAllProjectIDé-   ÚColumna1é.   ÚJobNumsInProjecté/   ÚMaterialé0   ÚLaboré1   ÚBurdené2   é3   é4   é5   é6   é7   é8   é9   é:   é;   é<   é=   é>   é?   )ÚSubcontractÚMtlBurÚTotalCostPrjÚJobNumsDirectOVÚMaterialDirÚLaborDirÚ	BurdenDirÚSubcontractDirÚ	MtlBurDirÚTotalCostDirÚ	TotalCostÚUtilidadÚporcentage2z.[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\GSYCDES_Reporte_financiero_OVSQL.pyÚget_ConsultarŽ      sÉ  € ðE€EðLQÜ)Ó+ˆÞÜ!Ð"XÓYÐYà—‘“ˆØ‰uÔØ—/‘/Ó#ˆñH !óEB"óD !#ðCAØ˜3˜q™6ðAàc˜!‘fðAð ˜3˜q™6ðAð ˜S ™Vð	Að
 ˜S ™VðAð ! # a¡&ðAð   A¡ðAð # C¨¡FðAð ˜C ™FðAð ˜3˜q™6ðAð ˜#˜b™'ðAð ˜3˜r™7ðAð ˜c "™gðAð ˜S ™WðAð ˜3˜r™7ðAð  ˜S ™Wð!Að" ˜˜B™ñ#Að$ ˜C ™Gð%Að& ˜C ™Gð'Að( ˜C ™Gð)Að* $ S¨¡Wð+Að, ˜#˜b™'ð-Að. ˜#˜b™'ð/Að0 ˜c "™gð1Að2   B¡ð3Að4 ˜3˜r™7ð5Að6 ˜s 2™wð7Að8 ˜s 2™wð9Að: ˜s 2™wð;Að< (¨¨R©ð=Að> ˜s 2™wð?Að@ " 3 r¡7ðAAðB # C¨¡GðCAðD ˜s 2™wòEAðF ˜S ™WðGAðH   B¡ðIAðJ   B¡ðKAðL " 3 r¡7ðMAðN " 3 r¡7ðOAðP % c¨"¡gðQAðR % c¨"¡gðSAðT +¨C°©GðUAðV   B¡ðWAðX ˜c "™gðYAðZ ˜S ™Wð[Að\   B¡ð]Að^ ˜C ™Gð_Að` # C¨¡GðaAðb ˜C ™GðcAðd ˜˜R™ðeAðf ˜#˜b™'ñgAðh  # 2™wØ˜b™'Ø # B¡Ø#& r¡7Ø" 2™wØ ™GØ  ™WØ"% b¡'Ø  ™WØ # B¡Ø  ™WØ ™GØ" 2™wöAAñB !ñEB"öN ØJ‰JLð ùòOB"øôF ó ÜÐ>¸q¸cÐBÔCØŒ	æØJ‰JLð ûð	ûö ØJ‰JLð úsC   „AG0 ÁE;G+ÇG0 Ç+G0 Ç0
H,Ç:H'È	H,È
H/ È'H,È,H/ È/I	N)ÚConsultas_SQL.conexionr   rŽ   © ó    r   Ú<module>r’      s   ðõ
 >óYr‘   