Samsul
April 22, 2024, 11:23am
1
I am trying to show supplier details info on starting of the report print format… I can’t get data frappe.db.get_value
{% set phone = frappe.db.get_value("Supplier", {"supplier_name": filters.party_name}, 'custom_primary_phone') %}
<p style="font-family: monospace;">
{{ phone }}
</p>
Is it my code correct?
please help me…
Thanks
Samsul
bahaou
April 22, 2024, 11:32am
2
{% set phone = frappe.db.get_value("Supplier", doc.party_name, 'custom_primary_phone') %}
Samsul
April 22, 2024, 11:44am
3
Actually this is a report print format. I got filters data from report filters
bahaou
April 22, 2024, 11:56am
4
@Samsul oh in this this case you cane preload the data from the python code . you can add data to each rows despite they do not appear in columns list .