本文整理汇总了PHP中CRMEntity::restore方法的典型用法代码示例。如果您正苦于以下问题:PHP CRMEntity::restore方法的具体用法?PHP CRMEntity::restore怎么用?PHP CRMEntity::restore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRMEntity
的用法示例。
在下文中一共展示了CRMEntity::restore方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: restore
/**
* Customizing the restore procedure.
*/
function restore($module, $id)
{
global $updateInventoryProductRel_deduct_stock;
$status = getInvoiceStatus($id);
if ($status != 'Cancel') {
$updateInventoryProductRel_deduct_stock = true;
}
parent::restore($module, $id);
}
示例2: restore
/**
* Customizing the restore procedure.
*/
function restore($modulename, $id)
{
parent::restore($modulename, $id);
global $adb;
$fresult = $adb->pquery("SELECT folderid FROM vtiger_notes WHERE notesid = ?", array($id));
if (!empty($fresult) && $adb->num_rows($fresult)) {
$folderid = $adb->query_result($fresult, 0, 'folderid');
if (!$this->isFolderPresent($folderid)) {
// Re-link to default folder
$adb->pquery("UPDATE vtiger_notes set folderid = ? WHERE notesid = ?", array(self::getFolderDefault()));
}
}
}
示例3: restore
/**
* Customizing the restore procedure.
*/
function restore($module, $id)
{
global $adb, $updateInventoryProductRel_deduct_stock;
$result = $adb->pquery("SELECT sostatus FROM vtiger_salesorder where salesorderid=?", array($id));
$soStatus = $adb->query_result($result, 0, 'sostatus');
if ($soStatus != 'Cancelled') {
$updateInventoryProductRel_deduct_stock = true;
}
parent::restore($module, $id);
}
示例4: restore
/**
* Customizing the restore procedure.
*/
function restore($module, $id)
{
global $adb, $updateInventoryProductRel_deduct_stock;
parent::restore($module, $id);
$result = $adb->pquery("SELECT postatus FROM vtiger_purchaseorder where purchaseorderid=?", array($id));
$poStatus = $adb->query_result($result, 0, 'postatus');
if ($poStatus == 'Received Shipment') {
addProductsToStock($id);
}
}
示例5: restore
/**
* Customizing the restore procedure.
*/
function restore($module, $id)
{
global $adb, $updateInventoryProductRel_deduct_stock;
$result = $adb->pquery("SELECT invoicestatus FROM vtiger_invoice where invoiceid=?", array($id));
$invoiceStatus = $adb->query_result($result, 0, 'invoicestatus');
if ($invoiceStatus != 'Cancel') {
$updateInventoryProductRel_deduct_stock = true;
}
parent::restore($module, $id);
}