Example #1
0
 public virtual PXResult <SOLine, SOOrderType> GetLinkedSOLine(ARTran row)
 {
     return((PXResult <SOLine, SOOrderType>) PXSelectReadonly2 <SOLine,
                                                                LeftJoin <SOOrderType, On <SOOrderType.orderType, Equal <SOLine.orderType> > >,
                                                                Where <SOLine.orderType, Equal <Current <ARTran.sOOrderType> >,
                                                                       And <SOLine.orderNbr, Equal <Current <ARTran.sOOrderNbr> >,
                                                                            And <SOLine.lineNbr, Equal <Current <ARTran.sOOrderLineNbr> > > > > >
            .SelectSingleBound(_Graph, new[] { row }));
 }
Example #2
0
        public static bool RelatedForOrganizationGLHistoryExists(PXGraph graph, int?organizationID)
        {
            GLHistory history = PXSelectReadonly2 <GLHistory,
                                                   InnerJoin <Branch,
                                                              On <GLHistory.branchID, Equal <Branch.branchID> > >,
                                                   Where <Branch.organizationID, Equal <Required <Branch.organizationID> > > >
                                .SelectSingleBound(graph, null, organizationID);

            return(history != null);
        }