This is my code:
<#if record.item?has_content>
<#list record.item as item>
<#if item_index==0>
${item.quantity@label} |
Item ${item.description@label} |
#if>
<#if item.custcol_misv_do_not_print != true>
${item.quantity} |
${item.item} ${item.description} |
#if>
#list>
#if>
______________________________________________________________________________________________
This is the error:
Can't compare values of these types. Allowed comparisons are between two numbers, two strings, two dates, or two booleans.
Left hand operand is a hash+string (wrapper: com.netledger.templates.model.StringModel).
Right hand operand is a boolean (wrapper: f.t.TrueTemplateBooleanModel).
The blamed expression:
==> item.custcol_misv_do_not_print != true [in template "template" at line 200, column 16]
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if item.custcol_misv_do_not_print !=... [in template "template" at line 200, column 11]
----
__________________________________________________________________________________________________
custcol_misv_do_not_print is a custom transaction line field of type check box. It has, until this week, been working just fine.
Upon making a change elsewhere in the code, suddently this template will not even pass Preview without this error happening.
I have removed the code changes that were made but it still gets the error.