minor fix report
This commit is contained in:
parent
d92eacd1cd
commit
574b787825
|
@ -520,7 +520,6 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
super(Liquidation, cls).delete(records)
|
||||
|
||||
def set_liquidation_lines(self):
|
||||
print('ingresa a liq lines')
|
||||
pool = Pool()
|
||||
Payroll = pool.get('staff.payroll')
|
||||
LiquidationMove = pool.get('staff.liquidation.line-move.line')
|
||||
|
@ -535,9 +534,6 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
wages = {}
|
||||
wages_target = {}
|
||||
moves = [p.move.id for p in payrolls]
|
||||
for p in payrolls:
|
||||
print(p.move for p in payrolls)
|
||||
print(moves, 'validate moves', payrolls)
|
||||
for payroll in payrolls:
|
||||
for l in payroll.lines:
|
||||
if not l.wage_type.contract_finish:
|
||||
|
@ -549,7 +545,6 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
continue
|
||||
|
||||
if l.wage_type.id not in wages_target.keys():
|
||||
print('ingresa a este punto')
|
||||
mlines = self.get_moves_lines_pending(
|
||||
payroll.employee, l.wage_type, date_end, moves
|
||||
)
|
||||
|
@ -584,7 +579,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
self.write([self], {'lines': [('create', wages.values())]})
|
||||
if self.kind == 'contract':
|
||||
self.process_loans_to_pay()
|
||||
self.calculate_discounts()
|
||||
# self.calculate_discounts()
|
||||
|
||||
def get_line_(self, wage, amount, days, account_id, party=None):
|
||||
value = {
|
||||
|
|
Loading…
Reference in New Issue