Created
January 7, 2010 00:45
-
-
Save batok/270850 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if int(row2[1]) == 1: | |
if int(row2[2]) > 0: | |
dias = int(row2[2]) | |
if self.parent.IdEmpresa == 3 and dia_fecha_final == 31 and dias == 15: | |
dias += 1 | |
if self.parent.IdEmpresa == 3 and mes_fecha_final == 2 and dias == 15 and dia_fecha_final in (28,29): | |
dias = final_menos_inicial | |
else: | |
dias = int(row2[3]) | |
if mes_fecha_final not in mesesbimestre[bimestre]: | |
#si la fecha final es de un mes distinto del bimestre es porque hay que tomar en cuenta eloverhead del dia | |
dias -= dia_fecha_final | |
totdias += dias |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment