mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Do no add value from custom_value to invoice total
This commit is contained in:
parent
57ef1c9b78
commit
ff2f43d8fc
@ -157,21 +157,21 @@ class InvoiceSum
|
|||||||
{
|
{
|
||||||
$this->total += $this->total_taxes;
|
$this->total += $this->total_taxes;
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value1)) {
|
// if (is_numeric($this->invoice->custom_value1)) {
|
||||||
$this->total += $this->invoice->custom_value1;
|
// $this->total += $this->invoice->custom_value1;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value2)) {
|
// if (is_numeric($this->invoice->custom_value2)) {
|
||||||
$this->total += $this->invoice->custom_value2;
|
// $this->total += $this->invoice->custom_value2;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value3)) {
|
// if (is_numeric($this->invoice->custom_value3)) {
|
||||||
$this->total += $this->invoice->custom_value3;
|
// $this->total += $this->invoice->custom_value3;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value4)) {
|
// if (is_numeric($this->invoice->custom_value4)) {
|
||||||
$this->total += $this->invoice->custom_value4;
|
// $this->total += $this->invoice->custom_value4;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -166,21 +166,21 @@ class InvoiceSumInclusive
|
|||||||
{
|
{
|
||||||
//$this->total += $this->total_taxes;
|
//$this->total += $this->total_taxes;
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value1)) {
|
// if (is_numeric($this->invoice->custom_value1)) {
|
||||||
$this->total += $this->invoice->custom_value1;
|
// $this->total += $this->invoice->custom_value1;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value2)) {
|
// if (is_numeric($this->invoice->custom_value2)) {
|
||||||
$this->total += $this->invoice->custom_value2;
|
// $this->total += $this->invoice->custom_value2;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value3)) {
|
// if (is_numeric($this->invoice->custom_value3)) {
|
||||||
$this->total += $this->invoice->custom_value3;
|
// $this->total += $this->invoice->custom_value3;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (is_numeric($this->invoice->custom_value4)) {
|
// if (is_numeric($this->invoice->custom_value4)) {
|
||||||
$this->total += $this->invoice->custom_value4;
|
// $this->total += $this->invoice->custom_value4;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user