[Erp5-report] r16436 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 18 12:45:46 CEST 2007


Author: jerome
Date: Tue Sep 18 12:45:46 2007
New Revision: 16436

URL: http://svn.erp5.org?rev=16436&view=rev
Log:
Use type groups instead of hardcoding "Balance Transaction Line"

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml?rev=16436&r1=16435&r2=16436&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance.xml Tue Sep 18 12:45:46 2007
@@ -79,7 +79,12 @@
 getInventory = portal.portal_simulation.getInventoryAssetPrice\n
 N_ = portal.Base_translateString\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
                                   portal.getPortalAccountingMovementTypeList()\n
                                   if t not in balance_movement_type_list ]\n
@@ -659,11 +664,12 @@
                             <string>getInventoryList</string>
                             <string>getInventory</string>
                             <string>N_</string>
-                            <string>balance_movement_type_list</string>
+                            <string>inventory_movement_type_list</string>
                             <string>append</string>
                             <string>$append0</string>
                             <string>_getiter_</string>
                             <string>t</string>
+                            <string>balance_movement_type_list</string>
                             <string>accounting_movement_type_list</string>
                             <string>dict</string>
                             <string>inventory_params</string>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=16436&r1=16435&r2=16436&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Tue Sep 18 12:45:46 2007
@@ -1,1 +1,1 @@
-402
+403




More information about the Erp5-report mailing list