From 3b82db91a5db74a69412cc4ce737e0ccc3d43933 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 8 Oct 2009 12:14:00 +0000 Subject: [PATCH] As Bank Account state is not historicised, it is not possible to do a report on openned bank account at a given date (in past), which might be required. Make this possible by listing accounts both in opened and closed states. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29472 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../BankAccount_getReportInformationList.xml | 6 +++--- bt5/erp5_banking_core/bt/revision | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getReportInformationList.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getReportInformationList.xml index 02399ef359..94a4aedb1b 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getReportInformationList.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankAccount_getReportInformationList.xml @@ -76,11 +76,11 @@ if reference is None:\n raise ValueError, message\n \n #context.log(\'reference\',reference)\n -account_list = catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\')\n -# context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\',src__=1))\n +account_list = catalog(string_index=reference, portal_type=portal_type, validation_state=(\'valid\', \'closed\'))\n +# context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=(\'valid\', \'closed\'),src__=1))\n # context.log(\'len 1\',len(account_list))\n if len(account_list) == 0:\n - account_list = catalog(string_index="%%%s%%" % reference, portal_type=portal_type, validation_state=\'valid\')\n + account_list = catalog(string_index="%%%s%%" % reference, portal_type=portal_type, validation_state=(\'valid\', \'closed\'))\n #context.log(\'len 2\',len(account_list))\n if len(account_list) == 0:\n message = Message(domain="ui", message="No bank account have this reference")\n diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 9889789bab..1b79f38e25 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -499 \ No newline at end of file +500 -- 2.30.9