本文整理汇总了PHP中Price::update_isvalid方法的典型用法代码示例。如果您正苦于以下问题:PHP Price::update_isvalid方法的具体用法?PHP Price::update_isvalid怎么用?PHP Price::update_isvalid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Price
的用法示例。
在下文中一共展示了Price::update_isvalid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$sqs_objects = array('assigned_user_name' => $qsd->getQSUser());
$quicksearch_js = $qsd->getQSScripts();
$quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js() . $quicksearch_js);
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("NAME", $focus->name);
$xtpl->assign("DUE_DATE", $focus->due_date);
//Isvalid
$current_date = $timedate->to_display_date(gmdate('Y-m-d H:i:s'));
if (empty($focus->due_date)) {
$xtpl->assign('isvalid', $focus->isvalid);
} elseif ($current_date > $focus->due_date) {
$focus->update_isvalid();
$focus->isvalid = 'Not Valid';
$xtpl->assign('isvalid', $focus->isvalid);
}
$xtpl->assign('ISVALID_OPTIONS', get_select_options_with_id($app_list_strings['isvalid_options'], $focus->isvalid));
$xtpl->assign("PRICE", $focus->price);
//Material Link
if (isset($focus->paper_id)) {
$xtpl->assign("PAPER_ID", $focus->paper_id);
}
if (isset($focus->material_id)) {
$xtpl->assign("MATERIAL_ID", $focus->material_id);
}
if (isset($focus->supplier_id)) {
$xtpl->assign("SUPPLIER_ID", $focus->supplier_id);
$xtpl->assign("SUPPLIER_NAME", $focus->supplier_name);