Commit 1c2bda38 authored by Jérome Perrin's avatar Jérome Perrin

Use type groups instead of hardcoding "Balance Transaction Line"

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5c6b326d
...@@ -79,7 +79,12 @@ getInventoryList = portal.portal_simulation.getInventoryList\n ...@@ -79,7 +79,12 @@ getInventoryList = portal.portal_simulation.getInventoryList\n
getInventory = portal.portal_simulation.getInventoryAssetPrice\n getInventory = portal.portal_simulation.getInventoryAssetPrice\n
N_ = portal.Base_translateString\n N_ = portal.Base_translateString\n
\n \n
balance_movement_type_list = [\'Balance Transaction Line\']\n inventory_movement_type_list = portal.getPortalInventoryMovementTypeList()\n
# Balance Movement Type list is all movements that are both inventory movement\n
# and accounting movement\n
balance_movement_type_list = [ t for t in\n
portal.getPortalAccountingMovementTypeList()\n
if t in inventory_movement_type_list ]\n
accounting_movement_type_list = [ t for t in\n accounting_movement_type_list = [ t for t in\n
portal.getPortalAccountingMovementTypeList()\n portal.getPortalAccountingMovementTypeList()\n
if t not in balance_movement_type_list ]\n if t not in balance_movement_type_list ]\n
...@@ -659,11 +664,12 @@ return line_list\n ...@@ -659,11 +664,12 @@ return line_list\n
<string>getInventoryList</string> <string>getInventoryList</string>
<string>getInventory</string> <string>getInventory</string>
<string>N_</string> <string>N_</string>
<string>balance_movement_type_list</string> <string>inventory_movement_type_list</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>t</string> <string>t</string>
<string>balance_movement_type_list</string>
<string>accounting_movement_type_list</string> <string>accounting_movement_type_list</string>
<string>dict</string> <string>dict</string>
<string>inventory_params</string> <string>inventory_params</string>
......
402 403
\ 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