Commit 1cc57ebe authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-02-02 mame

* modify activity_restart_check constraint so that it's only taken into account when activity_restart_check is equal to 1.
*change also types of date, instead of string use type date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7f430a9b
......@@ -354,7 +354,7 @@ class P0:
},
{ 'id' : 'previous_activity_yes_check'
, 'description': 'OUI'
, 'type' : 'string'
, 'type' : 'boolean'
, 'mode' : 'w'
},
{ 'id' : 'previous_owner_address'
......
......@@ -164,7 +164,7 @@ class P0Constraint:
'description' : 'Property must be definied',
'type' : 'PropertyExistence',
'previous_activity_corporate_registration_code' : None,
'condition' : 'python: object.getActivityRestartCheck() != None',
'condition' : 'python: object.getActivityRestartCheck() ==1',
'message_no_such_property': 'for a restart activity you must define the previous registration code',
'message_property_not_set': 'for a restart activity you must define the previous registration code',
},
......
......@@ -190,9 +190,9 @@ class P2:
, 'type' : 'string'
, 'mode' : 'w'
},
{ 'id' : 'first_modification_date'
{ 'id' : 'first_administrator_modification_date'
, 'description': 'Date'
, 'type' : 'string'
, 'type' : 'date'
, 'mode' : 'w'
},
{ 'id' : 'first_administrator_citizenship'
......@@ -452,7 +452,7 @@ class P2:
},
{ 'id' : 'second_administrator_modification_date'
, 'description': 'Date de modification'
, 'type' : 'string'
, 'type' : 'date'
, 'mode' : 'w'
},
{ 'id' : 'second_spouse_birthdate'
......
......@@ -54,7 +54,7 @@ class P2Constraint:
'description' : 'Property company modifcation must be definied',
'type' : 'PropertyExistence',
'company_modifications' : None,
'condition' : 'python: object.getEstablishmentModification() == None',
'condition' : 'python: object.getEstablishmentModification() == 0',
},
{ 'id' : 'establishment_modification_existence',
'description' : 'Property my establishment modification must be definied',
......
920
\ No newline at end of file
921
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment