Script Helper
RPT-012 Members Test before use
Pick one of two pipe-separated deduction codes
Deduction codes stored as 'A|B' — choose based on the deduction option code.
Reports & EDI › Report fieldReport/EDIIntermediate
Test before use. This script hasn't been tested by Catalyst Workflow yet. Run it in a non-production case first.
JScript.NET
1// Report field — Decode 'CODE1|CODE2' deduction codes
This script is for members
Members see the full code, the values to change and the cautions.
See membershipAlready a member? Sign inHow it works
Event.Record is writable — this rewrites the field value before it's emitted. Split returns a .NET array, so .Length.
Members also see 1 value to change and 0 cautions for this script.