How to pass line item custom field value to sales order from opportunity?

后端 未结 2 572
故里飘歌
故里飘歌 2021-01-26 04:57

I have a custom line number field in opportunity product tab for customer to re-sequence the selected products and the grid is sorted on custom field value.

I am trying

2条回答
  •  感情败类
    2021-01-26 05:24

    You can implement RowInserting Event handler as below:

    graph.RowInserting.AddHandler((cache, args) =>
    {
        var soLine = (SOLine)args.Row;
        CROpportunityProducts opProduct = PXResult.Current;
        SOLineExtNV soLineExt = PXCache.GetExtension(soLine);
        CROpportunityProductsExtNV opProductExt = PXCache.GetExtension(opProduct);
        soLineExt.UsrLineNo = opProductExt.UsrLineNo;
    });
    

提交回复
热议问题