• Resolved Jabe

    (@jabe)


    Hi!

    After your last update I discovered the Taxes classification setting.
    I’m trying to add a custom tax exemption which is very famous in France and which is:
    “Exempt based on article 293B of the Code Général des Impôts (CGI ; General tax code)”

    The problem is that it’s not part of the list provided by default by your plugin.

    I tried some link that you are giving in the backend but it’s broken, nothing happens when i click on:
    “You can add custom tax schemes, categories or reasons by following the instructions in our documentation”

    When I check the code it’s just:

    <a href="#" target="_blank" rel="noopener noreferrer">documentation

    So please add this tax exempt to your next update or explain how to add custom text?

    Thanks in advance.

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

    (@alexmigf)

    Hi @jabe

    Sorry, we didn’t had the documentation ready in time for the release. In the meantime, you can use these filters to add custom schemes, categories, or reasons for UBL tax classification.

    Let us know if you need any help.

    Thread Starter Jabe

    (@jabe)

    Thanks for the answer but it’s not very clear how to use these filters so I will wait for the documentation I guess…

    Plugin Contributor alexmigf

    (@alexmigf)

    Try this:

    add_filter( 'wpo_wcpdf_ubl_tax_categories', 'wpo_wcpdf_add_tax_category', 10, 1 );
    function wpo_wcpdf_add_tax_category( $tax_categories ) {
    $tax_categories['AB'] = __( 'AB label', 'woocommerce-pdf-invoices-packing-slips' );
    return $tax_categories;
    }

    add_filter( 'wpo_wcpdf_ubl_tax_schemes', 'wpo_wcpdf_add_tax_scheme', 10, 1 );
    function wpo_wcpdf_add_tax_scheme( $tax_schemes ) {
    $tax_schemes['VAT'] = __( 'Tax EV1', 'woocommerce-pdf-invoices-packing-slips' );
    return $tax_schemes;
    }

    add_filter( 'wpo_wcpdf_ubl_tax_reasons', 'wpo_wcpdf_add_tax_reason', 10, 1 );
    function wpo_wcpdf_add_tax_reason( $tax_reasons ) {
    $tax_reasons['reason'] = __( 'Some reason', 'woocommerce-pdf-invoices-packing-slips' );
    return $tax_reasons;
    }

    Adjust as needed.

    Plugin Contributor alexmigf

    (@alexmigf)

    You just need to assign a key and a value. Make sure the key is unique and doesn’t match any of the existing ones, or it will override the default values. You can see the current ones here.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Tax classification?’ is closed to new replies.