NULL, 'language_id' => NULL, 'currency_id' => NULL, 'payment_terms' => NULL, 'datetime_format_id' => NULL, 'military_time' => NULL, 'date_format_id' => NULL, 'start_of_week' => NULL, 'financial_year_start' => NULL, 'default_task_rate' => NULL, 'send_reminders' => NULL, 'show_tasks_in_portal' => NULL, 'show_currency_symbol' => NULL, 'show_currency_code' => NULL, 'inclusive_taxes' => NULL, 'custom_taxes1' => NULL, 'custom_taxes2' => NULL, 'lock_sent_invoices' => NULL, 'invoice_email_list' => NULL, ]; } /** * Merges settings from Company to Client * * @param \stdClass $company_settings * @param \stdClass $client_settings * @return \stdClass of merged settings */ public static function buildClientSettings($company_settings, $client_settings) { foreach($client_settings as $key => $value) { if(!isset($client_settings->{$key}) && property_exists($company_settings, $key)) $client_settings->{$key} = $company_settings->{$key}; } return $client_settings; } }