mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-08 22:53:48 +02:00
fix: manually generated salary slips overwritten by structure amount (#31711)
This commit is contained in:
@@ -632,7 +632,11 @@ class SalarySlip(TransactionBase):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
amount = self.eval_condition_and_formula(struct_row, data)
|
amount = self.eval_condition_and_formula(struct_row, data)
|
||||||
if amount is not None and struct_row.statistical_component == 0:
|
if (
|
||||||
|
amount
|
||||||
|
or (struct_row.amount_based_on_formula and amount is not None)
|
||||||
|
and struct_row.statistical_component == 0
|
||||||
|
):
|
||||||
self.update_component_row(struct_row, amount, component_type, data=data)
|
self.update_component_row(struct_row, amount, component_type, data=data)
|
||||||
|
|
||||||
def get_data_for_eval(self):
|
def get_data_for_eval(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user