Commit 7df96e31 authored by Aurel's avatar Aurel

when classification, don't display line for coin

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14979 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e60f9e3
...@@ -67,11 +67,17 @@ ...@@ -67,11 +67,17 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n <value> <string>request = context.REQUEST\n
\n \n
# no coin if classification\n
if \'ventilation\' in context.getSource(""):\n
coin = 0\n
else:\n
coin = 1\n
\n
cash_detail_dict = {\'line_portal_type\' : \'Incoming Cash Sorting Incident Line\'\n cash_detail_dict = {\'line_portal_type\' : \'Incoming Cash Sorting Incident Line\'\n
, \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n , \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n
, \'cash_status_list\' : None\n , \'cash_status_list\' : None\n
, \'emission_letter_list\' : None\n , \'emission_letter_list\' : None\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n , \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=coin)\n
, \'currency_cash_portal_type\': None\n , \'currency_cash_portal_type\': None\n
, \'read_only\' : False\n , \'read_only\' : False\n
, \'column_base_category\' : \'variation\'\n , \'column_base_category\' : \'variation\'\n
...@@ -132,6 +138,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -132,6 +138,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>request</string>
<string>coin</string>
<string>None</string> <string>None</string>
<string>False</string> <string>False</string>
<string>cash_detail_dict</string> <string>cash_detail_dict</string>
......
...@@ -67,11 +67,17 @@ ...@@ -67,11 +67,17 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>request = context.REQUEST\n <value> <string>request = context.REQUEST\n
\n \n
# no coin if classification\n
if \'ventilation\' in context.getSource(""):\n
coin = 0\n
else:\n
coin = 1\n
\n
cash_detail_dict = {\'line_portal_type\' : \'Outgoing Cash Sorting Incident Line\'\n cash_detail_dict = {\'line_portal_type\' : \'Outgoing Cash Sorting Incident Line\'\n
, \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n , \'operation_currency\' : context.Baobab_getPortalReferenceCurrencyID()\n
, \'cash_status_list\' : None\n , \'cash_status_list\' : None\n
, \'emission_letter_list\' : None\n , \'emission_letter_list\' : None\n
, \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=1)\n , \'variation_list\' : context.Baobab_getResourceVintageList(banknote=1, coin=coin)\n
, \'currency_cash_portal_type\': None\n , \'currency_cash_portal_type\': None\n
, \'read_only\' : False\n , \'read_only\' : False\n
, \'column_base_category\' : \'variation\'\n , \'column_base_category\' : \'variation\'\n
...@@ -132,6 +138,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n ...@@ -132,6 +138,7 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string> <string>request</string>
<string>coin</string>
<string>None</string> <string>None</string>
<string>False</string> <string>False</string>
<string>cash_detail_dict</string> <string>cash_detail_dict</string>
......
364 366
\ 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