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