Jump to content

Create new quote - taxed not checked


swilders

Recommended Posts

  • 9 months later...

I ended up adding some jQuery to header.tpl to check the box for us:

 

I changed this...

 

<script type="text/javascript">
var datepickerformat = "{$datepickerformat}";
{if $jquerycode}$(document).ready(function(){ldelim}
   {$jquerycode}
{rdelim});
{/if}
{if $jscode}{$jscode}
{/if}
</script>

 

to this...

 

<script type="text/javascript">
var datepickerformat = "{$datepickerformat}";
{if $jquerycode}$(document).ready(function(){ldelim}
$("input[type='checkbox'][name^='taxed']").each(function() {ldelim}
	$(this).prop('checked',true);
{rdelim});
$("input[type='checkbox'][name^='taxable']").each(function() {ldelim}
	$(this).prop('checked',true);
{rdelim});
   {$jquerycode}
{rdelim});
{/if}
{if $jscode}{$jscode}
{/if}
</script>

 

Works a treat. Just be careful not to overwrite the change when upadting if editing one of the default templates (like I've done on several occasions!)

 

NB: on quotes, it checks the box after saving each line.

Edited by swilders
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated