| 12345678910111213141516171819202122232425262728293031323334 | using System.Collections.Generic;using InABox.Core;namespace Comal.Classes{    public class TaxCodeLookups : EntityLookup<TaxCode>    {        public override Columns<TaxCode> DefineColumns()        {            return new Columns<TaxCode>(                x => x.ID,                x => x.Code,                x => x.Description,                x => x.Rate            );        }        public override Filter<TaxCode> DefineFilter()        {            return null;        }        public override SortOrder<TaxCode> DefineSortOrder()        {            return new SortOrder<TaxCode>(x => x.Code);        }        public override string FormatLookup(Dictionary<string, object?> values, IEnumerable<string> exclude)        {            return $"{values["Code"]} ({values["Rate"]:F2}%)";        }    }}
 |