change from isset to in_array
This commit is contained in:
parent
96fdf787de
commit
7c4d2cf96f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue