[Erp5-report] r34186 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 29 15:18:31 CEST 2010
Author: jerome
Date: Mon Mar 29 15:18:29 2010
New Revision: 34186
URL: http://svn.erp5.org?rev=34186&view=rev
Log:
if the organisation contains bank accounts, only take into account those.
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml?rev=34186&r1=34185&r2=34186&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getBankAccountItemList.xml [utf8] Mon Mar 29 15:18:29 2010
@@ -72,18 +72,20 @@
if skip_invalidated_bank_accounts:\n
search_kw[\'validation_state\'] = \'!=invalidated\'\n
\n
-if group_value is None:\n
- search_kw[\'parent_uid\'] = organisation_value.getUid()\n
-else:\n
+# if organisation contains bank accounts, only take into account those.\n
+bank_account_list = organisation_value.searchFolder(**search_kw)\n
+\n
+if not bank_account_list:\n
uid_list = []\n
while group_value.getPortalType() != \'Base Category\':\n
uid_list.append(group_value.getUid())\n
group_value = group_value.getParentValue()\n
search_kw[\'parent_strict_group_uid\'] = uid_list\n
search_kw[\'parent_portal_type\'] = \'Organisation\'\n
+ bank_account_list = portal.portal_catalog(**search_kw)\n
\n
item_list = [(\'\', \'\')]\n
-for bank in portal.portal_catalog(**search_kw):\n
+for bank in bank_account_list:\n
bank = bank.getObject()\n
\n
if bank.getReference() and bank.getTitle() \\\n
@@ -147,10 +149,11 @@
<string>group_value</string>
<string>search_kw</string>
<string>_write_</string>
+ <string>_apply_</string>
+ <string>bank_account_list</string>
<string>uid_list</string>
<string>item_list</string>
<string>_getiter_</string>
- <string>_apply_</string>
<string>bank</string>
</tuple>
</value>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=34186&r1=34185&r2=34186&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Mon Mar 29 15:18:29 2010
@@ -1,1 +1,1 @@
-1150
+1151
More information about the Erp5-report
mailing list