コード例 #1
0
ファイル: delayed_yr.php プロジェクト: laiello/ebpls
             $isdeci = strpos($howmanydec, ".");
             if ($havemat % $getyr[counter] != 0) {
                 $replace_var[compval] = 0;
             }
         }
         $complex_formula = str_replace($get_varx[var_complex], $replace_var[compval], $complex_formula);
         // echo $complex_formula."<BR>";
     }
     // echo $complex_formula."<BR>";
 } else {
     while ($loop < $how_many) {
         $loop++;
         $gTFO->FetchTaxFeeArray($searchme->outselect);
         $get_varx = $gTFO->outarray;
         $gTempAssess = new TaxFee();
         $gTempAssess->ReplaceValueDef($get_varx[complex_tfoid], $owner_id, $business_id, $getn[0]);
         $replace_var = $gTempAssess->outarray;
         if ($replace_var[compval] > 0) {
             $repval = $replace_var[compval];
         } else {
             $repval = $replace_var[defamt];
             $havegar = strpos(strtolower(trim($replace_var[tfodesc])), 'garbage');
             if ($g_zone == 0) {
                 if ($havegar > -1) {
                     $exemptedfee = $exemptedfee + $repval;
                     $repval = 0;
                 }
             }
             $getex = SelectMultiTable($dbtype, $dbLink, "ebpls_business_enterprise a, fee_exempt b,\n\t\t\t                        ebpls_buss_tfo c", "a.*", "where a.business_id={$business_id} and\n\t\t\t\t\t\t\t\t\ta.business_category_code=b.business_category_code and\n\t\t\t\t\t\t\t\t\tc.tfoid='{$replace_var['tfoid']}' and b.tfoid='{$replace_var['tfoid']}' and\n\t\t\t\t\t\t\t\t\tb.active=1");
             $getfeex = NumRows($dbtype, $getex);
             if ($getfeex > 0) {