line: buchungstyp für gegenbuchung bei splitbuchung korrigiert
This commit is contained in:
parent
0c099b11b3
commit
e10616e847
1 changed files with 4 additions and 1 deletions
5
line.py
5
line.py
|
@ -302,12 +302,15 @@ class Line(Workflow, ModelSQL, ModelView):
|
|||
|
||||
values = {
|
||||
'cashbook': sp_line.booktransf.id,
|
||||
'bookingtype': 'mvin' if line.bookingtype == 'mvout' else 'mvout',
|
||||
'date': line.date,
|
||||
'description': sp_line.description,
|
||||
'booktransf': line.cashbook.id,
|
||||
'reference': line.id,
|
||||
}
|
||||
if line.bookingtype.endswith('out'):
|
||||
values['bookingtype'] = 'mvin'
|
||||
else :
|
||||
values['bookingtype'] = 'mvout'
|
||||
values.update(line.get_amount_by_second_currency(
|
||||
sp_line.booktransf.currency,
|
||||
amount = sp_line.amount,
|
||||
|
|
Loading…
Reference in a new issue