Commit 866c9cd8 authored by Jérome Perrin's avatar Jérome Perrin

In account statement begin balance, we must get third party from the line, not transaction

Signed-off-by: Aurel's avatarAurélien Calonne <aurel@nexedi.com>
parent 30e49ad8
...@@ -109,8 +109,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n ...@@ -109,8 +109,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n
if function and not (mvt.getSourceFunction() or \'\').startswith(function):\n if function and not (mvt.getSourceFunction() or \'\').startswith(function):\n
continue\n continue\n
specific_reference = transaction.getSourceReference()\n specific_reference = transaction.getSourceReference()\n
mirror_section_title = transaction.getDestinationSectionTitle()\n mirror_section_title = mvt.getDestinationSectionTitle()\n
section_title = transaction.getSourceSectionTitle()\n section_title = mvt.getSourceSectionTitle()\n
else:\n else:\n
if payment_uid and mvt.getDestinationPaymentUid() != payment_uid:\n if payment_uid and mvt.getDestinationPaymentUid() != payment_uid:\n
continue\n continue\n
...@@ -119,8 +119,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n ...@@ -119,8 +119,8 @@ for brain in portal.Base_zGetNotGroupedMovementList(\n
if function and not (mvt.getDestinationFunction() or \'\').startswith(function):\n if function and not (mvt.getDestinationFunction() or \'\').startswith(function):\n
continue\n continue\n
specific_reference = transaction.getDestinationReference()\n specific_reference = transaction.getDestinationReference()\n
mirror_section_title = transaction.getSourceSectionTitle()\n mirror_section_title = mvt.getSourceSectionTitle()\n
section_title = transaction.getDestinationSectionTitle()\n section_title = mvt.getDestinationSectionTitle()\n
\n \n
\n \n
debit = max(brain.total_quantity, 0)\n debit = max(brain.total_quantity, 0)\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment