Commit 76e670d5 authored by Sebastien Robin's avatar Sebastien Robin

check baobab source and destination instead of only source and destination in checkbook delivery

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14024 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b014db5b
...@@ -75,7 +75,7 @@ transaction = state_change[\'object\']\n ...@@ -75,7 +75,7 @@ transaction = state_change[\'object\']\n
\n \n
\n \n
date = transaction.getStartDate()\n date = transaction.getStartDate()\n
source = transaction.getSource(None)\n source = transaction.getBaobabSource(None)\n
if source is None:\n if source is None:\n
msg = Message(domain=\'ui\', message=\'No counter defined.\')\n msg = Message(domain=\'ui\', message=\'No counter defined.\')\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
...@@ -88,12 +88,12 @@ if not transaction.Baobab_checkCounterDateOpen(site=source, date=date):\n ...@@ -88,12 +88,12 @@ if not transaction.Baobab_checkCounterDateOpen(site=source, date=date):\n
msg = Message(domain = "ui", message="Counter Date is not opened")\n msg = Message(domain = "ui", message="Counter Date is not opened")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
site = transaction.getSourceValue()\n #site = transaction.getBaobabSourceValue()\n
\n \n
if \'guichet\' in site.getVaultType():\n #if \'guichet\' in site.getVaultType():\n
if not context.Baobab_checkCounterOpened(site):\n # if not context.Baobab_checkCounterOpened(site):\n
msg = Message(domain = "ui", message="Counter is not opened")\n # msg = Message(domain = "ui", message="Counter is not opened")\n
raise ValidationFailed, (msg,)\n # raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -150,8 +150,6 @@ if \'guichet\' in site.getVaultType():\n ...@@ -150,8 +150,6 @@ if \'guichet\' in site.getVaultType():\n
<string>source</string> <string>source</string>
<string>msg</string> <string>msg</string>
<string>at_date</string> <string>at_date</string>
<string>site</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
160 162
\ No newline at end of file \ 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