Commit dba9095b authored by Vincent Pelletier's avatar Vincent Pelletier

Check the counter date against the date of the document and the site of the...

Check the counter date against the date of the document and the site of the counter associated which the document.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 81a84d20
......@@ -76,7 +76,7 @@ from Products.ERP5Type.Message import Message\n
ob = state_change[\'object\']\n
state = ob.getSimulationState()\n
\n
if not ob.Baobab_checkCounterDateOpen():\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
......@@ -72,7 +72,7 @@
from Products.ERP5Type.Message import Message\n
\n
ob = state_change[\'object\']\n
if not ob.Baobab_checkCounterDateOpen():\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
......@@ -73,7 +73,7 @@ from Products.ERP5Type.Message import Message\n
\n
ob = state_change[\'object\']\n
\n
if not ob.Baobab_checkCounterDateOpen():\n
if not ob.Baobab_checkCounterDateOpen(site=ob.getDestination(), date=ob.getStartDate()):\n
msg = Message(domain = "ui", message="Transaction not in the good accounting date")\n
raise ValidationFailed, (msg,)\n
\n
......
195
\ No newline at end of file
200
\ 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