mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-23 13:23:00 +09:00
fix query that gets global tax rate
This commit is contained in:
1 parent
ca7e1a7bbd
commit
c782ff739f
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user