diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 8ff34c808c..b6b61a9f3c 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -885,8 +885,8 @@ info("get company"); 'tax_name3' => (string) '', 'tax_rate3' => (float) 0, 'date' => Carbon::parse($item->created_at)->toDateString(), - 'custom_value1' => $item->custom_value1, - 'custom_value2' => $item->custom_value2, + 'custom_value1' => $item->custom_value1 ?: '', + 'custom_value2' => $item->custom_value2 ?: '', 'custom_value3' => '', 'custom_value4' => '', 'type_id' => (string)$item->invoice_item_type_id, @@ -917,8 +917,8 @@ info("get company"); 'tax_name3' => (string) '', 'tax_rate3' => (float) 0, 'date' => Carbon::parse($item->created_at)->toDateString(), - 'custom_value1' => $item->custom_value1, - 'custom_value2' => $item->custom_value2, + 'custom_value1' => $item->custom_value1 ?: '', + 'custom_value2' => $item->custom_value2 ?: '', 'custom_value3' => '', 'custom_value4' => '', 'type_id' => (string)$item->invoice_item_type_id,