Update salary_slip.py
This commit is contained in:
parent
e5057c8c35
commit
081eab147f
@ -55,7 +55,7 @@ class SalarySlip(TransactionBase):
|
|||||||
for struct_row in self._salary_structure_doc.get(key):
|
for struct_row in self._salary_structure_doc.get(key):
|
||||||
amount = self.eval_condition_and_formula(struct_row, data)
|
amount = self.eval_condition_and_formula(struct_row, data)
|
||||||
if amount:
|
if amount:
|
||||||
self.update_component_row(struct_row, amount, key)
|
self.update_component_row(struct_row, amount, key)
|
||||||
|
|
||||||
|
|
||||||
def update_component_row(self, struct_row, amount, key):
|
def update_component_row(self, struct_row, amount, key):
|
||||||
@ -365,4 +365,4 @@ class SalarySlip(TransactionBase):
|
|||||||
timesheet.salary_slip = salary_slip
|
timesheet.salary_slip = salary_slip
|
||||||
timesheet.flags.ignore_validate_update_after_submit = True
|
timesheet.flags.ignore_validate_update_after_submit = True
|
||||||
timesheet.set_status()
|
timesheet.set_status()
|
||||||
timesheet.save()
|
timesheet.save()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user