[Erp5-report] r13943 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 4 17:37:33 CEST 2007


Author: vincent
Date: Wed Apr  4 17:37:30 2007
New Revision: 13943

URL: http://svn.erp5.org?rev=13943&view=rev
Log:
Do convert the currency.

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=13943&r1=13942&r2=13943&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 Wed Apr  4 17:37:30 2007
@@ -122,7 +122,7 @@
 # Now we will validate the accounting position\n
 transaction = state_change[\'object\']\n
 bank_account = transaction.getDestinationPaymentValue()\n
-price = transaction.getSourceTotalAssetPrice()\n
+price = transaction.ERP5Banking_getExchangeValue()\n
 line = transaction.get(\'movement\')\n
 \n
 in_list = transaction.objectValues(portal_type=\'Incoming Account Incident Line\')\n
@@ -130,11 +130,9 @@
 \n
 debit=0\n
 if (len(in_list)!= 0):  \n
-  # This is a single currency operation, so it is not necessary to convert the price.\n
   line.setSourceCredit(price)\n
 \n
 elif (len(out_list) != 0) :\n
-  # This is a single currency operation, so it is not necessary to convert the price.\n
   debit=1\n
   line.setSourceDebit(price)\n
 \n

Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=13943&r1=13942&r2=13943&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Wed Apr  4 17:37:30 2007
@@ -1,1 +1,1 @@
-252
+255




More information about the Erp5-report mailing list