Commit 240a3bf9 authored by Vincent Pelletier's avatar Vincent Pelletier

Exchangeable mutilated banknotes are to be put in "caisse_courante" vault when sent to HQ.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30319695
...@@ -68,7 +68,10 @@ ...@@ -68,7 +68,10 @@
<value> <string>mutilated_banknote = context.getParentValue()\n <value> <string>mutilated_banknote = context.getParentValue()\n
if not(mutilated_banknote.isSentToHeadquaters(False)) and \\\n if not(mutilated_banknote.isSentToHeadquaters(False)) and \\\n
mutilated_banknote.getSimulationState() in (\'finished\', \'delivered\', \'deposited\'):\n mutilated_banknote.getSimulationState() in (\'finished\', \'delivered\', \'deposited\'):\n
if mutilated_banknote.getCausality() is None:\n
return "%s/encaisse_des_billets_et_monnaies/entrante" % (mutilated_banknote.getSource(), )\n return "%s/encaisse_des_billets_et_monnaies/entrante" % (mutilated_banknote.getSource(), )\n
else:\n
return "site/%s/surface/caisse_courante/encaisse_des_billets_et_monnaies" % (mutilated_banknote.getSite(), )\n
return None\n return None\n
</string> </value> </string> </value>
</item> </item>
......
607 608
\ 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