projets
/
auf_rh_dae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix annee
[auf_rh_dae.git]
/
project
/
rh
/
models.py
diff --git
a/project/rh/models.py
b/project/rh/models.py
index
a8bacd1
..
6a38a74
100644
(file)
--- a/
project/rh/models.py
+++ b/
project/rh/models.py
@@
-699,7
+699,7
@@
class DossierComparaison_(models.Model):
abstract = True
def taux_devise(self):
abstract = True
def taux_devise(self):
- annee = self.dossier.poste.date_debut.year
+ annee = self.dossier.contrat_date_debut.year:
taux = [tc.taux for tc in TauxChange.objects.filter(devise=self.devise, annee=annee)]
taux = set(taux)
if len(taux) != 1:
taux = [tc.taux for tc in TauxChange.objects.filter(devise=self.devise, annee=annee)]
taux = set(taux)
if len(taux) != 1: