Having a case of the Mondays here.
Just trying to do a simple if statement for the AmountRemaining field on an invoice and getting this.
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.amountremaining = 0 [in template "template" at line 294, column 24]
<#if record.amountremaining = 0>Paid in Full</#if>
*feeling pretty dumb rn. haha