當前位置: 首頁>>代碼示例>>PHP>>正文


PHP database2::getRegistrationDetails_discount方法代碼示例

本文整理匯總了PHP中database2::getRegistrationDetails_discount方法的典型用法代碼示例。如果您正苦於以下問題:PHP database2::getRegistrationDetails_discount方法的具體用法?PHP database2::getRegistrationDetails_discount怎麽用?PHP database2::getRegistrationDetails_discount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在database2的用法示例。


在下文中一共展示了database2::getRegistrationDetails_discount方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

echo "</tr>";
$companyDiscount = $ro->selectNow("registrationDetails", "companyDiscount", "registrationNo", $registrationNo);
echo "<Tr>";
//discount type
if ($ro->selectNow("registrationDetails", "discountType", "registrationNo", $registrationNo) != "") {
    echo "<td>&nbsp;<font size=2>" . $ro->selectNow("registrationDetails", "discountType", "registrationNo", $registrationNo) . "</font></tD>";
} else {
}
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($companyDiscount != "") {
    echo "<td>&nbsp;" . number_format($companyDiscount, 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;</tD>";
}
if ($ro->getRegistrationDetails_discount() != "") {
    echo "<td>&nbsp;" . number_format($ro->getRegistrationDetails_discount(), 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;0.00&nbsp;</tD>";
}
echo "</tr>";
//}
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
$grandTotalCompany = $hospitalBill_company + $pf_company;
$grandTotalCompany1 = $grandTotalCompany - $companyDiscount;
$grandTotalPHIC = $hospitalBill_phic + $pf_phic;
echo "<Tr>";
echo "<td>&nbsp;<b>Grand Total</b></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;" . number_format($grandTotalPHIC, 2) . "</tD>";
開發者ID:rickyx12,項目名稱:mendero,代碼行數:31,代碼來源:summaryCompany.php

示例2:

echo "<td>&nbsp;<span class='txtSize'><b>" . number_format($hospitalBill_phic + $pf_phic, 2) . "</b></span>&nbsp;</tD>";
echo "<td>&nbsp;<span class='txtSize'><b>" . number_format($hospitalBill_company + $pf_company, 2) . "</b></span>&nbsp;</tD>";
//echo "<td>&nbsp;<b>".number_format($hospitalBill_phic + $pf_phic,2)."</b>&nbsp;</tD>";
echo "<td>&nbsp;<span class='txtSize'><b>" . number_format($hospitalBill_cash + $pf_cash - $HBandPF + $refund, 2) . "</b></span>&nbsp;</tD>";
echo "</tr>";
$companyDiscount = $ro->selectNow("registrationDetails", "companyDiscount", "registrationNo", $registrationNo);
echo "<Tr>";
echo "<td>&nbsp;<span class='txtSize'>Discount</span> </tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($companyDiscount != "") {
    echo "<td>&nbsp;<span class='txtSize'>" . number_format($companyDiscount, 2) . "</span>&nbsp;</tD>";
} else {
    echo "<td>&nbsp;</tD>";
}
if ($ro->getRegistrationDetails_discount() != "") {
    echo "<td>&nbsp;<span class='txtSize'>" . number_format($ro->getRegistrationDetails_discount(), 2) . "</span>&nbsp;</tD>";
} else {
    echo "<td>&nbsp;<span class='txtSize'>0.00</span>&nbsp;</tD>";
}
echo "</tr>";
//}
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
$grandTotalCompany = $hospitalBill_company + $pf_company;
$grandTotalCompany1 = $grandTotalCompany - $companyDiscount;
$grandTotalPHIC = $hospitalBill_phic + $pf_phic;
echo "<Tr>";
echo "<td>&nbsp;<span class='txtSize'><b>Grand Total</b></span></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;<span class='txtSize'>" . number_format($grandTotalPHIC, 2) . "</span></tD>";
開發者ID:rickyx12,項目名稱:mendero,代碼行數:31,代碼來源:summary-jan_29_2015-tessieFormat.php

示例3:

}
echo "</tr>";
//$ro->getPatientDoc($registrationNo);
//$gross = (  $cashz - $ro->getPaymentHistory_showUp_returnPaid() );
//$disc = $ro->getRegistrationDetails_discount() * $gross;
echo "<tr>";
echo "<td><b>Professional Fee</b></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
//echo "<td>&nbsp;<b>".$pf_phic."</b></tD>";
echo "<td>&nbsp;</tD>";
echo "</tr>";
$ro->getPatientDoc($registrationNo);
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
echo "<tr>";
echo "<td><b></b></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_gt . "'></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_phic . "'></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_company . "'></tD>";
//echo "<td>&nbsp;<b>".$pf_phic."</b></tD>";
echo "<td>&nbsp;<input type='text' class='editable' value='" . $pf_cash . "'></tD>";
echo "</tr>";
echo "<tr>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<tr>";
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:summaryEditable.php

示例4:

if ($ro->selectNow("registrationDetails", "package", "registrationNo", $registrationNo) != "") {
    $package = $ro->selectNow("registrationDetails", "package", "registrationNo", $registrationNo);
    $splitPackage = preg_split("/\\_/", $package);
} else {
    $package = "0_0_0";
    $splitPackage = preg_split("/\\_/", $package);
}
echo "<Tr>";
echo "<td><div align='left' class='Arial12BlackBold'>&nbsp;TOTAL</div></tD>";
echo "<td><div align='right' class='Arial12BlackBold'>&nbsp;" . number_format($hospitalBill_gt + $pf_gt, 2) . "&nbsp;</div></tD>";
echo "<td><div align='right' class='Arial12BlackBold'>&nbsp;" . number_format($hospitalBill_phic + $pf_phic, 2) . "&nbsp;</div></tD>";
echo "<td><div align='right' class='Arial12BlackBold'>&nbsp;" . number_format($hospitalBill_company + $pf_company, 2) . "&nbsp;</div></tD>";
echo "<td><div align='right' class='Arial12BlackBold'>&nbsp;" . number_format($hospitalBill_cash + $pf_cash, 2) . "&nbsp;</div></tD>";
echo "</tr>";
$companyDiscount = $ro->selectNow("registrationDetails", "companyDiscount", "registrationNo", $registrationNo);
$x = $ro->getRegistrationDetails_discount();
if ($companyDiscount == "" && $ro->getRegistrationDetails_discount() == "") {
} else {
    echo "<Tr>";
    if ($ro->selectNow("registrationDetails", "discountType", "registrationNo", $registrationNo) == "") {
        echo "<td><div align='left' class='Arial12BlackBold'>&nbsp;DISCOUNT&nbsp;</div> </tD>";
    } else {
        echo "<td><div align='left' class='Arial12BlackBold'>&nbsp;" . $ro->selectNow("registrationDetails", "discountType", "registrationNo", $registrationNo) . "&nbsp;</div> </tD>";
    }
    echo "<td></tD>";
    echo "<td></tD>";
    if ($companyDiscount != "") {
        echo "<td><div align='right' class='Arial12Black'>&nbsp;" . number_format($companyDiscount, 2) . "&nbsp;</div></tD>";
    } else {
        echo "<td></tD>";
    }
開發者ID:rickyx12,項目名稱:mendero,代碼行數:31,代碼來源:summary.php

示例5:

/*
if($ro->getRegistrationDetails_discount() < .30 )  {
echo "<Tr>";
echo "<td>&nbsp;Discount <font size=2>(".substr($ro->getRegistrationDetails_discount(),2,2)."%)</font></tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;".number_format(( $disc),2)."&nbsp;</tD>";
echo "</tr>";
}else {*/
echo "<Tr>";
echo "<td>&nbsp;Discount </tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
echo "<td>&nbsp;</tD>";
if ($ro->getRegistrationDetails_discount() != "") {
    echo "<td>&nbsp;" . number_format($ro->getRegistrationDetails_discount(), 2) . "&nbsp;</tD>";
} else {
    echo "<td>&nbsp;0.00&nbsp;</tD>";
}
echo "</tr>";
//}
$gross = $cashz - $ro->getPaymentHistory_showUp_returnPaid();
$disc = $ro->getRegistrationDetails_discount() * $gross;
if ($ro->checkIfPackageExist($registrationNo) > 0) {
    echo "<Tr>";
    echo "<td>&nbsp;<b>Grand Total</b></tD>";
    echo "<td>&nbsp;</tD>";
    echo "<td>&nbsp;</tD>";
    echo "<td>&nbsp;</tD>";
    echo "<td>&nbsp;<b>" . $ro->sumPackageNow($registrationNo) . "</b>&nbsp;</tD>";
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:summary-apr26.php


注:本文中的database2::getRegistrationDetails_discount方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。