[Erp5-report] r13971 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 5 13:27:25 CEST 2007
Author: vincent
Date: Thu Apr 5 13:27:23 2007
New Revision: 13971
URL: http://svn.erp5.org?rev=13971&view=rev
Log:
Bad copy-paste of code refering to context. Moreover, price is already known, just reuse it.
Modified:
erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml
erp5/trunk/bt5/erp5_banking_cash/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml?rev=13971&r1=13970&r2=13971&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/account_incident_workflow/scripts/checkConsistencyAndValidatePositionAccounting.xml Thu Apr 5 13:27:23 2007
@@ -128,7 +128,7 @@
start_date=transaction.getStartDate())\n
if len(exchange_rate_list) == 0:\n
raise ValidationError, \'Convertion between currencies %s and %s is unknown.\'\n
-price = context.getSourceTotalAssetPrice() * exchange_rate_list[0]\n
+price = price * exchange_rate_list[0]\n
line = transaction.get(\'movement\')\n
\n
in_list = transaction.objectValues(portal_type=\'Incoming Account Incident Line\')\n
Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=13971&r1=13970&r2=13971&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Thu Apr 5 13:27:23 2007
@@ -1,1 +1,1 @@
-263
+265
More information about the Erp5-report
mailing list