Beispiel #1
0
                    $Fmode = $getTax[mode];
                    if ($Fmode == 0) {
                        $Fmode = 1;
                    }
                    if ($Fmode == 1) {
                        $AmountFormula = $getTax[amtformula];
                        ?>
                <input type=hidden name=AmountFormula size=20 value="<?php 
                        echo $AmountFormula;
                        ?>
">
<?php 
                    }
                    if ($Fmode == 2) {
                        $cntComplex = new TaxFee();
                        $cntComplex->CountTaxFeeComplex($aTAXFEEid);
                        ?>
                                                <input type=hidden name=varflag value=<?php 
                        echo $cntComplex->outnumrow;
                        ?>
>
                                                <?php 
                        if ($variable == '') {
                            $variable = $cntComplex->outnumrow;
                        } elseif ($varflag != $variable) {
                            $variable = $variable;
                        }
                        $varval = 1;
                        $complex_formula = $getTax[amtformula];
                        $editme = "234";
                        $queryc = $cntComplex->outselect;
Beispiel #2
0
         //formula replace
         $formula_rep = str_replace("X0", $basis, strtoupper($getd[amtformula]));
         @eval("\$totind={$is_dec}{$formula_rep};");
     }
     $rtag = '';
 } elseif ($getd[indicator] == 2 and $stt == 'ReNew' || $stt == 'Retire') {
     $indi = 1;
     $basis = $getn[3];
     if ($getd[basis] == 3) {
         $basis = $inputy[$wopi];
         //   $basis=0; //dito ay input value
     }
     if ($getd[mode] == 2) {
         include_once "class/TaxFeeOtherChargesClass.php";
         $searchme = new TaxFee();
         $searchme->CountTaxFeeComplex($getd[taxfeeid]);
         $how_many = $searchme->outnumrow;
         $loop = 0;
         //sub X0
         $complex_formula = str_replace("X0", $basis, strtoupper($getd[amtformula]));
         $gTFO = new TaxFee();
         //                 while ($loop<$how_many) {
         //                         $loop++;
         //                         $gTFO->FetchTaxFeeArray($searchme->outselect);
         //                         $get_varx = $gTFO->outarray;
         //                         $gTempAssess = new TaxFee;
         //                 $gTempAssess->ReplaceValue($get_varx[complex_tfoid],$owner_id,$business_id,$getn[0]);
         //                 $replace_var = $gTempAssess->outarray;
         //
         //                 $complex_formula = str_replace($get_varx[var_complex],$replace_var[compval],$complex_formula);
         //                 }