Fix countries for documents #1p66u4u

This commit is contained in:
Cüneyt Şentürk
2021-11-08 02:40:40 +03:00
parent 4f1146dc33
commit d9d0e09e3a
15 changed files with 112 additions and 5 deletions

View File

@ -19,6 +19,7 @@ class Bills extends Export implements WithColumnFormatting
$model->category_name = $model->category->name;
$model->bill_number = $model->document_number;
$model->billed_at = $model->issued_at;
$model->contact_country = ($model->contact_country) ? trans('countries.' . $model->contact_country) : null;
return parent::map($model);
}
@ -40,6 +41,10 @@ class Bills extends Export implements WithColumnFormatting
'contact_tax_number',
'contact_phone',
'contact_address',
'contact_country',
'contact_state',
'contact_zip_code',
'contact_city',
'notes',
];
}