Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class BAccountExt : PXCacheExtension<PX.Objects.CR.BAccount>
{
#region UsrDefaultWarehouse
[Site()]
public virtual int? UsrDefaultWarehouse { get; set; }
public abstract class usrDefaultWarehouse : IBqlField { }
#endregion
}
public class ReportsDefault : IBqlTable
{
#region UsrDefaultWarehouse
[Site()]
[PXDefault(typeof(Search2<BAccountExt.usrDefaultWarehouse,
InnerJoin<Branch, On<Branch.bAccountID, Equal<BAccount.bAccountID>>>,
Where<Branch.branchID, Equal<Current<AccessInfo.branchID>>>>))]
public virtual int? UsrDefaultWarehouse { get; set; }
public abstract class usrDefaultWarehouse : IBqlField { }
#endregion
}
//use it in report
//=Report.GetDefExt('EmployeeDefault.UsrDefaultWarehouse')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment