[Erp5-report] r16504 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 20 15:37:31 CEST 2007
Author: jerome
Date: Thu Sep 20 15:37:31 2007
New Revision: 16504
URL: http://svn.erp5.org?rev=16504&view=rev
Log:
Handle the case where inventory_brain.total_price is None
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=16504&r1=16503&r2=16504&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 Sep 20 15:37:31 2007
@@ -85,6 +85,7 @@
qty_precision = precision_cache[resource_relative_url]\n
return round(value, qty_precision)\n
\n
+\n
at_date = context.getStopDate()\n
assert at_date\n
\n
@@ -175,8 +176,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
profit_and_loss_quantity += total_price\n
\n
@@ -206,8 +207,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
profit_and_loss_quantity += total_price\n
\n
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=16504&r1=16503&r2=16504&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Thu Sep 20 15:37:31 2007
@@ -1,1 +1,1 @@
-409
+411
More information about the Erp5-report
mailing list