$nFormula->InsertNewComplex($sValues); } } $complex_formula = $orig_complex; ?> <body onmouseover='SaveFoc();'></body> <?php } else { //echo $tfo_id."VooDoo"; $sValues = "tfo_id='{$tfotype}', basis='{$Basis}', indicator='{$Indicator}',\n\t\t\t\t\t\t\t\t\tmode='{$Fmode}',\n amtformula='{$orig_complex}',taxtype='{$TaxType}',\n uom='{$uom}',min_amt={$MinAmount}"; $sWhere = "taxfeeid={$aTAXFEEid}"; $nFormula->UpdateTaxFee($sValues, $sWhere); //update complex $loop = 0; $nFormula->DeleteTax("ebpls_buss_complex", "complex_taxfeeid='{$aTAXFEEid}'"); while ($loop < $howmanycomplex) { $loop++; $searchme = new TaxFee(); if ($ivar[$loop] == '') { $ivar[$loop] = 'X1'; } /* if ($compid[$loop]<>'') { $searchme->GetComplex($compid[$loop]); $have_rec = $searchme->outnumrow; } else { $have_rec=0; } if ($have_rec>0) { $sValues = "complex_tfoid='$complex_tfo[$loop]'"; $sWhere = "compid=$compid[$loop]";
</tr> <?php if ($action_ == 0) { if ($confx == 1) { include_once 'class/TaxFeeOtherChargesClass.php'; $DelNat = new TaxFee(); $DelNat->CheckTaxFee($bcode); if ($DelNat->outnumrow > 0) { ?> <body onload='javascript:alert ("Cannot Delete, Record exists in other table(s)!!");'></body> <?php } else { $strwhere = "natureid='{$bcode}'"; $DelNat->DeleteTax('ebpls_buss_nature', $strwhere); ?> <body onload='javascript:alert ("Record Deleted!!");'></body> <?php } } if ($donfx == 1) { include_once 'class/TaxFeeOtherChargesClass.php'; $DelNat = new TaxFee(); $strvalues = "naturestatus='A'"; $strwhere = "natureid='{$bcode}'"; $DelNat->UpdateNature($strvalues, $strwhere); } ?> <body onload="javascript: _FRM.searcheenat.focus();"></body> <tr><td colspan=2 class=header2 align=center width=100%>Masterlist of Business Nature</td></tr>
<?php if (empty($bussEvent)) { $bussEvent = 1; } if ($confx == 1) { //delete tax and iba pang kasama nito include_once "class/TaxFeeOtherChargesClass.php"; $DelTax = new TaxFee(); $strwhere = "taxfeeid='{$bcode}'"; $DelTax->DeleteTax("ebpls_buss_taxfeeother", $strwhere); $strwhere = "taxfeeid='{$bcode}'"; $DelTax->DeleteTax("ebpls_buss_taxrange", $strwhere); $strwhere = "complex_taxfeeid='{$bcode}'"; $DelTax->DeleteTax("ebpls_buss_complex", $strwhere); } ?> <table width=100%> <tr> <td width=5%>#</td> <td width=40%> Description</td> <td width=10%> Formula Type</td> <td width=5% align=left> Type</td> <td width=5% align=center> Indicator</td> <td width=10% align=center> Amt/For</td> <td width=25% align=center> Action</td> </tr> <script language="Javascript"> function DelTax(cc) { var _FRM = document._FRM;