| 1 |
<?php |
| 2 |
|
| 3 |
// Tax Settings Helper Functions |
| 4 |
function easy_invoice_get_tax_enabled() { |
| 5 |
return get_option('easy_invoice_tax_enabled', 'no') === 'yes'; |
| 6 |
} |
| 7 |
|
| 8 |
function easy_invoice_get_tax_entry_method() { |
| 9 |
return get_option('easy_invoice_tax_entry_method', 'exclusive'); |
| 10 |
} |
| 11 |
|
| 12 |
function easy_invoice_get_tax_rate() { |
| 13 |
return floatval(get_option('easy_invoice_tax_rate', '0')); |
| 14 |
} |
| 15 |
|
| 16 |
function easy_invoice_get_tax_name() { |
| 17 |
return get_option('easy_invoice_tax_name', __('Tax', 'easy-invoice')); |
| 18 |
} |