Skip to content

Commit

Permalink
[FIX] Merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
horilla-opensource committed Mar 11, 2025
1 parent 6e3f345 commit 78e958f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions payroll/methods/payslip_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def calculate_tax_deduction(*_args, **kwargs):
deductions.exclude(one_time_date__lt=start_date)
.exclude(one_time_date__gt=end_date)
.exclude(update_compensation__isnull=False)
)
).distinct()
deductions_amt = []
serialized_deductions = []
for deduction in deductions:
Expand Down Expand Up @@ -515,14 +515,16 @@ def calculate_pre_tax_deduction(*_args, **kwargs):
include_active_employees=True, is_pretax=True, is_tax=False
).exclude(exclude_employees=employee)

deductions = specific_deductions | conditional_deduction | active_employee_deduction
deductions = (
specific_deductions | conditional_deduction | active_employee_deduction
).distinct()
deductions = (
deductions.exclude(one_time_date__lt=start_date)
.exclude(one_time_date__gt=end_date)
.exclude(update_compensation__isnull=False)
)
# Installment deductions
installments = deductions.filter(is_installment=True)
installments = deductions.filter(is_installment=True).distinct()

pre_tax_deductions = []
pre_tax_deductions_amt = []
Expand Down Expand Up @@ -622,14 +624,16 @@ def calculate_post_tax_deduction(*_args, **kwargs):
active_employee_deduction = models.Deduction.objects.filter(
include_active_employees=True, is_pretax=False, is_tax=False
).exclude(exclude_employees=employee)
deductions = specific_deductions | conditional_deduction | active_employee_deduction
deductions = (
specific_deductions | conditional_deduction | active_employee_deduction
).distinct()
deductions = (
deductions.exclude(one_time_date__lt=start_date)
.exclude(one_time_date__gt=end_date)
.exclude(update_compensation__isnull=False)
)
# Installment deductions
installments = deductions.filter(is_installment=True)
installments = deductions.filter(is_installment=True).distinct()

post_tax_deductions = []
post_tax_deductions_amt = []
Expand Down

0 comments on commit 78e958f

Please sign in to comment.