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 """