[Erp5-report] r15956 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 30 15:14:12 CEST 2007


Author: jerome
Date: Thu Aug 30 15:14:11 2007
New Revision: 15956

URL: http://svn.erp5.org?rev=15956&view=rev
Log:
Pass "brain.total_price or 0" instead of "brain.total_price" to roundCurrency, for cases where total_price is NULL in SQL

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml?rev=15956&r1=15955&r2=15956&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml Thu Aug 30 15:14:11 2007
@@ -138,8 +138,8 @@
         group_by_resource=1,\n
         **inventory_param_dict):\n
   \n
-  total_price = roundCurrency(inventory.total_price, section_currency)\n
-  quantity = roundCurrency(inventory.total_quantity,\n
+  total_price = roundCurrency(inventory.total_price or 0, section_currency)\n
+  quantity = roundCurrency(inventory.total_quantity or 0,\n
                            inventory.resource_relative_url)\n
 \n
   if inventory.resource_uid != section_currency_uid:\n

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=15956&r1=15955&r2=15956&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Thu Aug 30 15:14:11 2007
@@ -1,1 +1,1 @@
-392
+393




More information about the Erp5-report mailing list