# -*- coding: utf-8 -*-
from odoo import fields, models


class ContractExtension(models.Model):
    _inherit = 'hr.contract'

    salary_structure_id = fields.Many2one(
        'c2c.salary.structure', string='Salary Structure',
        help='Salary structure used for payslip computation.',
    )
    gross_salary = fields.Float(
        string='Gross Salary',
        help='Total gross salary (CTC) before deductions.',
    )
    pf_applicable = fields.Boolean(
        string='PF Applicable', default=True,
        help='Whether Provident Fund deduction applies to this contract.',
    )
    esi_applicable = fields.Boolean(
        string='ESI Applicable', default=False,
        help='Whether ESI deduction applies to this contract.',
    )
