Custom date picker properties does not show the correct date in my quotation template

The custom properties (datepicker) that I made “Subscription Start Date” & “Subscription End Date” doesn’t show the correct detail in the Quotation that I made using Design Tools. I tried to change the coding many time but it still does not display the correct date that I set in my deals. Do you have any solution on what I should do to display the correct date in my Quotation?

The Deal

The Quotation

The Coding

40935i8CBD7D2E9AF8868B.PNG

Hey @ShahirBruh

Wonder if @amandaulm has any advice for you

Thanks @dennisedson !

Hi @ShahirBruh ,

Based on what I’m seeing here, it looks like your desired subscription start and end dates are custom properties on the Deal object. If that’s correct, what you want to do is go into your settings and edit those properties, then click on the </> icon, so that you can see each property’s Internal name. Here is an example of where to view that information on one of my own custom Deal properties:

The way that I pull the custom property Rep Lead ID on my quotes is as follows:

For neatness, I add this in the list of set commands near the top:

{% set DEAL_INFO = template_data.quoteAssociatedObjects.deal %}

Then where I want to put this property:

{%- if DEAL_INFO.rep_lead_id -%}<b>Internal Lead ID: {{ DEAL_INFO.rep_lead_id }}</b><br>{%- endif -%}<br>

Hope that helps!

Alright, I manage to fix the problem. I change the “QUOTE_PROPS.hs_subcription_start_date|datetimeformat( ‘&B %e, %Y’, TIMEZONE, LOCALE)}}<br>” and “content.publish_date_subcription_end_date|datetimeformat( ‘&B %e, %Y’, TIMEZONE, LOCALE)}}<br>” to “DEAL.subcription_start_date|datetimeformat( ‘&B %e, %Y’, TIMEZONE, LOCALE)}}<br>” and “DEAL.subcription_end_date|datetimeformat( ‘&B %e, %Y’, TIMEZONE, LOCALE)}}<br>”. Now there showing the correct date in my quotation. Thanks @amandaulm

41045iA3953B2E3B71E016.png

Before

41044i52E2426CFF4311C1.PNG

After

41043i360045DC33FAE73F.png

Glad I could help, @ShahirBruh ! :grin: