reptar
11/01/2022, 6:51 PMThe template cannot be printed due to the following errors: Error on line 319, column 9 in template. Detail... 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 sequence+hash+string (wrapper: com.netledger.templates.model.EmptyModel). Right hand operand is a number (wrapper: f.t.SimpleNumber). The blamed expression: ==> record.tax2total != 0 [in template "template" at line 319, column 14] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if record.tax2total != 0 [in template "template" at line 319, column 9] ---- Error on line 371, column 9 in template. Detail... 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 sequence+hash+string (wrapper: com.netledger.templates.model.EmptyModel). Right hand operand is a number (wrapper: f.t.SimpleNumber). The blamed expression: ==> record.tax2total == 0 [in template "template" at line 371, column 14] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if record.tax2total == 0 [in template "template" at line 371, column 9] ---- Please contact your administrator.
reptar
11/01/2022, 6:52 PMDavid B
11/01/2022, 8:13 PM${ record.tax2total?join("|") }
(treating it as a sequence)
or ${ record.tax2total?keys?join("|") }
(treating is as a hash)reptar
11/01/2022, 8:46 PMDavid B
11/01/2022, 8:47 PMDavid B
11/01/2022, 8:48 PMrecord.tax2total?number != 0