Example #1
0
        public bool CanNotCancelOrderInAx(string orderId)
        {
            dynamic table = new SalesTable();
            var rec = table.First(salesId:orderId);
            if(rec != null && rec.DOCUMENTSTATUS > 0)
                return true;

            return false;
        }
Example #2
0
        public long GetSalesOrderRecId(string salesId)
        {
            dynamic table = new SalesTable();
            var rec = table.First(salesId:salesId);

            if(rec != null)
                return rec.RECID;

            return 0;
        }