Commit 364071d6 authored by Vincent Pelletier's avatar Vincent Pelletier

Automatically limit the available emission letters to the one matching the counter's country.

Limit the available cash status to a hardcoded list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12998 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55d62a49
...@@ -83,8 +83,11 @@ if currency != context.Baobab_getPortalReferenceCurrencyID():\n ...@@ -83,8 +83,11 @@ if currency != context.Baobab_getPortalReferenceCurrencyID():\n
emission_letter = [\'not_defined\']\n emission_letter = [\'not_defined\']\n
variation = [\'not_defined\']\n variation = [\'not_defined\']\n
else:\n else:\n
cash_status = None\n cash_status = [\'to_sort\', \'new_emitted\', \'valid\', \'not_defined\', \'mutilated\', \'error\']\n
emission_letter = None\n site_codification = context.Baobab_getVaultSite(context.getSourceValue().getRelativeUrl()).getCodification()\n
emission_letter = [\'not_defined\', ]\n
if site_codification not in (\'\', None):\n
emission_letter.append(site_codification[0].lower())\n
variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n
\n \n
cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n
...@@ -158,6 +161,8 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -158,6 +161,8 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<string>cash_status</string> <string>cash_status</string>
<string>emission_letter</string> <string>emission_letter</string>
<string>variation</string> <string>variation</string>
<string>site_codification</string>
<string>_getitem_</string>
<string>False</string> <string>False</string>
<string>cash_detail_dict</string> <string>cash_detail_dict</string>
</tuple> </tuple>
......
187 189
\ 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