How can i add days to date in print format

How can i add days to date in print format ??

Hi @Varna! I suggest you create a custom field for the calculation and just use this custom field for the print format. It will be easier. Hope this helps!

@creamdory ya it is helpful but i needed in print format itself as i have many previous records.
Atlast I got the solution:
{% set valid = doc.valid | int %}
{% set valid_date = frappe.utils.add_days(doc.transaction_date, valid) %}
transaction_date is my date field
& valid is my no.of days to be added field
Make sure to convert that field to int

1 Like

How do we do this for custom field to show on form?