mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 05:04:35 -04:00
Fix for custom_values breaking invoicesum
This commit is contained in:
parent
efbf8069b5
commit
79e8f096fe
@ -160,16 +160,16 @@ class InvoiceSum
|
|||||||
{
|
{
|
||||||
$this->total += $this->total_taxes;
|
$this->total += $this->total_taxes;
|
||||||
|
|
||||||
if($this->invoice->custom_value1 > 0)
|
if(is_numeric($this->invoice->custom_value1) && $this->invoice->custom_value1 > 0)
|
||||||
$this->total += $this->invoice->custom_value1;
|
$this->total += $this->invoice->custom_value1;
|
||||||
|
|
||||||
if($this->invoice->custom_value2 > 0)
|
if(is_numeric($this->invoice->custom_value2) && $this->invoice->custom_value2 > 0)
|
||||||
$this->total += $this->invoice->custom_value2;
|
$this->total += $this->invoice->custom_value2;
|
||||||
|
|
||||||
if($this->invoice->custom_value3 > 0)
|
if(is_numeric($this->invoice->custom_value3) && $this->invoice->custom_value3 > 0)
|
||||||
$this->total += $this->invoice->custom_value3;
|
$this->total += $this->invoice->custom_value3;
|
||||||
|
|
||||||
if($this->invoice->custom_value4 > 0)
|
if(is_numeric($this->invoice->custom_value4) && $this->invoice->custom_value4 > 0)
|
||||||
$this->total += $this->invoice->custom_value4;
|
$this->total += $this->invoice->custom_value4;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -172,16 +172,16 @@ class InvoiceSumInclusive
|
|||||||
{
|
{
|
||||||
//$this->total += $this->total_taxes;
|
//$this->total += $this->total_taxes;
|
||||||
|
|
||||||
if($this->invoice->custom_value1 > 0)
|
if(is_numeric($this->invoice->custom_value1) && $this->invoice->custom_value1 > 0)
|
||||||
$this->total += $this->invoice->custom_value1;
|
$this->total += $this->invoice->custom_value1;
|
||||||
|
|
||||||
if($this->invoice->custom_value2 > 0)
|
if(is_numeric($this->invoice->custom_value2) && $this->invoice->custom_value2 > 0)
|
||||||
$this->total += $this->invoice->custom_value2;
|
$this->total += $this->invoice->custom_value2;
|
||||||
|
|
||||||
if($this->invoice->custom_value3 > 0)
|
if(is_numeric($this->invoice->custom_value3) && $this->invoice->custom_value3 > 0)
|
||||||
$this->total += $this->invoice->custom_value3;
|
$this->total += $this->invoice->custom_value3;
|
||||||
|
|
||||||
if($this->invoice->custom_value4 > 0)
|
if(is_numeric($this->invoice->custom_value4) && $this->invoice->custom_value4 > 0)
|
||||||
$this->total += $this->invoice->custom_value4;
|
$this->total += $this->invoice->custom_value4;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -128,7 +128,7 @@ class Import implements ShouldQueue
|
|||||||
'task_statuses',
|
'task_statuses',
|
||||||
'expenses',
|
'expenses',
|
||||||
'tasks',
|
'tasks',
|
||||||
'documents',
|
// 'documents',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user