mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Cast int to string
This commit is contained in:
parent
aaeb48f75d
commit
ebda7b7033
@ -235,7 +235,7 @@ class BaseRule implements RuleInterface
|
||||
return $this;
|
||||
} elseif($this->isTaxableRegion()) { //other regions outside of US
|
||||
|
||||
match($item->tax_id) {
|
||||
match(intval($item->tax_id)) {
|
||||
Product::PRODUCT_TYPE_EXEMPT => $this->taxExempt(),
|
||||
Product::PRODUCT_TYPE_REDUCED_TAX => $this->taxReduced(),
|
||||
Product::PRODUCT_TYPE_OVERRIDE_TAX => $this->override(),
|
||||
|
@ -66,7 +66,7 @@ class Rule extends BaseRule implements RuleInterface
|
||||
return $this->taxExempt();
|
||||
}
|
||||
|
||||
match($product_tax_type){
|
||||
match(intval($product_tax_type)){
|
||||
Product::PRODUCT_TYPE_EXEMPT => $this->taxExempt(),
|
||||
Product::PRODUCT_TYPE_DIGITAL => $this->taxDigital(),
|
||||
Product::PRODUCT_TYPE_SERVICE => $this->taxService(),
|
||||
|
@ -57,7 +57,7 @@ class Rule extends BaseRule implements RuleInterface
|
||||
public function taxByType($product_tax_type): self
|
||||
{
|
||||
|
||||
match($product_tax_type) {
|
||||
match(intval($product_tax_type)) {
|
||||
Product::PRODUCT_TYPE_EXEMPT => $this->taxExempt(),
|
||||
Product::PRODUCT_TYPE_DIGITAL => $this->taxDigital(),
|
||||
Product::PRODUCT_TYPE_SERVICE => $this->taxService(),
|
||||
@ -117,7 +117,7 @@ class Rule extends BaseRule implements RuleInterface
|
||||
*/
|
||||
public function taxShipping(): self
|
||||
{
|
||||
if($this->tax_data->txbFreight == 'Y') {
|
||||
if($this->tax_data?->txbFreight == 'Y') {
|
||||
$this->default();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user