• Resolved hbbd

    (@hbbd)


    Hi

    I have downloaded and installed the Canadian Tax addon from your website.

    Is there really no settings in the plugin, to have the tax % predefined? It’s silly to have to type them in for every estimate, for every item. Don’t you think? Counterproductive for someone having to do 40 quotes a day.

    Moreover the GST checkmark that applies the 5% tax does not remain checked. Why is that? I check it, then save the estimate, and it’s unchecked upon refreshing. So weird. I can’t use this …

    Solutions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Elana Davis

    (@elanasparkle)

    Hello @hbbd

    ?Thank you for reaching out to support! We have the ability to set these defaults with a hook like the below hook. This will allow you to set defaults for every line item if you wanted.

    function si_add_tax_default( $columns = array() ) {
    	if ( isset( $columns['tax_pst'] ) ) {
    		$columns['tax_pst']['value'] = 12;
    	}
    	if ( isset( $columns['tax_hst'] ) ) {
    		$columns['tax_hst']['value'] = 24;
    	}
    	return $columns;
    }
    add_filter( 'si_line_item_columns', 'si_add_tax_default' );

    To add a hook you can use a plugin called snippet or you can put this in your active themes functions.php file. By going into your WordPress admin and going to Appearance -> Theme Editor and clicking on theme functions on the right and adding it past the <?PHP part in that file.

    Thanks
    Elana D.

    Thread Starter hbbd

    (@hbbd)

    Thank you, this is fixing the 1st issue to have the PST and HST taxes % by default.

    How about the GST tax (it’s a checkmark)? This should be checked by default as well.

    The GST tax is a checkmark, even manually it won’T apply. I click the checkmark to enable the tax (which should be by default as well!), the I save and it becomes unchecked. It’s not being applied.

    Thread Starter hbbd

    (@hbbd)

    Any news on the GST defect?

    Plugin Contributor Elana Davis

    (@elanasparkle)

    Hello @hbbd,

    Sorry for the wait this will be in the next update. If you wanted to manually apply the fix in the meantime you can by going to this file

    sprout-invoices/views/admin/sections/line-item-options.php

    Then on, line 97 add this under the input array

    'checked' => array(),

    Once that is added the checkmark will stay checked.

    Thanks
    Elana D.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Canadian Tax’ is closed to new replies.