mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
change from isset to in_array
This commit is contained in:
parent
96fdf787de
commit
7c4d2cf96f
@ -25,7 +25,7 @@ trait BuildTableHeader
|
|||||||
*/
|
*/
|
||||||
public function processTaxColumns(): void
|
public function processTaxColumns(): void
|
||||||
{
|
{
|
||||||
if (isset($this->context['product-table-columns']['$product.tax'])) {
|
if (in_array('$product.tax', $this->context['product-table-columns'])) {
|
||||||
$line_items = collect($this->invoice->line_items);
|
$line_items = collect($this->invoice->line_items);
|
||||||
|
|
||||||
$tax1 = $line_items->where('tax_name1', '<>', '')->where('type_id', 1)->count();
|
$tax1 = $line_items->where('tax_name1', '<>', '')->where('type_id', 1)->count();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user