added parent id field to import and export

This commit is contained in:
Cihan Şentürk
2023-07-20 15:39:23 +03:00
committed by GitHub
parent 7768280ea3
commit 6a07f8ad9e
7 changed files with 25 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ class Transactions extends Export implements WithColumnFormatting
$model->contact_email = $model->contact->email;
$model->category_name = $model->category->name;
$model->invoice_bill_number = $model->document->document_number ?? 0;
$model->parent_number = Model::isRecurring()->find($model->parent_id)?->number;
return parent::map($model);
}
@@ -41,6 +42,7 @@ class Transactions extends Export implements WithColumnFormatting
'payment_method',
'reference',
'reconciled',
'parent_number',
];
}