| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/payroll/methods/__pycache__/ |
Upload File : |
o
hͦh � @ sR d Z ddlZddlZddlmZmZ ddlmZ ddlm Z e�
e�Zdd� Z
dS )z�
Module: payroll.tax_calc
This module contains a function for calculating the taxable amount for an employee
based on their contract details and income information.
� N)�calculate_gross_pay�calculate_taxable_gross_pay)�Contract)�
TaxBracketc
s> | d }| d }| d }| d }t jj|dd��� }|j}|s!dS d}tjj|d��d �}|| jd
} tt d�}
|j
}||
v rR|
| }|d"i | ��}
t|
| �}
nt|�}
|j}t
�|d
d
�}t
�|dd
�}|| jd
}|
| | � t� d�� d}|dur�|jsŇ fdd�|�dd d�D �}g }|D ]&}|d |d kr�|d |d |d<