mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Speed improvements
This commit is contained in:
parent
cbf441adec
commit
f744507654
@ -231,7 +231,7 @@ class ZugferdEInvoice extends AbstractService
|
|||||||
return $tax_type;
|
return $tax_type;
|
||||||
}
|
}
|
||||||
private function addtoTaxMap(string $taxtype, float $netamount, float $taxrate){
|
private function addtoTaxMap(string $taxtype, float $netamount, float $taxrate){
|
||||||
$hash = hash("md5", $taxtype."-".$taxrate, true);
|
$hash = hash("md5", $taxtype."-".$taxrate);
|
||||||
if (array_key_exists($hash, $this->tax_map)){
|
if (array_key_exists($hash, $this->tax_map)){
|
||||||
$this->tax_map[$hash]["net_amount"] += $netamount;
|
$this->tax_map[$hash]["net_amount"] += $netamount;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user