vtiger Forum Index vtiger
The Honest Open Source CRM
 

Changing Tax Mode in Group (standard)
Click here to go to the original topic

 
       vtiger Forum Index -> Help - 5.0.4
Previous topic :: Next topic  
Author Message
12AllMarketing



Joined: 30 Apr 2008
Posts: 30

Posted: Thu Aug 28, 2008 8:24 am    Post subject: Changing Tax Mode in Group (standard)  

Hi

When creating an invoice, quote... you can chose for tax modes group and individual.

I wanted to change the standard (individual) to group.

How should I do that?

I allready found that I can change the standard selection in this file:
Smarty\templates\Inventory\ProductDetails.tpl

There you can change this
Code:
   <td class="dvInnerHeader">
      <select id="taxtype" name="taxtype" onchange="decideTaxDiv(); calcTotal();">
         <OPTION value="individual" selected>{$APP.LBL_INDIVIDUAL}</OPTION>
         <OPTION value="group">{$APP.LBL_GROUP}</OPTION>
      </select>
   </td>


into
Code:
   <td class="dvInnerHeader">
      <select id="taxtype" name="taxtype" onchange="decideTaxDiv(); calcTotal();">
         <OPTION value="individual">{$APP.LBL_INDIVIDUAL}</OPTION>
         <OPTION value="group" selected>{$APP.LBL_GROUP}</OPTION>
      </select>
   </td>


But this will not change the appearence of the invoice, quote...
You still have to select it again (so it states group, but it is individual). To have group mode then, you'd first have to select individual and then group again.


Can someone help please?
Back to top  
pinaki



Joined: 18 Oct 2007
Posts: 57

Posted: Thu Aug 28, 2008 10:15 am    Post subject: Changing Tax Mode in Group (standard)  

Hi,

You were almost there. The thing you missed here is that there are two divs (one for group and one for individual). Since, you are enabling the group option as the default for tax, you will also need to enable div for it.

Search for the line:

<tr id="group_tax_row" valign="top" class="TaxHide">

(you can search for taxhide keyword). Change the class to "TaxShow".
Similarly there will be one for the individual tax div. Search for this using TaxShow keyword. The line is:

<tr id="individual_tax_row1" class="TaxShow">

Change the class to TaxHide here. This will do the trick for you.

Contact me if you have any issues.

Thanks
Pinaki
vTiger Team
Back to top  
12AllMarketing



Joined: 30 Apr 2008
Posts: 30

Posted: Thu Aug 28, 2008 10:49 am    Post subject: Re: Changing Tax Mode in Group (standard)  

Great.

It works :-)
Back to top  
 
       vtiger Forum Index -> Help - 5.0.4
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group