Do no add value from custom_value to invoice total
This commit is contained in:
parent
57ef1c9b78
commit
ff2f43d8fc
2 changed files with 24 additions and 24 deletions
|
|
@ -157,21 +157,21 @@ class InvoiceSum
|
|||
{
|
||||
$this->total += $this->total_taxes;
|
||||
|
||||
if (is_numeric($this->invoice->custom_value1)) {
|
||||
$this->total += $this->invoice->custom_value1;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value1)) {
|
||||
// $this->total += $this->invoice->custom_value1;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value2)) {
|
||||
$this->total += $this->invoice->custom_value2;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value2)) {
|
||||
// $this->total += $this->invoice->custom_value2;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value3)) {
|
||||
$this->total += $this->invoice->custom_value3;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value3)) {
|
||||
// $this->total += $this->invoice->custom_value3;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value4)) {
|
||||
$this->total += $this->invoice->custom_value4;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value4)) {
|
||||
// $this->total += $this->invoice->custom_value4;
|
||||
// }
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,21 +166,21 @@ class InvoiceSumInclusive
|
|||
{
|
||||
//$this->total += $this->total_taxes;
|
||||
|
||||
if (is_numeric($this->invoice->custom_value1)) {
|
||||
$this->total += $this->invoice->custom_value1;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value1)) {
|
||||
// $this->total += $this->invoice->custom_value1;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value2)) {
|
||||
$this->total += $this->invoice->custom_value2;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value2)) {
|
||||
// $this->total += $this->invoice->custom_value2;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value3)) {
|
||||
$this->total += $this->invoice->custom_value3;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value3)) {
|
||||
// $this->total += $this->invoice->custom_value3;
|
||||
// }
|
||||
|
||||
if (is_numeric($this->invoice->custom_value4)) {
|
||||
$this->total += $this->invoice->custom_value4;
|
||||
}
|
||||
// if (is_numeric($this->invoice->custom_value4)) {
|
||||
// $this->total += $this->invoice->custom_value4;
|
||||
// }
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue