o
    ۷hi                     @   s&   d dl Z d dlmZ G dd dZdS )    N)payrolldeduction_valc                   @   s,  e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdZdZdd Zdd Zdd Zdd	 Zd
d Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Z d&d' Z!d(d) Z"d*d+ Z#d,d- Z$d.d/ Z%d0d1 Z&d2d3 Z'd4d5 Z(d6d7 Z)d8d9 Z*d:d; Z+d<d= Z,dS )>$EmployeePaystructure_detailsResponseNc                 C   s   t j| dd dddS )Nc                 S   s   | j S N)__dict__)o r   Q/var/www/FinalPayroll/payrollservice/data/response/emppaystructdetailsresponse.py<lambda>   s    z:EmployeePaystructure_detailsResponse.get.<locals>.<lambda>T   )default	sort_keysindent)jsondumps)selfr   r   r   get   s   z(EmployeePaystructure_detailsResponse.getc                 C   
   || _ d S r   )id)r   r   r   r   r   set_id      
z+EmployeePaystructure_detailsResponse.set_idc                 C   r   r   )emp_pay)r   r   r   r   r   set_emp_pay   r   z0EmployeePaystructure_detailsResponse.set_emp_payc                 C   r   r   )paycomponent)r   r   r   r   r   set_paycomponent   r   z5EmployeePaystructure_detailsResponse.set_paycomponentc                 C   r   r   )paycomponent_type)r   r   r   r   r   set_paycomponent_type!   r   z:EmployeePaystructure_detailsResponse.set_paycomponent_typec                 C      t || _d S r   )strpaycomponent_percentage)r   r   r   r   r   set_paycomponent_percentage$      z@EmployeePaystructure_detailsResponse.set_paycomponent_percentagec                 C   r   r   )is_deduction)r   r!   r   r   r   set_is_deduction'   r   z5EmployeePaystructure_detailsResponse.set_is_deductionc                 C   r   r   )r   amountr   r#   r   r   r   
set_amount*   r    z/EmployeePaystructure_detailsResponse.set_amountc                 C   ,   d | _ |D ]}|j|kr|| _  d S 	 qd S r   )r   r   )r   r   arrir   r   r   set_paycomponent_val,      
z9EmployeePaystructure_detailsResponse.set_paycomponent_valc                 C   r   r   )company_contribution)r   r+   r   r   r   set_company_contribution7   r   z=EmployeePaystructure_detailsResponse.set_company_contributionc                 C   r&   r   )r+   r   )r   r+   r'   r(   r   r   r   set_company_contribution_val:   r*   zAEmployeePaystructure_detailsResponse.set_company_contribution_valc                 C   r   r   )r   type)r   r.   r   r   r   set_typeC   r    z-EmployeePaystructure_detailsResponse.set_typec                 C   r   r   )r   	from_date)r   r0   r   r   r   set_from_dateF   r    z2EmployeePaystructure_detailsResponse.set_from_datec                 C   r   r   )r   to_date)r   r2   r   r   r   set_to_dateI   r    z0EmployeePaystructure_detailsResponse.set_to_datec                 C   *   d | _ |D ]}|j|kr|| _  d S qd S r   )employeer   )r   employee_idr'   r(   r   r   r   set_employee_id_valL      
z8EmployeePaystructure_detailsResponse.set_employee_id_valc                 C   r   r   )payable_days)r   r9   r   r   r   set_payable_daysS   r   z5EmployeePaystructure_detailsResponse.set_payable_daysc                 C   r   r   )r   payroll_date)r   r;   r   r   r   set_payroll_dateV   r    z5EmployeePaystructure_detailsResponse.set_payroll_datec                 C   r   r   )r6   )r   r6   r   r   r   set_employee_idY   r   z4EmployeePaystructure_detailsResponse.set_employee_idc                 C   r   r   )segment)r   r>   r   r   r   set_segment\   r   z0EmployeePaystructure_detailsResponse.set_segmentc                 C   r4   r   )r>   r   )r   r>   r'   r(   r   r   r   set_segment_data_   r8   z5EmployeePaystructure_detailsResponse.set_segment_datac                 C   r   r   )r   cc_totalr   rA   r   r   r   set_cc_totalf   r    z1EmployeePaystructure_detailsResponse.set_cc_totalc                 C      t |d | _d S N   )r   yearly_cc_totalr   totalr   r   r   set_yearly_cc_totali      z8EmployeePaystructure_detailsResponse.set_yearly_cc_totalc                 C   r   r   )r   rI   rH   r   r   r   	set_totall   r    z.EmployeePaystructure_detailsResponse.set_totalc                 C   rD   rE   )r   yearly_totalrH   r   r   r   set_yearly_totalo   rK   z5EmployeePaystructure_detailsResponse.set_yearly_totalc                 C   rD   rE   )r   yearly_amountr$   r   r   r   set_yearly_amountr   rK   z6EmployeePaystructure_detailsResponse.set_yearly_amountc                 C   r   r   )r   total_bonusr   bonusr   r   r   set_Annual_bonus_totalu   r    z;EmployeePaystructure_detailsResponse.set_Annual_bonus_totalc                 C   rD   rE   )r   yearly_bonus_totalrR   r   r   r   set_Yearly_Annual_bonus_totalx   rK   zBEmployeePaystructure_detailsResponse.set_Yearly_Annual_bonus_totalc                 C   r   r   )r   total_component_amountr$   r   r   r   set_total_component_amount{   r    z?EmployeePaystructure_detailsResponse.set_total_component_amountc                 C   r   r   )r   cc_sumrB   r   r   r   set_cc_total1~   r    z2EmployeePaystructure_detailsResponse.set_cc_total1c                 C   rD   rE   )r   yearly_cc_sumrH   r   r   r   set_yearly_cc_total1   rK   z9EmployeePaystructure_detailsResponse.set_yearly_cc_total1)-__name__
__module____qualname__r   r   r   r   r   r!   r#   r+   r.   r0   r2   r>   r   r   r   r   r   r   r"   r%   r)   r,   r-   r/   r1   r3   r7   r:   r<   r=   r?   r@   rC   rJ   rL   rN   rP   rT   rV   rX   rZ   r\   r   r   r   r   r      sV    	r   )r   payrollservice.util.masterutilr   r   r   r   r   r   <module>   s    