[Erp5-report] r12541 - /erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_s...

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Feb 4 14:09:50 CET 2007


Author: jerome
Date: Sun Feb  4 14:09:49 2007
New Revision: 12541

URL: http://svn.erp5.org?rev=12541&view=rev
Log:
don't fail if brain.total_price is None


Modified:
    erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getM9AccountingTransactionLineList.xml

Modified: erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getM9AccountingTransactionLineList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getM9AccountingTransactionLineList.xml?rev=12541&r1=12540&r2=12541&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getM9AccountingTransactionLineList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting_l10n_fr_m9/SkinTemplateItem/portal_skins/erp5_accounting_l10n_fr_m9/AccountingTransactionModule_getM9AccountingTransactionLineList.xml Sun Feb  4 14:09:49 2007
@@ -130,7 +130,7 @@
              date=brain.date,\n
              causality_title="\\n".join(transaction.getCausalityTitleList() or []) ,\n
              debit=max(brain.total_price, 0),\n
-             credit=max(-brain.total_price, 0), )\n
+             credit=max(-(brain.total_price or 0), 0), )\n
   line_list.append(obj)\n
   \n
   if brain.node_relative_url:\n




More information about the Erp5-report mailing list