commit
9cd950bf88
|
|
@ -1014,7 +1014,7 @@ class SalaryRuleInput(models.Model):
|
|||
or (datetime.strptime(str(payslip.date_to), "%Y-%m-%d") >= date1
|
||||
and date2 >= datetime.strptime(str(payslip.date_from), "%Y-%m-%d")):
|
||||
|
||||
if advantage_rule.benefits_discounts.name not in sorted_rules:
|
||||
if advantage_rule.benefits_discounts and advantage_rule.benefits_discounts.name not in sorted_rules:
|
||||
amount, qty, rate = rule._compute_rule(localdict)
|
||||
previous_amount = rule.code in localdict and localdict[
|
||||
rule.code] or 0.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue