mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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
|
||||
{
|
||||
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);
|
||||
|
||||
$tax1 = $line_items->where('tax_name1', '<>', '')->where('type_id', 1)->count();
|
||||
|
Loading…
Reference in New Issue
Block a user