Merge pull request #2919 from boracakirel/missing-item-type-column-in-export-file

Added item_type column to the document's export file
This commit is contained in:
Cüneyt Şentürk 2023-03-09 09:06:10 +03:00 committed by GitHub
commit 044e8641d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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->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',

View File

@ -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',