swilders Posted October 28, 2013 Share Posted October 28, 2013 Hello, When creating a new invoice the "Taxed" checkbox is ticked by default. On a quote it isn't. Please can we have it ticked by default on a quote? 0 Quote Link to comment Share on other sites More sharing options...
Jaggl Posted August 20, 2014 Share Posted August 20, 2014 this seams to be still a problem... 0 Quote Link to comment Share on other sites More sharing options...
swilders Posted August 21, 2014 Author Share Posted August 21, 2014 (edited) 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 August 21, 2014 by swilders 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.