diff --git a/app/Http/Controllers/Expenses/Bills.php b/app/Http/Controllers/Expenses/Bills.php index 40e27405d..08186e8ef 100644 --- a/app/Http/Controllers/Expenses/Bills.php +++ b/app/Http/Controllers/Expenses/Bills.php @@ -509,14 +509,14 @@ class Bills extends Controller $excel->sheet('invoices', function($sheet) use ($bills) { $sheet->fromModel($bills->makeHidden([ - 'company_id', 'parent_id', 'created_at', 'updated_at', 'deleted_at', 'attachment', 'discount', 'items', 'payments', 'totals', 'media' + 'company_id', 'parent_id', 'created_at', 'updated_at', 'deleted_at', 'attachment', 'discount', 'items', 'histories', 'payments', 'totals', 'media' ])); }); $tables = ['items', 'histories', 'payments', 'totals']; foreach ($tables as $table) { $excel->sheet('bill_' . $table, function($sheet) use ($bills, $table) { - $hidden_fields = ['id', 'company_id', 'created_at', 'updated_at', 'deleted_at']; + $hidden_fields = ['id', 'company_id', 'created_at', 'updated_at', 'deleted_at', 'title']; $i = 1; foreach ($bills as $bill) { diff --git a/app/Http/Controllers/Incomes/Invoices.php b/app/Http/Controllers/Incomes/Invoices.php index f0b7b3346..85ca80ba4 100644 --- a/app/Http/Controllers/Incomes/Invoices.php +++ b/app/Http/Controllers/Incomes/Invoices.php @@ -530,14 +530,14 @@ class Invoices extends Controller $excel->sheet('invoices', function($sheet) use ($invoices) { $sheet->fromModel($invoices->makeHidden([ - 'company_id', 'parent_id', 'created_at', 'updated_at', 'deleted_at', 'attachment', 'discount', 'items', 'payments', 'totals', 'media' + 'company_id', 'parent_id', 'created_at', 'updated_at', 'deleted_at', 'attachment', 'discount', 'items', 'histories', 'payments', 'totals', 'media' ])); }); $tables = ['items', 'histories', 'payments', 'totals']; foreach ($tables as $table) { $excel->sheet('invoice_' . $table, function($sheet) use ($invoices, $table) { - $hidden_fields = ['id', 'company_id', 'created_at', 'updated_at', 'deleted_at']; + $hidden_fields = ['id', 'company_id', 'created_at', 'updated_at', 'deleted_at', 'title']; $i = 1; foreach ($invoices as $invoice) {