minor fix

This commit is contained in:
Wilson Gomez 2023-09-12 16:43:04 -05:00
parent f9d4660560
commit a212b24abc
1 changed files with 4 additions and 3 deletions

View File

@ -226,7 +226,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
'salary_constitute', 'receipt', 'concepts_salary',
'contract_finish', 'limit_days', 'month_application',
'minimal_amount', 'adjust_days_worked', 'round_amounts',
'debit_account.name', 'credit_account.name',
'debit_account.name', 'credit_account.name',
'deduction_account.name', 'account_60_40.name'
]
wage_tax = WageType.search_read([('type_concept', '=', 'tax')],
@ -402,6 +402,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
'amount': [],
'description': adjust.description,
'lines': [],
'party_to_pay': line.party_to_pay
}
if hasattr(adjust, 'analytic_account') and adjust.analytic_account:
grouped[key]['analytic'] = adjust.analytic_account
@ -414,7 +415,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
credit = _ZERO
lines_moves.append(self._prepare_line(values['description'],
account_id, debit=debit, credit=credit, analytic=values.get('analytic', None)))
account_id, debit=debit, credit=credit, party_to_pay=values.get('party_to_pay'), analytic=values.get('analytic', None)))
if lines_moves:
lines_moves.append(self._prepare_line(
self.description,
@ -436,7 +437,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
debit = abs(debit)
party_id = self.employee.party.id
if party_to_pay:
party_id = self.party_to_pay.id
party_id = party_to_pay.id
res = {
'description': description,
'debit': debit,