1
0
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:
Benjamin Beganović 2020-08-04 16:41:18 +02:00
parent 96fdf787de
commit 7c4d2cf96f

View File

@ -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();