Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
SQL for saved search
I am having issues making this SQL work, looks right to me...any help is appreciated.
CASE {custcol_item_category} WHEN 'Other' THEN {fxamount} WHEN 'Maintenance - Renewal' AND ({revrecenddate} - {revrecstartdate} = 0) THEN '0' ELSE (({fxamount}/({revrecenddate} - {revrecstartdate})) * 365) WHEN 'License - Term' THEN {fxamount} WHEN 'Maintenance - New' AND ({revrecenddate} - {revrecstartdate} = 0) THEN '0' ELSE (({fxamount}/({revrecenddate} - {revrecstartdate})) * 365) WHEN 'License - Perpetual' AND {revrectemplate.name} != 'License Immediate' THEN '0' ElSE WHEN ({revrecenddate} - {revrecstartdate} = 0) THEN '0' ELSE (({fxamount}/({revrecenddate} - {revrecstartdate})) * 365) CASE WHEN {revrectemplate.name} = 'License Immediate' THEN {vsoeallocation} END