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

@ -17,7 +17,10 @@ class Customers extends Import
{
$row = parent::map($row);
$country = array_search($row['country'], trans('countries'));
$row['type'] = 'customer';
$row['country'] = !empty($country) ? $country : null;
return $row;
}