[Vtigercrm-developers] Show Service instead Product as default in Inventory Entry in VT7

Patrick Allen alexander.allenz at gmail.com
Tue May 24 22:58:49 GMT 2022


Thank you Ruben. I achieve this time ago but appreciate your help.


El lun, 23 may 2022 a las 20:18, Ruben Estrada (<rulotec1 at gmail.com>)
escribió:

> I know it's a bit late since the question was asked, but here's an answer.
>
> There are basically 2 options:
>
> 1) If you don't use the Products module at all, just disable it and
> Services will be the default.
>
> 2) If you do use Products, then go to
> layouts/v7/modules/Inventory/partials/LineItemsContent.tpl and around
> line 88, you'll find something like:
>
>
> {elseif $entityType eq '' and $PRODUCT_ACTIVE eq 'true'}
>
> <span class="lineItemPopup cursorPointer"
> data-popup="ProductsPopup" title="{vtranslate('Products',$MODULE)}"
> data-module-name="Products"
>
> data-field-name="productid">{Vtiger_Module_Model::getModuleIconPath('Products')}</span>
>                                                                 {elseif
> $entityType eq '' and $SERVICE_ACTIVE eq 'true'}
>
> <span class="lineItemPopup cursorPointer"
> data-popup="ServicesPopup" title="{vtranslate('Services',$MODULE)}"
> data-module-name="Services"
>
> data-field-name="serviceid">{Vtiger_Module_Model::getModuleIconPath('Services')}</span>
>                                                                 {else}
>
> just switch the elseif statements, so that services is the default.
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20220524/48004a07/attachment.html>


More information about the vtigercrm-developers mailing list