Netsuite의 고급 PDF/HTML 템플릿을 사용하여 사용자 지정 출력 템플릿을 만듭니다. 이 템플릿에서는 과세 대상인지 평가하기 위해 항목을 평가하려고합니다.Netsuite의 item.istaxable 값을 어떻게 평가하고 비교합니까?
넷 스위트의 스키마는 필드가 하위 목록 Item
와 Sales Order
을 정의 .istaxable
(source)
- 필드 : istaxable
- 유형 : 확인란
- 라벨 : 세금
- 필수 : 거짓
나는 평가를하려고 할 때 테 표현과 같은 :
<#if item.istaxable == true>
나는 다음과 같은 오류가 템플릿을 인쇄하여.
Left hand operand is a com.netledger.templates.model.StringModel
Right hand operand is a freemarker.template.TemplateBooleanModel$2
나는 문자열로 .istaxable 평가하려고 할 때 :
<#if item.istaxable == "true">
또는
이<#if item.istaxable == 'T'>
* 편집 : 제안 대답에 대한 응답으로 업데이트
내가 드릴 수 없습니다 편집기에서 템플릿을 저장하면 오류가 발생합니다 :
The only legal comparisons are between two numbers, two strings, or two dates. Left hand operand is a com.netledger.templates.model.BooleanModel Right hand operand is a freemarker.template.SimpleScalar
그래서 item.istaxable
StringModel 또는 BooleanModel입니까?
'=='또는 '='을 하나만 사용하셨습니까? – beard
'==', 죄송합니다. –