public virtual PMChangeOrderLine CreateChangeOrderLine(POLinePM poLine, Func <POLinePM, PMChangeOrderLine> baseMethod) { var line = baseMethod(poLine); CopyCommitmentType(poLine, line); return(line); }
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; }