|
|
@@ -129,8 +129,8 @@ def main(CodeAgent, MoisRH, AnneeRH, auto=False):
|
|
|
for fraisdep in index_dep.values() :
|
|
|
|
|
|
distance2 = (fraisdep.Distance2_perso + fraisdep.Distance2_service)
|
|
|
- fraisdep.HeuresDep = next((bareme.Valeur for bareme in baremes if bareme.NomBareme == 'Heures de route' and bareme.BorneInf <= distance2 and bareme.BorneSup > distance2))
|
|
|
- fraisdep.HeuresDepNuit = next((bareme.Valeur for bareme in baremes if bareme.NomBareme == 'Heures de route (nuit)' and bareme.BorneInf <= distance2 and bareme.BorneSup > distance2))
|
|
|
+ fraisdep.HeuresDep = next((bareme.Valeur for bareme in baremes if bareme.NomBareme == 'Heures de route' and bareme.BorneInf <= distance2 and bareme.BorneSup >= distance2))
|
|
|
+ fraisdep.HeuresDepNuit = next((bareme.Valeur for bareme in baremes if bareme.NomBareme == 'Heures de route (nuit)' and bareme.BorneInf <= distance2 and bareme.BorneSup >= distance2))
|
|
|
|
|
|
sql = Sql.format("""INSERT INTO tbl_FormDep
|
|
|
( IDSuivi, CodeAgent, JourRH, MoisRH,
|