Merge pull request #10510 from turbo124/v5-develop

v5.11.20
This commit is contained in:
David Bomba 2025-01-11 23:20:06 +11:00 committed by GitHub
commit 79cfb63de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 7 deletions

View File

@ -1 +1 @@
5.11.19
5.11.20

View File

@ -108,7 +108,7 @@ class InvoiceItemSumInclusive
private $sub_total;
private $tax_collection;
7
private bool $calc_tax = false;
private Client | Vendor $client;
@ -272,7 +272,11 @@ class InvoiceItemSumInclusive
$this->item->tax_amount = $this->formatValue($item_tax, $this->currency->precision);
$this->item->net_cost = round(($amount - $this->item->tax_amount)/$this->item->quantity, $this->currency->precision);
try{
$this->item->net_cost = round(($amount - $this->item->tax_amount)/$this->item->quantity, $this->currency->precision);
} catch (\DivisionByZeroError $e) {
$this->item->net_cost = $this->item->cost;
}
$this->setTotalTaxes($this->formatValue($item_tax, $this->currency->precision));
@ -407,8 +411,12 @@ class InvoiceItemSumInclusive
$this->item->tax_amount = $item_tax;
$this->item->net_cost = round($amount * (100 / (100 + ($this->item->tax_rate1+$this->item->tax_rate2+$this->item->tax_rate3))) / $this->item->quantity, $this->currency->precision+1);
$this->item->net_cost = round($this->item->net_cost, $this->currency->precision);
try{
$this->item->net_cost = round($amount * (100 / (100 + ($this->item->tax_rate1+$this->item->tax_rate2+$this->item->tax_rate3))) / $this->item->quantity, $this->currency->precision+1);
$this->item->net_cost = round($this->item->net_cost, $this->currency->precision);
} catch (\DivisionByZeroError $e) {
$this->item->net_cost = $this->item->cost;
}
}

View File

@ -17,8 +17,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION', '5.11.19'),
'app_tag' => env('APP_TAG', '5.11.19'),
'app_version' => env('APP_VERSION', '5.11.20'),
'app_tag' => env('APP_TAG', '5.11.20'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),