<?php
/*
Generated by OutputBooks Team
*/

defined("\x42\x41\123\105\120\101\x54\x48") or exit("\116\x6f\x20\144\x69\162\145\x63\164\x20\163\143\x72\151\x70\x74\x20\141\x63\x63\145\x73\x73\40\x61\x6c\154\x6f\x77\145\x64");
class Tax extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model("\164\141\170\x4d\157\x64\145\154");
    }
    public function index()
    {
        $this->load->page("\150\157\x6d\145");
    }
    public function listing()
    {
        goto oYz8z;
        QH1ep:
        return true;
        goto aLcit;
        GXQmb:
        $this->response->success();
        goto AbVdN;
        yI1Uu:
        $this->response->write();
        goto QH1ep;
        oYz8z:
        $taxes = $this->taxModel->get_tax_list();
        goto GXQmb;
        AbVdN:
        $this->response->set_data("\151\164\x65\155\x73", $taxes);
        goto yI1Uu;
        aLcit:
    }
    public function details($taxId = 0)
    {
        goto YxOCI;
        jQL_W:
        if (!empty($tax_types)) {
            $this->response->set_data("\164\x79\x70\x65\163", $tax_types);
        }
        goto GmHDl;
        tUcU1:
        if (!empty($taxDetails)) {
            $this->response->set_data("\x64\145\164\141\x69\154\x73", $taxDetails);
        }
        goto jQL_W;
        Mz6t2:
        $tax_types = $this->taxModel->get_tax_types("\x69\144\x2c\164\x61\x78\x54\x79\160\145\103\x6f\x64\x65\x2c\x74\141\x78\116\141\155\145\54\163\x74\141\164\x65\x54\x79\160\x65\54\164\x61\170\x43\141\x6c\143");
        goto itgA5;
        BDX1M:
        $taxDetails = $this->taxModel->get_tax_details($taxId);
        goto Mz6t2;
        PhikR:
        return true;
        goto wb6a6;
        itgA5:
        $this->response->success();
        goto tUcU1;
        GmHDl:
        $this->response->write();
        goto PhikR;
        YxOCI:
        if (empty($taxId)) {
            goto XkM33;
            XkM33:
            $this->response->error("\124\x61\170\x20\111\x44\40\x6d\x69\x73\x73\x69\x6e\x67");
            goto g7nx5;
            WHVln:
            return false;
            goto UY_W0;
            g7nx5:
            $this->response->write();
            goto WHVln;
            UY_W0:
        }
        goto BDX1M;
        wb6a6:
    }
    public function taxtypelist()
    {
        goto n0Lsr;
        Vmv7n:
        if (!empty($tax_types)) {
            $this->response->set_data("\151\164\x65\155\163", $tax_types);
        }
        goto qiZuC;
        n0Lsr:
        $tax_types = $this->taxModel->get_taxtypelist("\x69\x64\54\x74\141\x78\124\x79\x70\145\103\x6f\144\x65\x2c\x74\141\x78\116\x61\x6d\x65");
        goto dJiB7;
        qiZuC:
        $this->response->write();
        goto vOsYt;
        dJiB7:
        $this->response->success();
        goto Vmv7n;
        vOsYt:
        return true;
        goto gBTDG;
        gBTDG:
    }
    public function taxtypesave()
    {
        goto SJUrY;
        BoP_K:
        if (empty($postData)) {
            goto kHyx4;
            kHyx4:
            $this->response->error("\x52\x65\x71\165\151\x72\145\x64\40\146\x69\145\x6c\144\40\155\x69\x73\x73\x69\156\x67");
            goto UcglP;
            WPAZR:
            return false;
            goto cTbci;
            UcglP:
            $this->response->write();
            goto WPAZR;
            cTbci:
        }
        goto ixYIz;
        U9cvK:
        return true;
        goto awM0y;
        SJUrY:
        $postData = $this->request->post();
        goto BoP_K;
        uXZof:
        $this->response->write();
        goto U9cvK;
        ixYIz:
        $ret = $this->taxModel->save_tax_type($postData);
        goto KW25k;
        KW25k:
        if ($ret) {
            $this->response->success("\123\125\x43\103\x45\123\123\137\123\x41\x56\x45");
        } else {
            if ($this->taxModel->message) {
                $this->response->error($this->taxModel->message);
            } else {
                $this->response->error();
            }
        }
        goto uXZof;
        awM0y:
    }
    public function taxtypedelete($taxTypeCode = '')
    {
        goto i_Aqw;
        ltDAi:
        return true;
        goto HhHqN;
        i_Aqw:
        if (empty($taxTypeCode)) {
            goto ywt1u;
            XSlSK:
            return false;
            goto oYr3V;
            fgmeC:
            $this->response->write();
            goto XSlSK;
            ywt1u:
            $this->response->error("\x54\x61\x78\x20\164\x79\x70\145\54\40\x54\141\x78\x20\x54\171\x70\x65\40\143\157\x64\145\x20\155\x69\163\163\151\156\x67");
            goto fgmeC;
            oYr3V:
        }
        goto xSVRa;
        xSVRa:
        if ($this->taxModel->delete_Tax_type($taxTypeCode)) {
            $this->response->success("\x44\x45\x4c\105\124\105\137\x53\125\103\x43\105\x53\123");
        } else {
            $this->response->error($this->taxModel->error);
        }
        goto iIgg8;
        iIgg8:
        $this->response->write();
        goto ltDAi;
        HhHqN:
    }
    public function typelist()
    {
        goto yfWT5;
        rLMYa:
        if (!empty($tax_types)) {
            $this->response->set_data("\151\164\x65\155\163", $tax_types);
        }
        goto cQmNR;
        cQmNR:
        $this->response->write();
        goto osuP2;
        yfWT5:
        $tax_types = $this->taxModel->get_tax_types("\151\x64\x2c\164\141\x78\x54\171\x70\x65\x43\x6f\144\145\x2c\164\141\x78\x4e\141\x6d\x65\x2c\163\164\141\x74\x65\124\171\x70\x65\x2c\x74\x61\x78\x43\x61\154\x63");
        goto Q4aMA;
        osuP2:
        return true;
        goto A0tzZ;
        Q4aMA:
        $this->response->success();
        goto rLMYa;
        A0tzZ:
    }
    public function alldetails()
    {
        goto wpvEe;
        oY0_6:
        $this->response->write();
        goto TP58f;
        Oi9pN:
        $this->response->success();
        goto oY0_6;
        HuBJU:
        if (!empty($taxDetails)) {
            $this->response->set_data("\x74\141\x78\x44\x65\164\141\151\154\x73", $taxDetails, true);
        }
        goto Oi9pN;
        x12MW:
        if (!empty($taxes)) {
            $this->response->set_data("\164\x61\170\145\163", $taxes, true);
        }
        goto HuBJU;
        TP58f:
        return true;
        goto J3Orh;
        GIc3J:
        $taxDetails = $this->taxModel->get_tax_details(0, "\164\144\x2e\52\x2c\x20\164\164\56\x74\141\x78\116\x61\x6d\x65\x20\x41\x53\40\x74\x61\170\x54\x79\x70\x65\x4e\141\155\145");
        goto x12MW;
        wpvEe:
        $taxes = $this->taxModel->get_tax_list("\151\x64\54\40\x6e\x61\155\145\x2c\x20\164\x61\170\x43\x6f\144\145\54\x20\x69\x73\101\x63\x74\151\x76\145\x2c\x20\x69\163\x44\x65\x66\x61\165\x6c\x74");
        goto GIc3J;
        J3Orh:
    }
    public function save()
    {
        goto dz6rO;
        YWNXp:
        if (empty($postData)) {
            goto C4IT7;
            tuXnX:
            return false;
            goto K5H22;
            C4IT7:
            $this->response->error("\122\x65\x71\x75\x69\162\x65\x64\x20\146\151\x65\x6c\144\x20\x6d\x69\x73\x73\151\x6e\x67");
            goto qjzcw;
            qjzcw:
            $this->response->write();
            goto tuXnX;
            K5H22:
        }
        goto nJHhm;
        Yh2Wa:
        $this->response->set_data("\151\x64", $taxId);
        goto lPKUl;
        DL2Dc:
        $this->response->success("\123\125\x43\103\105\123\x53\x5f\x53\x41\126\105");
        goto Yh2Wa;
        nJHhm:
        $taxId = $this->taxModel->save($postData);
        goto DL2Dc;
        lPKUl:
        $this->response->write();
        goto GMYtm;
        dz6rO:
        $postData = $this->request->post();
        goto YWNXp;
        GMYtm:
        return true;
        goto cyg31;
        cyg31:
    }
    public function deleteitem($id = '')
    {
        goto dRYsm;
        mwg8N:
        return true;
        goto rLTWH;
        JVa3w:
        $this->response->write();
        goto mwg8N;
        CTW4X:
        if ($this->taxModel->deleteItem($id)) {
            $this->response->success("\x44\105\x4c\x45\124\105\137\123\x55\103\103\x45\123\x53");
        } else {
            $this->response->error($this->taxModel->error);
        }
        goto JVa3w;
        dRYsm:
        if (empty($id)) {
            goto Gidwn;
            i0xjs:
            return false;
            goto A_9a1;
            Q7T0a:
            $this->response->write();
            goto i0xjs;
            Gidwn:
            $this->response->error("\111\x44\40\155\x69\x73\163\x69\156\x67");
            goto Q7T0a;
            A_9a1:
        }
        goto CTW4X;
        rLTWH:
    }
    public function hsntaxlist()
    {
        goto M4Ieh;
        DIPrr:
        $this->response->success();
        goto ORCAW;
        E8Hge:
        $this->response->write();
        goto RP8CC;
        M4Ieh:
        $hsnTaxes = $this->taxModel->get_hsn_tax_list();
        goto DIPrr;
        RP8CC:
        return true;
        goto PpwDu;
        ORCAW:
        $this->response->set_data("\151\x74\x65\155\163", $hsnTaxes);
        goto E8Hge;
        PpwDu:
    }
    public function hsntaxsave()
    {
        goto kTbr2;
        gWcYt:
        $this->taxModel->save_hsn_tax($postData);
        goto f6PSL;
        f6PSL:
        $this->response->success("\x53\x55\x43\x43\105\x53\x53\137\123\101\126\x45");
        goto k6yxN;
        kTbr2:
        $postData = $this->request->post();
        goto a9Tt2;
        QBULH:
        return true;
        goto LfK3l;
        k6yxN:
        $this->response->write();
        goto QBULH;
        a9Tt2:
        if (empty($postData)) {
            goto HxxZS;
            k3iHM:
            return false;
            goto upeLQ;
            HxxZS:
            $this->response->error("\122\145\x71\x75\151\162\x65\x64\40\146\x69\145\154\144\x20\155\151\163\x73\151\156\147");
            goto NyuB3;
            NyuB3:
            $this->response->write();
            goto k3iHM;
            upeLQ:
        }
        goto gWcYt;
        LfK3l:
    }
    public function hsntaxdelete($hsnCode = '')
    {
        goto Wk2hO;
        XcsAN:
        if ($this->taxModel->delete_hsn_tax($hsnCode)) {
            $this->response->success("\x44\x45\114\x45\x54\x45\x5f\x53\x55\x43\x43\x45\x53\x53");
        } else {
            $this->response->error($this->taxModel->error);
        }
        goto t3B8W;
        Wk2hO:
        if (empty($hsnCode)) {
            goto DJLx2;
            DJLx2:
            $this->response->error("\x48\x53\116\x20\103\157\144\x65\x20\x6d\151\163\x73\x69\x6e\x67");
            goto MLO4K;
            HammN:
            return false;
            goto Qnryf;
            MLO4K:
            $this->response->write();
            goto HammN;
            Qnryf:
        }
        goto XcsAN;
        KRZoH:
        return true;
        goto Mib1H;
        t3B8W:
        $this->response->write();
        goto KRZoH;
        Mib1H:
    }
}
