<?php

// Tax Settings Helper Functions
function easy_invoice_get_tax_enabled() {
    return get_option('easy_invoice_tax_enabled', 'no') === 'yes';
}

function easy_invoice_get_tax_entry_method() {
    return get_option('easy_invoice_tax_entry_method', 'exclusive');
}

function easy_invoice_get_tax_rate() {
    return floatval(get_option('easy_invoice_tax_rate', '0'));
}

function easy_invoice_get_tax_name() {
    return get_option('easy_invoice_tax_name', __('Tax', 'easy-invoice'));
}