Exemplo n.º 1
0
 /**
  * returns the tax rule value
  *
  * @param string $country
  * @param bool $company
  *
  * @return int|null|mixed
  */
 private function getTaxRuleValue($country, $company)
 {
     if (!$this->ruleSet->hasRule($country)) {
         return 0;
     }
     if ($company && $country !== $this->country) {
         return 0;
     }
     return $this->ruleSet->getRuleValue($country);
 }