line: splitline-param for counterpart
This commit is contained in:
parent
8f180cfaf7
commit
cace9ea751
1 changed files with 4 additions and 2 deletions
6
line.py
6
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
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue