public static bool IsNeedBalancing(ClaimRUTROTProcess graph, string balanceOn) { if (!PXAccess.FeatureInstalled <FeaturesSet.rutRotDeduction>()) { return(false); } BranchRUTROT branchRUTROT = GetBranchRUTROT(graph); ValidateBranchRUTROTSettings(branchRUTROT); return(branchRUTROT?.BalanceOnProcess == balanceOn); }
public static BranchRUTROT GetBranchRUTROT(ClaimRUTROTProcess graph) { GL.Branch branch = PXSelect <GL.Branch, Where <GL.Branch.branchID, Equal <Current <AccessInfo.branchID> > > > .Select(graph); return(RUTROTHelper.GetExtensionNullable <GL.Branch, BranchRUTROT>(branch)); }