Commit 864c76db authored by Yusei Tahara's avatar Yusei Tahara

Accounting operation date of purchase invoice transaction is stop_date.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38877 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ecd75a62
No related merge requests found
...@@ -48,11 +48,23 @@ class AccountingTransactionConstraint: ...@@ -48,11 +48,23 @@ class AccountingTransactionConstraint:
'message_property_not_set': 'Date must be defined', 'message_property_not_set': 'Date must be defined',
'message_no_such_property': 'Date must be defined', 'message_no_such_property': 'Date must be defined',
'condition' : 'python: object.getSimulationState() not' 'condition' : 'python: object.getSimulationState() not'
' in ("cancelled", "deleted")', ' in ("cancelled", "deleted")'
' and object.portal_type!="Purchase Invoice Transaction"',
'type': 'PropertyExistence', 'type': 'PropertyExistence',
'start_date' : 1, 'start_date' : 1,
}, },
{ 'id': 'date_existence_purchase',
'description': 'Date must be defined',
'message_property_not_set': 'Date must be defined',
'message_no_such_property': 'Date must be defined',
'condition' : 'python: object.getSimulationState() not'
' in ("cancelled", "deleted")'
' and object.portal_type=="Purchase Invoice Transaction"',
'type': 'PropertyExistence',
'stop_date' : 1,
},
{ 'id': 'currency_existence', { 'id': 'currency_existence',
'description': 'Currency must be defined', 'description': 'Currency must be defined',
'message_category_not_set': 'message_category_not_set':
......
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