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


PHP CRMEntity::trash方法代碼示例

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


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

示例1: trash

 /**
  * Customizing the Delete procedure.
  */
 function trash($module, $recordId)
 {
     $status = getInvoiceStatus($recordId);
     if ($status != 'Cancel') {
         addProductsToStock($recordId);
     }
     parent::trash($module, $recordId);
 }
開發者ID:rcrrich,項目名稱:UpdatePackages,代碼行數:11,代碼來源:Invoice.php

示例2: trash

 function trash($module, $record)
 {
     global $adb;
     parent::trash($module, $record);
     if (vtlib_isModuleActive('TCTotals')) {
         include_once 'modules/TCTotals/TCTotalsHandler.php';
         $tcdata = $adb->query("select smownerid,date_start from vtiger_timecontrol inner join vtiger_crmentity on crmid=timecontrolid where timecontrolid={$record}");
         $workdate = $adb->query_result($tcdata, 0, 'date_start');
         $tcuser = $adb->query_result($tcdata, 0, 'smownerid');
         TCTotalsHandler::updateTotalTimeForUserOnDate($tcuser, $workdate);
     }
 }
開發者ID:jmangarret,項目名稱:vtigercrm,代碼行數:12,代碼來源:Timecontrol.php

示例3: trash

 /**
  * Customizing the Delete procedure.
  */
 function trash($module, $recordId)
 {
     global $adb;
     $result = $adb->pquery("SELECT postatus FROM vtiger_purchaseorder where purchaseorderid=?", array($recordId));
     $poStatus = $adb->query_result($result, 0, 'postatus');
     if ($poStatus == 'Received Shipment') {
         deductProductsFromStock($recordId);
     }
     parent::trash($module, $recordId);
 }
開發者ID:kikojover,項目名稱:corebos,代碼行數:13,代碼來源:PurchaseOrder.php

示例4: trash

 /**
  * Customizing the Delete procedure.
  */
 function trash($module, $recordId)
 {
     global $adb;
     $result = $adb->pquery("SELECT sostatus FROM vtiger_salesorder where salesorderid=?", array($recordId));
     $soStatus = $adb->query_result($result, 0, 'sostatus');
     if ($soStatus != 'Cancelled') {
         addProductsToStock($recordId);
     }
     parent::trash($module, $recordId);
 }
開發者ID:casati-dolibarr,項目名稱:corebos,代碼行數:13,代碼來源:SalesOrder.php

示例5: trash

 function trash($module, $record)
 {
     global $adb;
     parent::trash($module, $record);
     $rs = $adb->pquery("select related_id,parent_id from vtiger_cobropago where cobropagoid=?", array($record));
     if ($rs and $adb->num_rows($rs) == 1) {
         $relatedId = $adb->query_result($rs, 0, 'related_id');
         $pid = $adb->query_result($rs, 0, 'parent_id');
         if (!empty($relatedId) and self::invoice_control_installed()) {
             Invoice::updateAmountDue($relatedId);
         }
         // Calculate related module balance
         CobroPago::calculateRelatedTotals($pid);
     }
 }
開發者ID:jaimeaga84,項目名稱:corebos,代碼行數:15,代碼來源:CobroPago.php

示例6: trash

 /**
  * Customizing the Delete procedure.
  */
 function trash($module, $recordId)
 {
     global $adb;
     $result = $adb->pquery("SELECT invoicestatus FROM vtiger_invoice where invoiceid=?", array($recordId));
     $invoiceStatus = $adb->query_result($result, 0, 'invoicestatus');
     if ($invoiceStatus != 'Cancel') {
         addProductsToStock($recordId);
     }
     parent::trash($module, $recordId);
 }
開發者ID:jgjermeni,項目名稱:corebos,代碼行數:13,代碼來源:Invoice.php


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