From 28781e4bcef07bd822c5d4458e67dee3245e78f3 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Sat, 14 Oct 2006 17:17:34 +0000
Subject: [PATCH] call getSourceTotalAssetPrice on the right object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10729 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../stop_payment_workflow/scripts/liftPositionAccounting.xml   | 3 +--
 bt5/erp5_banking_check/bt/revision                             | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/stop_payment_workflow/scripts/liftPositionAccounting.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/stop_payment_workflow/scripts/liftPositionAccounting.xml
index 00355d41d1..8b908b0fc3 100644
--- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/stop_payment_workflow/scripts/liftPositionAccounting.xml
+++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/stop_payment_workflow/scripts/liftPositionAccounting.xml
@@ -88,7 +88,7 @@ if not transaction.Baobab_checkCounterDateOpen(site=source, date=date):\n
 # if so, this means that we are saling such kinds of check, thus\n
 # we must change the position of the customer account\n
 movement_list = transaction.getMovementList()\n
-total_debit = context.getSourceTotalAssetPrice()\n
+total_debit = transaction.getSourceTotalAssetPrice()\n
 for movement in movement_list:\n
   aggregate_value_list = movement.getAggregateValueList()\n
   for item in aggregate_value_list:\n
@@ -174,7 +174,6 @@ if debit_required:\n
                             <string>source</string>
                             <string>msg</string>
                             <string>movement_list</string>
-                            <string>context</string>
                             <string>total_debit</string>
                             <string>_getiter_</string>
                             <string>movement</string>
diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision
index 8fdd954df9..cabf43b5dd 100644
--- a/bt5/erp5_banking_check/bt/revision
+++ b/bt5/erp5_banking_check/bt/revision
@@ -1 +1 @@
-22
\ No newline at end of file
+24
\ No newline at end of file
-- 
2.30.9