Giving an Insert a Value
If you want the value of your enclosure to be a specific format, you need to give the enclosure insert a format.
For example, entering [case_enclosure.currency_value]
will insert the value that has been set in your system. If you need to change that value to a specific format (for example, 1.00 verses the default format of 1), you will need to enter the following special insert where 0.00 is the specific format you want applied to the enclosure: [case_enclosure.currency_value,0.00]
Using this insert allows you to control the format of each enclosure you include on a case.
A common insert for a check is to print the value of the check as text. To do this you create a standard paragraph with the following text: [case_enclosure.currency_value,CheckText.translate]
You can then insert the Standard Paragraph as a bookmark on the layout of the check template.
Specifying the Language of the Insert
You can display alternate decimal formats and languages in the same paragraph. For example, to show both US and French Canadian styles on a check or coupon, create a paragraph with the following: [case_enclosure.currency_value,DECIMAL_FORMAT('0.00;fr')]
This optional Language ID defines the culture of the formatting (mostly using comma instead of decimal). The format is still specified in agnostic style (for example, with commas and decimals), and the Language ID must be defined in the Emplifi Agent System Setup > Language ID, verifying that the "Culture Name" and "Decimal Format" are defined.
If the Language ID is not specified, it uses the Language ID related to the letter or enclosure.
Other valid options:
Option | Description |
---|---|
DECIMAL_FORMAT | Default culture format of language related to letter |
DECIMAL_FORMAT('0.00') | Format to use with culture of language related to letter |
DECIMAL_FORMAT('0.00;fr') | Override and use specified culture (format defined in agnostic, for example, "." is the decimal point, even if "," in that culture) |
DECIMAL_FORMAT(';fr') | Default decimal format for culture of language_code fr |
Furthermore, for Standard Paragraphs with a Repeat Table of "Assoc. Enclosures," the Language ID of the specific enclosure being iterated is used for all translation and formatting purposes, temporarily replacing the Language ID of the Letter and Address for that iteration of a specific enclosure only. This allows for two languages on a check, coupon, or label: either the system language or the Language ID of the Enclosure type, if .translate is specified. The Language ID replacement applies to all .translate usages on that iteration, no matter what the requested column is, since it's most likely to be case_enclosure or enclosure codes.
This feature is not optional but can be controlled by leaving the "Language ID" on the Enclosure Code blank or specifying a specific language.