When building an payment file format, the buildEnt...
# ask-stanley-ai
a
When building an payment file format, the buildEntityName function isn't returning the Print on Check value to the template when generating a file.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the issue is with the template not pulling the 'Print on Check As' value from the entity field when generating a payment file. This is likely due to the way the template is referencing the entity field. One solution that was shared in the threads is to use a conditional statement in the template to check if the 'Print on Check As' field has content. If it does, it will use that value, otherwise, it will use the entity value. Here is the code snippet that was shared:
Copy code
<#if check.entity.printoncheckas?has_content>${check.entity.printoncheckas}<#else>${check.entity}</#if>
This code checks if
check.entity.printoncheckas
has content. If it does, it uses that value. If it doesn't, it falls back to using
check.entity
. Another user mentioned that they found a solution to a similar issue in Answer Id: 74381. Unfortunately, the details of this solution were not shared in the threads. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82929492
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82244426
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817409873
Please provide your feedback on this answer.