Changeset 13016
- Timestamp:
- 11/27/09 06:19:54 (4 months ago)
- Files:
-
- vtigercrm/branches/5.2.0/data/CRMEntity.php (modified) (2 diffs)
- vtigercrm/branches/5.2.0/modules/Invoice/Invoice.php (modified) (3 diffs)
- vtigercrm/branches/5.2.0/modules/Invoice/Save.php (modified) (1 diff)
- vtigercrm/branches/5.2.0/modules/Users/Users.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
vtigercrm/branches/5.2.0/data/CRMEntity.php
r12963 r13016 966 966 */ 967 967 function mark_deleted($id) { 968 global $current_user; 968 969 $date_var = date('Y-m-d H:i:s'); 969 $query = "UPDATE vtiger_crmentity set deleted=1,modifiedtime=? where crmid=?";970 $this->db->pquery($query, array($this->db->formatDate($date_var, true),$ id), true,"Error marking record deleted: ");970 $query = "UPDATE vtiger_crmentity set deleted=1,modifiedtime=?,modifiedby=? where crmid=?"; 971 $this->db->pquery($query, array($this->db->formatDate($date_var, true),$current_user->id,$id), true,"Error marking record deleted: "); 971 972 } 972 973 … … 1288 1289 $this->db->startTransaction(); 1289 1290 1290 $this->db->pquery('UPDATE vtiger_crmentity SET deleted=0 WHERE crmid = ?', array($id)); 1291 $date_var = date('Y-m-d H:i:s'); 1292 $query = 'UPDATE vtiger_crmentity SET deleted=0,modifiedtime=?,modifiedby=? WHERE crmid = ?'; 1293 $this->db->pquery($query, array($this->db->formatDate($date_var, true),$current_user->id,$id),true,"Error restoring records :" ); 1291 1294 //Restore related entities/records 1292 1295 $this->restoreRelatedRecords($module,$id); vtigercrm/branches/5.2.0/modules/Invoice/Invoice.php
r13015 r13016 27 27 require_once('include/utils/utils.php'); 28 28 require_once('user_privileges/default_module_view.php'); 29 require_once('modules/Emails/mail.php'); 29 30 30 // Account is used to store vtiger_account information. 31 31 class Invoice extends CRMEntity { … … 123 123 //in ajax save we should not call this function, because this will delete all the existing product values 124 124 if(isset($this->_recurring_mode) && $this->_recurring_mode == 'recurringinvoice_from_so' && isset($this->_salesorderid) && $this->_salesorderid!='') { 125 // We are getting called from the RecurringInvoice cron service! 125 126 $this->createRecurringInvoiceFromSO(); 126 } 127 128 else if(isset($_REQUEST)) { 127 128 } else if(isset($_REQUEST)) { 129 129 if($_REQUEST['action'] != 'InvoiceAjax' && $_REQUEST['ajxaction'] != 'DETAILVIEW' && $_REQUEST['action'] != 'MassEditSave') 130 130 { … … 137 137 // Update the currency id and the conversion rate for the invoice 138 138 $update_query = "update vtiger_invoice set currency_id=?, conversion_rate=? where invoiceid=?"; 139 139 140 $update_params = array($this->column_fields['currency_id'], $this->column_fields['conversion_rate'], $this->id); 140 141 $this->db->pquery($update_query, $update_params); vtigercrm/branches/5.2.0/modules/Invoice/Save.php
r12876 r13016 25 25 require_once('include/logging.php'); 26 26 require_once('include/database/PearDatabase.php'); 27 include ("modules/Emails/mail.php");27 include_once("modules/Emails/mail.php"); 28 28 29 29 $local_log =& LoggerManager::getLogger('index'); vtigercrm/branches/5.2.0/modules/Users/Users.php
r13011 r13016 151 151 152 152 // This is the list of fields that are in the lists. 153 var $default_order_by = " depth";153 var $default_order_by = "user_name"; 154 154 var $default_sort_order = 'ASC'; 155 155
