示例#1
0
        public virtual PMChangeOrderLine CreateChangeOrderLine(POLinePM poLine,
                                                               Func <POLinePM, PMChangeOrderLine> baseMethod)
        {
            var line = baseMethod(poLine);

            CopyCommitmentType(poLine, line);
            return(line);
        }
示例#2
0
        private static void CopyCommitmentType(POLinePM purchaseOrderLine, PMChangeOrderLine changeOrderLine)
        {
            var changeOrderLineExtension =
                PXCache <PMChangeOrderLine> .GetExtension <PMChangeOrderLineCLExt>(changeOrderLine);

            var purchaseOrderLineExtension = PXCache <POLinePM> .GetExtension <PoLinePmExt>(purchaseOrderLine);

            changeOrderLineExtension.CommitmentType = purchaseOrderLineExtension.CommitmentType;
        }