当前位置: 首页>>代码示例>>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;未经允许,请勿转载。