[Vtigercrm-developers] Comments in Quotes Module
Siam Translations LLP
info at siam-translations.com
Mon Jul 7 14:18:53 GMT 2014
or create php file in main vtiger directory, paste following code (changing
invoice to Quotes) and fire it in browser:
<?php
require_once 'vtlib/Vtiger/Module.php';
require_once 'modules/ModComments/ModComments.php';
$commentsModule = Vtiger_Module::getInstance('ModComments');
$fieldInstance = Vtiger_Field::getInstance('related_to', $commentsModule);
$fieldInstance->setRelatedModules(array('Invoice'));// Give the Module name
for which you want to add comment
$detailviewblock = ModComments::addWidgetTo('Invoice');//Give the Module
name for which you want to add comment
echo "Comments have been added for Invoice Module";
?>
Siam Translations LLP
www.siam-translations.com
This message contains confidential information and is intended for
[Recipient]. If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.
On Mon, Jul 7, 2014 at 8:32 PM, Alan Lord <alanslists at gmail.com> wrote:
> On 07/07/14 14:14, Michael Lockwood wrote:
>
>> We are wanting to be able to add Comments to Quotes in vTiger just like
>> other modules (Opportunities, Contacts, etc). Is there a way to do this
>> in vTiger 6?
>>
>
> Same as with 5.4.0
>
> Use the vtlib API:
>
> /*** Comments Block ***/
>> // Link to modComments Module
>> $modComments = Vtiger_Module::getInstance('ModComments');
>> $field_relatedTo = Vtiger_Field::getInstance('related_to', $modComments);
>> $field_relatedTo->setRelatedModules(array('Quotes'));
>> $detailviewblock = ModComments::addWidgetTo('Quotes');
>>
>
>
>
> HTH
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140707/8c29a5a6/attachment-0001.html>
More information about the vtigercrm-developers
mailing list