fix query that gets global tax rate

This commit is contained in:
Raul Rodriguez committed 2015-02-20 14:10:50 +01:00
1 parent ca7e1a7bbd
commit c782ff739f
1 file changed
+2 -2
+2 -2
View File
@@ -57,8 +57,8 @@ class ServiceTax implements InjectionAwareInterface
return $tax->taxrate;
}
// find rate which matches clients country
$tax = $this->di['db']->findOne('Tax', 'state is NULL or state = "" and country is null or country = ""');
// find global rate
$tax = $this->di['db']->findOne('Tax', '(state is NULL or state = "") and (country is null or country = "")');
if($tax instanceof \Model_Tax) {
$title = $tax->name;
return $tax->taxrate;