Skip to content

Instantly share code, notes, and snippets.

@smarenich
Created February 2, 2017 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarenich/2fcbc93ea933555638f704af55ac7859 to your computer and use it in GitHub Desktop.
Save smarenich/2fcbc93ea933555638f704af55ac7859 to your computer and use it in GitHub Desktop.
using PX.Common;
using PX.Data.EP;
using PX.Data;
using PX.Objects.CM;
using PX.Objects.CR;
using PX.Objects.CS;
using PX.Objects.GL;
using PX.Objects;
using System.Collections.Generic;
using System;
namespace PX.Objects.GL
{
[PXNonInstantiatedExtension]
public class GL_Batch_ExistingColumn : PXCacheExtension<PX.Objects.GL.Batch>
{
#region Description
[PXUIField(DisplayName = "My Descr", Visibility = PXUIVisibility.Visible)]
[PXDBString(255, IsUnicode = true)]
[PXDefault]
public string Description { get; set; }
#endregion
public static bool IsActive()
{
return PX.Data.Update.PXInstanceHelper.CurrentCompany == 2;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment