Commit 4b12ee32 authored by Aurel's avatar Aurel

check counter is opened

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18840 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbe37bef
......@@ -100,6 +100,7 @@ if destination is None:\n
\n
# check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=destination, date=transaction.getStartDate())\n
transaction.Baobab_checkCounterOpened(site=destination)\n
\n
site = transaction.getDestinationValue()\n
# I comment theses lines, because it\'s not necessary to control if all counter is opened or not at the moment : CISSE\n
......
......@@ -73,6 +73,7 @@ from Products.ERP5Type.Message import Message\n
ob = state_change[\'object\']\n
\n
ob.Baobab_checkCounterDateOpen(site=ob.getSource(), date=ob.getStartDate())\n
context.Baobab_checkCounterOpened(ob.getSource())\n
\n
if ob.getDestinationTotalAssetPrice() == 0:\n
msg = Message(domain = "ui", message="Exchanged amount must be defined on document.")\n
......@@ -139,6 +140,7 @@ if exchanged_mutilated_banknote_total_price != ob.getDestinationTotalAssetPrice(
<string>_getitem_</string>
<string>ob</string>
<string>_getattr_</string>
<string>context</string>
<string>msg</string>
<string>len</string>
<string>exchanged_mutilated_banknote_total_price</string>
......
565
\ No newline at end of file
566
\ 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