Ejemplo n.º 1
0
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=fellingHome&markId=" . $markDetailId);
}
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=fellingHome&markId=" . $markDetailId);
}
$markList = $markDetail->getTreeMarkDetail($markDetailId, $treeId);
$treeEntryDetail = $markList;
if ($progressID != '') {
    $arFieldValues['id'] = $progressID;
    $progressMasterDetail = $common->selectCondition('progress_felling_master', $arFieldValues);
    $i_contractor_id = $progressMasterDetail[0]['i_contractor_id'];
    $i_month_id = $progressMasterDetail[0]['vc_month'];
    $i_year = $progressMasterDetail[0]['vc_year'];
    $voulmeDetail = $markDetail->getFellingConversionDetail($progressID);
    $tableP = 'progress_felling_charges';
    $fellingCharges = $common->getProgressChargesInfo($tableP, $progressID);
} else {
    $i_contractor_id = '';
    $i_month_id = '';
    $i_year = '';
}
$arrMarkDetail = $common->getInfo('c_mark_detail', $markDetailId);
$forestId = $arrMarkDetail[0]['i_forest_id'];
$arrCondition = array('i_forest_id' => $forestId, 'i_tree_id' => $treeId);
$priceMaster = $common->selectCondition('m_price', $arrCondition);
$arrCondition = array('i_mark_id' => $markDetailId, 'i_tree_id' => $treeId);
$currentPrice = $common->selectCondition('c_marked_price', $arrCondition);
$unitPriceValue = 0;
$defaultPrice = $priceMaster[0]['price'];