diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml index 4c0282e831ef7ddcfa11c5b1d996bb881b6dbf72..250408c43b02e33a9701b41da668c6993aff0efa 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml @@ -56,7 +56,7 @@ params[\'stat\'] = 1\n params[\'omit_input\'] = 1\n params[\'omit_output\'] = 0\n \n -if params.get(\'operation_date\', {}).get(\'query\'):\n +if (params.get(\'operation_date\') or {}).get(\'query\'):\n buildSQLQuery = context.portal_catalog.buildSQLQuery\n params[\'source_section_where_expression\'] = buildSQLQuery(\n **{\'delivery.start_date\': params[\'operation_date\']})[\'where_expression\']\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml index 51d446517877b267fadd52f3190067f53034e22a..d10afe694b5f04eaf247befff2b8bbe8ebc2c2a5 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml @@ -56,7 +56,7 @@ params[\'stat\'] = 1\n params[\'omit_output\'] = 1\n params[\'omit_input\'] = 0\n \n -if params.get(\'operation_date\', {}).get(\'query\'):\n +if (params.get(\'operation_date\') or {}).get(\'query\'):\n buildSQLQuery = context.portal_catalog.buildSQLQuery\n params[\'source_section_where_expression\'] = buildSQLQuery(\n **{\'delivery.start_date\': params[\'operation_date\']})[\'where_expression\']\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 33bf6f677da8de591344ba9b9c88520d20d6659a..e7814ff883de0e883c56a8257808caf2a12557f8 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1414 \ No newline at end of file +1415 \ No newline at end of file