Added item_type column to the document's export file

This commit is contained in:
boracakirel 2023-03-03 22:08:09 +03:00
parent fdf5526810
commit eadb3eb3c7
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class BillItems extends Export
$model->bill_number = $document->document_number; $model->bill_number = $document->document_number;
$model->item_name = $model->item->name; $model->item_name = $model->item->name;
$model->item_type = $model->item->type;
return parent::map($model); return parent::map($model);
} }
@ -31,6 +32,7 @@ class BillItems extends Export
return [ return [
'bill_number', 'bill_number',
'item_name', 'item_name',
'item_type',
'quantity', 'quantity',
'price', 'price',
'total', 'total',

View File

@ -22,6 +22,7 @@ class InvoiceItems extends Export
$model->invoice_number = $document->document_number; $model->invoice_number = $document->document_number;
$model->item_name = $model->item->name; $model->item_name = $model->item->name;
$model->item_type = $model->item->type;
return parent::map($model); return parent::map($model);
} }
@ -31,6 +32,7 @@ class InvoiceItems extends Export
return [ return [
'invoice_number', 'invoice_number',
'item_name', 'item_name',
'item_type',
'quantity', 'quantity',
'price', 'price',
'total', 'total',