From 866c9cd89552ab99938eebbd815960133d616996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 13 Mar 2012 16:52:38 +0100 Subject: [PATCH] In account statement begin balance, we must get third party from the line, not transaction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aur茅lien Calonne <aurel@nexedi.com> --- .../Account_getNotGroupedAccountingTransactionList.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getNotGroupedAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getNotGroupedAccountingTransactionList.xml index 8bf4eea43e..438da030fb 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getNotGroupedAccountingTransactionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getNotGroupedAccountingTransactionList.xml @@ -109,8 +109,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n if function and not (mvt.getSourceFunction() or \'\').startswith(function):\n continue\n specific_reference = transaction.getSourceReference()\n - mirror_section_title = transaction.getDestinationSectionTitle()\n - section_title = transaction.getSourceSectionTitle()\n + mirror_section_title = mvt.getDestinationSectionTitle()\n + section_title = mvt.getSourceSectionTitle()\n else:\n if payment_uid and mvt.getDestinationPaymentUid() != payment_uid:\n continue\n @@ -119,8 +119,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n if function and not (mvt.getDestinationFunction() or \'\').startswith(function):\n continue\n specific_reference = transaction.getDestinationReference()\n - mirror_section_title = transaction.getSourceSectionTitle()\n - section_title = transaction.getDestinationSectionTitle()\n + mirror_section_title = mvt.getSourceSectionTitle()\n + section_title = mvt.getDestinationSectionTitle()\n \n \n debit = max(brain.total_quantity, 0)\n -- 2.30.9