|
|
@@ -542,7 +542,7 @@ class Mn2Checker(BaseChecker):
|
|
|
Contrôle les données des équipements de type BPE / PBO """
|
|
|
|
|
|
for equipement in self.equipements:
|
|
|
- if equipement.EQ_TYPE == "BAI":
|
|
|
+ if equipement.EQ_TYPE == "BAI" or not equipement.EQ_DATE_IN:
|
|
|
continue
|
|
|
for field in ["EQ_CAPFO", "EQ_NBMXEQ", "EQ_NBCAB", "EQ_DIMENS", "EQ_TYPEQ", "EQ_TYPSTRC"]:
|
|
|
if not hasattr(equipement, field):
|
|
|
@@ -557,11 +557,19 @@ class Mn2Checker(BaseChecker):
|
|
|
for artere in self.arteres:
|
|
|
if artere.AR_TYPE_FO in ["FACADE", "AERIEN"]:
|
|
|
continue
|
|
|
- for field in ["AR_NB_FOUR", "AR_FOU_DIS", "AR_DIAM_FO", "AR_FAB", "AR_REFFAB", "AR_AIGUIL", "AR_COULEUR"]:
|
|
|
+
|
|
|
+ for field in ["AR_NB_FOUR", "AR_FOU_DIS", "AR_DIAM_FO", "AR_AIGUIL"]:
|
|
|
if not hasattr(artere, field):
|
|
|
self.log_error("Le champs est obligatoire: {}".format(field), item=artere)
|
|
|
elif getattr(artere, field) == "":
|
|
|
self.log_error("Le champs doit être renseigné: {}".format(field), item=artere)
|
|
|
+
|
|
|
+ if artere.AR_DATE_IN:
|
|
|
+ for field in ["AR_COULEUR", "AR_FAB", "AR_REFFAB"]:
|
|
|
+ if not hasattr(artere, field):
|
|
|
+ self.log_error("Le champs est obligatoire: {}".format(field), item=artere)
|
|
|
+ elif getattr(artere, field) == "":
|
|
|
+ self.log_error("Le champs doit être renseigné: {}".format(field), item=artere)
|
|
|
|
|
|
def test_dimensions_fourreaux(self):
|
|
|
""" Dimensions logiques: fourreaux
|