예제 #1
0
        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);
        }
예제 #2
0
        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));
        }