mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 15:24:34 -04:00
Remove taxes
This commit is contained in:
parent
d13b81e0cf
commit
08f86419b4
@ -162,14 +162,16 @@ class Rule extends BaseRule implements RuleInterface
|
|||||||
|
|
||||||
if($this->tax_data?->stateSalesTax == 0) {
|
if($this->tax_data?->stateSalesTax == 0) {
|
||||||
|
|
||||||
$this->tax_rate1 = $this->invoice->client->company->tax_data->regions->{$this->client_region}->subregions->{$this->client_subregion}->tax_rate;
|
$this->tax_rate1 = 0;
|
||||||
$this->tax_name1 = "Sales Tax";
|
$this->tax_name1 = '';
|
||||||
|
|
||||||
|
// $this->tax_rate1 = $this->invoice->client->company->tax_data->regions->{$this->client_region}->subregions->{$this->client_subregion}->tax_rate;
|
||||||
|
// $this->tax_name1 = "Sales Tax";
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->tax_rate1 = $this->tax_data->taxSales * 100;
|
$this->tax_rate1 = $this->tax_data->taxSales * 100;
|
||||||
// $this->tax_name1 = "{$this->tax_data->geoState} Sales Tax";
|
|
||||||
$this->tax_name1 = "Sales Tax";
|
$this->tax_name1 = "Sales Tax";
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -73,12 +73,11 @@ class UpdateTaxData implements ShouldQueue
|
|||||||
nlog("problem getting tax data => ".$e->getMessage());
|
nlog("problem getting tax data => ".$e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set static tax information */
|
/*
|
||||||
if(!$tax_provider->updatedTaxStatus() && $this->client->country_id == 840){
|
if(!$tax_provider->updatedTaxStatus() && $this->client->country_id == 840){
|
||||||
|
|
||||||
$calculated_state = false;
|
$calculated_state = false;
|
||||||
|
|
||||||
/** State must be calculated else default to the company state for taxes */
|
|
||||||
if(array_key_exists($this->client->shipping_state, USStates::get())) {
|
if(array_key_exists($this->client->shipping_state, USStates::get())) {
|
||||||
$calculated_state = $this->client->shipping_state;
|
$calculated_state = $this->client->shipping_state;
|
||||||
$calculated_postal_code = $this->client->shipping_postal_code;
|
$calculated_postal_code = $this->client->shipping_postal_code;
|
||||||
@ -136,7 +135,7 @@ class UpdateTaxData implements ShouldQueue
|
|||||||
$this->client->saveQuietly();
|
$this->client->saveQuietly();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public function middleware()
|
public function middleware()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user