Пример #1
0
    def calc_all(self, zero_out_calc_vars=False):
        """
        Call all tax-calculation functions for the current_year.
        """
        # pylint: disable=too-many-function-args,no-value-for-parameter
        # conducts static analysis of Calculator object for current_year
        assert self.__records.current_year == self.__policy.current_year
        assert self.__gstrecords.current_year == self.__policy.current_year
        assert self.__corprecords.current_year == self.__policy.current_year
        self.__records.zero_out_changing_calculated_vars()
        # For now, don't zero out for corporate
        # pdb.set_trace()
        # Corporate calculations
        is_small_business(self.__policy, self.__corprecords)
        corp_income(self.__policy, self.__corprecords)
        corp_tax_base_before_deductions(self.__policy, self.__corprecords)
        corp_tax_base_after_deductions(self.__policy, self.__corprecords)
        cit_liability(self.__policy, self.__corprecords)

        # Individual calculations
        net_salary_income(self.__policy, self.__records)
        taxable_income(self.__policy, self.__records)
        pit_liability(self.__policy, self.__records)
        # GST calculations
        # agg_consumption(self.__policy, self.__gstrecords)
        # gst_liability_cereal(self.__policy, self.__gstrecords)
        # gst_liability_other(self.__policy, self.__gstrecords)
        gst_liability(self.__policy, self.__gstrecords)
Пример #2
0
 def calc_all(self, zero_out_calc_vars=False):
     """
     Call all tax-calculation functions for the current_year.
     """
     # pylint: disable=too-many-function-args,no-value-for-parameter
     # conducts static analysis of Calculator object for current_year
     assert self.__records.current_year == self.__policy.current_year
     assert self.__gstrecords.current_year == self.__policy.current_year
     assert self.__corprecords.current_year == self.__policy.current_year
     self.__records.zero_out_changing_calculated_vars()
     # For now, don't zero out for corporate
     # pdb.set_trace()
     # Corporate calculations     
     cit_liability(self.__policy, self.__corprecords)
     
     # Individual calculations
     cal_OLESNUVANJE1(self.__policy, self.__records)
     cal_MINUS_DANOCNA_OSNOVA(self.__policy, self.__records)
     net_salary_income(self.__policy, self.__records)
     gross_total_income(self.__policy, self.__records)
     taxable_total_income(self.__policy, self.__records)
     pit_liability(self.__policy, self.__records)
     cal_post_tax_income(self.__policy, self.__records)
     # GST calculations
     # agg_consumption(self.__policy, self.__gstrecords)
     # gst_liability_cereal(self.__policy, self.__gstrecords)
     # gst_liability_other(self.__policy, self.__gstrecords)
     gst_liability(self.__policy, self.__gstrecords)
Пример #3
0
 def calc_all(self):
     """
     Call all tax-calculation functions for the current_year.
     """
     # pylint: disable=too-many-function-args,no-value-for-parameter
     # conducts static analysis of Calculator object for current_year
     assert self.__records.current_year == self.__policy.current_year
     assert self.__corprecords.current_year == self.__policy.current_year
     self.__records.zero_out_changing_calculated_vars()
     # For now, don't zero out for corporate
     # pdb.set_trace()
     # Corporate calculations
     net_tax_liability_a(self.__policy, self.__corprecords)
     net_tax_liability_b(self)
     net_rental_income(self.__policy, self.__corprecords)
     # Individual calculations
     net_salary_income(self.__policy, self.__records)
     net_rental_income(self.__policy, self.__records)
     total_other_income(self.__policy, self.__records)
     current_year_losses(self.__policy, self.__records)
     brought_fwd_losses(self.__policy, self.__records)
     gross_total_income(self.__policy, self.__records)
     itemized_deductions(self.__policy, self.__records)
     agri_income(self.__policy, self.__records)
     taxable_total_income(self.__policy, self.__records)
     tax_stcg_splrate(self)
     tax_ltcg_splrate(self)
     pit_liability(self)
Пример #4
0
    def calc_all(self, zero_out_calc_vars=False):
        """
        Call all tax-calculation functions for the current_year.
        """
        # pylint: disable=too-many-function-args,no-value-for-parameter
        # conducts static analysis of Calculator object for current_year
        assert self.__records.current_year == self.__policy.current_year
        assert self.__gstrecords.current_year == self.__policy.current_year
        assert self.__corprecords.current_year == self.__policy.current_year
        self.__records.zero_out_changing_calculated_vars()
        # For now, don't zero out for corporate
        # pdb.set_trace()
        # Corporate calculations
        net_rental_income(self.__policy, self.__corprecords)
        depreciation_PM(self.__policy, self.__corprecords)
        depreciation_PM15(self.__policy, self.__corprecords)
        depreciation_PM30(self.__policy, self.__corprecords)
        depreciation_PM40(self.__policy, self.__corprecords)
        depreciation_PM50(self.__policy, self.__corprecords)
        depreciation_PM60(self.__policy, self.__corprecords)
        depreciation_PM80(self.__policy, self.__corprecords)
        depreciation_PM100(self.__policy, self.__corprecords)
        corp_income_business_profession(self.__policy, self.__corprecords)
        total_other_income(self.__policy, self.__corprecords)
        current_year_losses(self.__policy, self.__corprecords)
        brought_fwd_losses(self.__policy, self.__corprecords)
        corp_GTI_before_set_off(self.__policy, self.__corprecords)
        GTI_and_losses(self.__policy, self.__corprecords)
        itemized_deductions(self.__policy, self.__corprecords)
        deduction_10AA(self.__policy, self.__corprecords)
        taxable_total_income(self.__policy, self.__corprecords)
        tax_stcg_splrate(self.__policy, self.__corprecords)
        tax_ltcg_splrate(self.__policy, self.__corprecords)
        tax_specialrates(self.__policy, self.__corprecords)
        cit_liability(self.__policy, self.__corprecords)
        MAT_liability(self.__policy, self.__corprecords)
        MAT_liability_and_credit(self.__policy, self.__corprecords)

        # Individual calculations
        net_salary_income(self.__policy, self.__records)
        net_rental_income(self.__policy, self.__records)
        income_business_profession(self.__policy, self.__records)
        total_other_income(self.__policy, self.__records)
        current_year_losses(self.__policy, self.__records)
        brought_fwd_losses(self.__policy, self.__records)
        gross_total_income(self.__policy, self.__records)
        itemized_deductions(self.__policy, self.__records)
        agri_income(self.__policy, self.__records)
        taxable_total_income(self.__policy, self.__records)
        tax_stcg_splrate(self.__policy, self.__records)
        tax_ltcg_splrate(self.__policy, self.__records)
        tax_specialrates(self.__policy, self.__records)
        pit_liability(self.__policy, self.__records)
        # GST calculations
        # agg_consumption(self.__policy, self.__gstrecords)
        # gst_liability_cereal(self.__policy, self.__gstrecords)
        # gst_liability_other(self.__policy, self.__gstrecords)
        gst_liability_item(self)
Пример #5
0
 def calc_all(self, zero_out_calc_vars=False):
     """
     Call all tax-calculation functions for the current_year.
     """
     # pylint: disable=too-many-function-args,no-value-for-parameter
     # conducts static analysis of Calculator object for current_year
     assert self.__records.current_year == self.__policy.current_year
     if zero_out_calc_vars:
         self.__records.zero_out_changing_calculated_vars()
     # pdb.set_trace()
     net_salary_income(self.__policy, self.__records)
     net_rental_income(self.__policy, self.__records)
     total_other_income(self.__policy, self.__records)
     gross_total_income(self.__policy, self.__records)
     itemized_deductions(self.__policy, self.__records)
     taxable_total_income(self.__policy, self.__records)
     pit_liability(self)