[Erp5-report] r38877 yusei - /erp5/trunk/products/ERP5/PropertySheet/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 5 04:07:22 CEST 2010


Author: yusei
Date: Tue Oct  5 04:07:19 2010
New Revision: 38877

URL: http://svn.erp5.org?rev=38877&view=rev
Log:
Accounting operation date of purchase invoice transaction is stop_date.

Modified:
    erp5/trunk/products/ERP5/PropertySheet/AccountingTransactionConstraint.py

Modified: erp5/trunk/products/ERP5/PropertySheet/AccountingTransactionConstraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/AccountingTransactionConstraint.py?rev=38877&r1=38876&r2=38877&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/AccountingTransactionConstraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/AccountingTransactionConstraint.py [utf8] Tue Oct  5 04:07:19 2010
@@ -48,11 +48,23 @@ class AccountingTransactionConstraint:
       'message_property_not_set': 'Date must be defined',
       'message_no_such_property': 'Date must be defined',
       'condition' : 'python: object.getSimulationState() not'
-                     ' in ("cancelled", "deleted")',
+                     ' in ("cancelled", "deleted")'
+                     ' and object.portal_type!="Purchase Invoice Transaction"',
       'type': 'PropertyExistence',
       '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',
       'description': 'Currency must be defined',
       'message_category_not_set':




More information about the Erp5-report mailing list