[Erp5-report] r28303 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 6 17:55:24 CEST 2009
Author: jerome
Date: Thu Aug 6 17:55:23 2009
New Revision: 28303
URL: http://svn.erp5.org?rev=28303&view=rev
Log:
when converting for source, don't use quantity, but -quantity (this was only
working for destination)
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_convertSourcePrice.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_convertSourcePrice.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_convertSourcePrice.xml?rev=28303&r1=28302&r2=28303&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_convertSourcePrice.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_convertSourcePrice.xml [utf8] Thu Aug 6 17:55:23 2009
@@ -91,7 +91,7 @@
#update the corresponding price and round it according to the precision of\n
#the converted currency\n
line.setSourceTotalAssetPrice(\n
- round(exchange_ratio*(line.getQuantity()) ,precision))\n
+ round(exchange_ratio * (-line.getQuantity()), precision))\n
\n
\n
msg = context.Base_translateString(\'Price converted.\')\n
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=28303&r1=28302&r2=28303&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu Aug 6 17:55:23 2009
@@ -1,1 +1,1 @@
-954
+955
More information about the Erp5-report
mailing list