Point of Sale print format JS

On the other print format POS Invoice the print format is Server and we are able to get Company fields like Registration details, address … while the new format when using {{ frappe.db.get_value(“Company”,company,“registration_details”) }} just returns as Object…

How to retrieve this info and if i do
{%- set dd = frappe.get_doc(“Company”,doc.company) -%}
{{ dd.registration_details }}

Does not work also…returning error in template