diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceCredit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceCredit.xml index 33331d7c9e18b67971c238fa7f6fea2cb9460b74..c8a30607ff0f8c933c72897b54b40688c2985bac 100755 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceCredit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceCredit.xml @@ -70,15 +70,15 @@ params = selection.getParams()\n else:\n params = {}\n -kw = {} \n +kw = {}\n kw[\'section_category\'] = params.get(\'section_category\')\n kw[\'stat\'] = 1\n -kw[\'omit_output\'] = 1\n +kw[\'omit_input\'] = 1\n kw[\'transaction\'] = context.getUid()\n \n -result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, **kw)\n +result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, selection_params=kw, **kw)\n row = result[0]\n -return float(\'%.02f\' % (row.total_price or 0.0))\n +return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n </string> </value> </item> <item> diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceDebit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceDebit.xml index cf2da90bc9a149e51b8f426de08ce105182bfbb3..d09e7b843365fb316d49b08b47bc833d375dbdcd 100755 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceDebit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getSourceDebit.xml @@ -70,15 +70,15 @@ params = selection.getParams()\n else:\n params = {}\n -kw = {}\n +kw = {} \n kw[\'section_category\'] = params.get(\'section_category\')\n kw[\'stat\'] = 1\n -kw[\'omit_input\'] = 1\n +kw[\'omit_output\'] = 1\n kw[\'transaction\'] = context.getUid()\n \n -result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, selection_params=kw, **kw)\n +result = context.AccountingTransactionModule_zGetAccountingTransactionList(selection=selection, **kw)\n row = result[0]\n -return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n +return float(\'%.02f\' % (row.total_price or 0.0))\n </string> </value> </item> <item>