getName().'&view='.$invoiceModuleModel->getEditViewName().'&account_id='.$this->get('related_to').'&contact_id='.$this->get('contact_id'); } /** * Function returns the url for create event * @return */ function getCreateEventUrl() { $calendarModuleModel = Vtiger_Module_Model::getInstance('Calendar'); return $calendarModuleModel->getCreateEventRecordUrl().'&parent_id='.$this->getId(); } /** * Function returns the url for create todo * @return */ function getCreateTaskUrl() { $calendarModuleModel = Vtiger_Module_Model::getInstance('Calendar'); return $calendarModuleModel->getCreateTaskRecordUrl().'&parent_id='.$this->getId(); } /** * Function to get List of Fields which are related from Contacts to Inventyory Record * @return */ public function getInventoryMappingFields() { return array( array('parentField'=>'related_to', 'inventoryField'=>'account_id', 'defaultValue'=>''), array('parentField'=>'contact_id', 'inventoryField'=>'contact_id', 'defaultValue'=>''), ); } /** * Function returns the url for create quote * @return */ public function getCreateQuoteUrl() { $quoteModuleModel = Vtiger_Module_Model::getInstance('Quotes'); return $quoteModuleModel->getCreateRecordUrl().'&sourceRecord='.$this->getId().'&sourceModule='.$this->getModuleName().'&potential_id='.$this->getId().'&relationOperation=true'; } }