In custom forms, you have access to useful filter methods. They help you format text, do calculation etc.
Here are some of the methods:
internal_organization_logo_inline: Output the logo related to the internal organization/entity as an image on the form
{{order.internal_organization | internal_organization_logo_inline}}
Used in the order form.
party_address: This method takes a party record and output the address of the party.
{party | party_address}}
custom_field_data: This allows you to output the custom field value for an object.
{{field | custom_field_data: order.id}} This example outputs the custom field value related to an order.
currency: This formats a number using a currency object.
{{ amount | currency: order.currency}} This is used in order form to format an amount using the currency of the order.
format_date: This takes a date and format it using the date format setting for the entity/firm.
{{a_date | format_date}}
Comments and Suggestions
0 comments
Please sign in to leave a comment.
Related articles