Created
October 6, 2016 02:36
-
-
Save smarenich/a04990fee3b8b83c1dada3749b46660e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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