Hi John,
How do I change the number format for the invoice balance to revert to three digits and a different currency sign than Dollar in a new template in mailing.
Three Digit Invoice Balance in Mailing Template
5 posts
• Page 1 of 1
Posts: 36
Joined: Sun May 11, 2008 9:56 am Location: Bahrain |
Salman Maidan
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
For the currency symbol, edit the field "z_MMemberMessageMergedCalc" in the Mailing Members table. The auto enter calc here is where all the actual merging happens.
You'll see that whenever we use a currency field like "<<Contact Balance>>" or "<<Invoice Amount>>" we employ a custom function to format the number. The currency symbol is sent to this custom function as a parameter, so just replace "$" with whatever you need. Be sure to do this for each instance of the SeedCode_AddDollarFormat function used in that calc. When it comes to "reverting to 3 digits" I'm not completely sure what you mean. If you want the numbers in the mailing to have 3 digits to the right of the decimal, instead of 2, edit the custom function "SeedCode_AddDollarFormat", replacing the meat of the function with this version:
Let me know if I've misunderstood you. John Sindelar
SeedCode |
Posts: 36
Joined: Sun May 11, 2008 9:56 am Location: Bahrain |
Thanks, That worked on the digits to right of the decimal. There are 3 digits now.
I need to change the Currency to read "BD" instead of $, and the date to DD/MMM/YYYY. Thanks. Salman Maidan
|
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am |
Glad it worked. Instructions for changing the "$" symbol can be found in the post above. For dates you'll have to edit the auto enter calc field "z_MMemberMessageMergedCalc" in the Mailing Members table, taking apart the date fields to get the format you want. You can use something like this, taking the invoice date as an example:
John Sindelar
SeedCode |
Posts: 36
Joined: Sun May 11, 2008 9:56 am Location: Bahrain |
Thanks,
It all worked like a charm. Salman Maidan
|
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests