From cace9ea751b13b07e9b1dea822ba3c971235ddf2 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Wed, 18 Jan 2023 22:57:21 +0100 Subject: [PATCH] line: splitline-param for counterpart --- line.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/line.py b/line.py index 24d7169..0c3401a 100644 --- a/line.py +++ b/line.py @@ -358,7 +358,9 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView): if sp_line.splittype != 'tr': continue - values = cls.get_counterpart_values(line, { + values = cls.get_counterpart_values(line, + splitline = sp_line, + values = { 'cashbook': sp_line.booktransf.id, 'description': sp_line.description, 'amount': sp_line.amount \ @@ -783,7 +785,7 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView): return values2 @classmethod - def get_counterpart_values(cls, line, values={}): + def get_counterpart_values(cls, line, splitline=None, values={}): """ get values to create counter-part of transfer booking """