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

@@ -26,6 +26,7 @@ class Bills extends Export implements WithColumnFormatting
$model->bill_number = $model->document_number;
$model->billed_at = $model->issued_at;
$model->contact_country = $country;
$model->parent_number = Model::billRecurring()->find($model->parent_id)?->document_number ?? null;
return parent::map($model);
}
@@ -52,6 +53,7 @@ class Bills extends Export implements WithColumnFormatting
'contact_zip_code',
'contact_city',
'notes',
'parent_number',
];
}