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':
|
if sp_line.splittype != 'tr':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
values = cls.get_counterpart_values(line, {
|
values = cls.get_counterpart_values(line,
|
||||||
|
splitline = sp_line,
|
||||||
|
values = {
|
||||||
'cashbook': sp_line.booktransf.id,
|
'cashbook': sp_line.booktransf.id,
|
||||||
'description': sp_line.description,
|
'description': sp_line.description,
|
||||||
'amount': sp_line.amount \
|
'amount': sp_line.amount \
|
||||||
|
@ -783,7 +785,7 @@ class Line(SecondCurrencyMixin, Workflow, ModelSQL, ModelView):
|
||||||
return values2
|
return values2
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_counterpart_values(cls, line, values={}):
|
def get_counterpart_values(cls, line, splitline=None, values={}):
|
||||||
""" get values to create counter-part of
|
""" get values to create counter-part of
|
||||||
transfer booking
|
transfer booking
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue