protected virtual void _(Events.FieldVerifying <PMChangeOrderClass, PMChangeOrderClass.isRevenueBudgetEnabled> e)
        {
            var select = new PXSelectJoin <PMChangeOrderBudget,
                                           InnerJoin <PMChangeOrder, On <PMChangeOrderBudget.refNbr, Equal <PMChangeOrder.refNbr> > >,
                                           Where <PMChangeOrderBudget.type, Equal <GL.AccountType.income>,
                                                  And <PMChangeOrder.classID, Equal <Current <PMChangeOrderClass.classID> > > > >(this);

            PMChangeOrderBudget res = select.SelectWindowed(0, 1);

            if (res != null)
            {
                throw new PXSetPropertyException <PMChangeOrderClass.isRevenueBudgetEnabled>(Messages.ClassContainsRevenueBudget);
            }
        }
 private BudgetKeyTuple GetKey(PMChangeOrderBudget record)
 {
     return(new BudgetKeyTuple(record.ProjectID.Value, record.ProjectTaskID.Value, record.AccountGroupID.Value, record.InventoryID.Value, record.CostCodeID.Value));
 }