From eadb3eb3c7dbf463f4d32c2f3b4e85dc9ea74b6f Mon Sep 17 00:00:00 2001 From: boracakirel Date: Fri, 3 Mar 2023 22:08:09 +0300 Subject: [PATCH] Added item_type column to the document's export file --- app/Exports/Purchases/Sheets/BillItems.php | 2 ++ app/Exports/Sales/Sheets/InvoiceItems.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/Exports/Purchases/Sheets/BillItems.php b/app/Exports/Purchases/Sheets/BillItems.php index ce8fd7fbc..425eb50d6 100644 --- a/app/Exports/Purchases/Sheets/BillItems.php +++ b/app/Exports/Purchases/Sheets/BillItems.php @@ -22,6 +22,7 @@ class BillItems extends Export $model->bill_number = $document->document_number; $model->item_name = $model->item->name; + $model->item_type = $model->item->type; return parent::map($model); } @@ -31,6 +32,7 @@ class BillItems extends Export return [ 'bill_number', 'item_name', + 'item_type', 'quantity', 'price', 'total', diff --git a/app/Exports/Sales/Sheets/InvoiceItems.php b/app/Exports/Sales/Sheets/InvoiceItems.php index bb0c93c12..c2f399bce 100644 --- a/app/Exports/Sales/Sheets/InvoiceItems.php +++ b/app/Exports/Sales/Sheets/InvoiceItems.php @@ -22,6 +22,7 @@ class InvoiceItems extends Export $model->invoice_number = $document->document_number; $model->item_name = $model->item->name; + $model->item_type = $model->item->type; return parent::map($model); } @@ -31,6 +32,7 @@ class InvoiceItems extends Export return [ 'invoice_number', 'item_name', + 'item_type', 'quantity', 'price', 'total',