| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | 
							- using System.Linq;
 
- using InABox.Core;
 
- namespace Comal.Classes
 
- {
 
-     public class GLCodeLookups : EntityLookup<GLCode>, ILookupDefinition<GLCode, BillLine>, ILookupDefinition<GLCode, InvoiceLine>
 
-     {
 
-         public Filter<GLCode> DefineFilter(BillLine[] items)
 
-         {
 
-             if (items.Any())
 
-                 return new Filter<GLCode>(x => x.Hidden).IsEqualTo(false).And(x => x.Expense).IsEqualTo(true);
 
-             return null;
 
-         }
 
-         Columns<BillLine> ILookupDefinition<GLCode, BillLine>.DefineFilterColumns()
 
-             => new Columns<BillLine>();
 
-         public Filter<GLCode> DefineFilter(InvoiceLine[] items)
 
-         {
 
-             if (items.Any())
 
-                 return new Filter<GLCode>(x => x.Hidden).IsEqualTo(false).And(x => x.Income).IsEqualTo(true);
 
-             return null;
 
-         }
 
-         Columns<InvoiceLine> ILookupDefinition<GLCode, InvoiceLine>.DefineFilterColumns()
 
-             => new Columns<InvoiceLine>();
 
-         public override Columns<GLCode> DefineColumns()
 
-         {
 
-             return new Columns<GLCode>(
 
-                 x => x.ID,
 
-                 x => x.Code,
 
-                 x => x.Description
 
-             );
 
-         }
 
-         public override Filter<GLCode> DefineFilter()
 
-         {
 
-             return new Filter<GLCode>(x => x.Hidden).IsEqualTo(false);
 
-         }
 
-         public override SortOrder<GLCode> DefineSortOrder()
 
-         {
 
-             return new SortOrder<GLCode>(x => x.Code);
 
-         }
 
-     }
 
- }
 
 
  |