Commit Graph

133 Commits

Author SHA1 Message Date
Barry Kooij 4dd60d42c7 Docblock fixes 2014-11-21 22:40:42 +01:00
Mike Jolley 8b4332a037 Refactors to shipping tax rate methods 2014-11-21 13:06:33 +00:00
Mike Jolley b440a6a165 Split find_rates method 2014-11-21 13:06:33 +00:00
Mike Jolley 665d2aa8a3 combine city and postcode save logic 2014-11-20 21:02:10 +00:00
Mike Jolley f088f81dcf Optimise tax rate importer and use same code as tax settings class 2014-11-20 18:41:51 +00:00
Mike Jolley 1ec8dabf8a Added method for expanding postcode ranges 2014-11-20 17:08:17 +00:00
claudiosmweb f34cead914 Removed old code in favor of wc_tax_enabled() and wc_prices_include_tax() 2014-11-18 14:45:29 -02:00
Mike Jolley cb8fe34b4c get_base_tax_rates() + filter. Closes #6668 2014-11-11 11:56:17 +00:00
Coen Jacobs 7ea0d586c9 Allow to filter empty tax rate code 2014-10-28 12:24:09 +01:00
shivapoudel 03c3e27c5d Indendation fix by .editorconfig 2014-09-21 00:47:51 +05:45
Mike Jolley 4a306beef5 Max 100 taxes displayed, but show text input 2014-07-23 11:30:06 +01:00
Mike Jolley 0e418a2961 Helper for getting tax rate percent 2014-07-10 11:01:00 +01:00
JDGrimes a4a7daf960 Don't assume the database prefix is wp_
Use `$wpdb->prefix` instead. It was inconsistent with the rest of the
query anyway.
2014-06-19 11:35:33 -04:00
Mike Jolley 93778e72b0 Tax class fixes + notices 2014-06-13 15:53:59 +01:00
Mike Jolley 375a0e2652 static WC_Tax class - no need for a constructor in this 2014-06-12 16:47:43 +01:00
Mike Jolley 6b35c59f5b Tweaked tax query to contain less subqueries 2014-06-02 11:55:36 +01:00
Andrew Benbow 310cd61cc5 Update class-wc-tax.php
Compound tax rate calculation is wildly off.

Current tax settings : http://cld.wthms.co/Qeb6

Cart before proposed change : http://cld.wthms.co/ILXk

Cart after proposed change : http://cld.wthms.co/fjWO
2014-02-25 11:54:58 +00:00
Mike Jolley 3be6664f05 Handle get_rate_code when no matching rate is found. Prevents notices. 2014-02-17 15:11:50 +00:00
Geert De Deckere 7169157297 Cache tax rates to save database queries 2014-01-10 23:57:19 +01:00
Coen Jacobs 19688ad9ef Fixed several @return void clauses. There are more. No code changes in this commit, only PhpDocs
Closes #4216
2013-11-27 10:03:47 +01:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 7b63c6ce49 Remove parameters from function as well #4194 2013-11-25 09:19:24 +01:00
Coen Jacobs 73215ba4e2 Remove 2.0 tax deprecated arguments #4194 2013-11-25 09:17:44 +01:00
Mike Jolley 65561e2c61 WC() 2013-11-18 12:31:55 +00:00
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley 19c3ab7172 calc_tax functions 2013-10-24 16:16:39 +01:00
Mike Jolley e4ff61f475 You know when you've been benbowed 2013-10-24 14:53:01 +01:00
Mike Jolley 51aba21d76 Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes 2013-10-24 13:15:42 +01:00
Mike Jolley 66adf51e67 Filterable get_base_postcode and _city methods used for base taxes. Closes #3810 2013-09-24 16:56:55 +01:00
Mike Jolley b93df4e706 Excl and incl. display options for prices, and suffix to add additonal info and prices. Closes #1506. 2013-09-19 16:31:54 +01:00
Mike Jolley c501b1b59a Remove taxes from cart with a zero-rate. 2013-09-10 11:04:29 +01:00
Mike Jolley f87505b445 Rounding tweaks 2013-06-13 17:01:47 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00