E10——在线建档,单头取单身行的数据

 

 

练习:
到货单单头的付款条件:自动带单身来源单号(采购订单)的付款条件:
    Context.GetEntityProperty('PURCHASE_ORDER.PURCHASE_ORDER_D.PURCHASE_ORDER_SD',{'PURCHASE_ORDER_SD_ID':ActiveObject.PURCHASE_ARRIVAL_D[0].SOURCE_ID.ROid},('Parent.Parent.PAYMENT_TERM_ID',))[0] 
if (IsNotNull(ActiveObject.PURCHASE_ARRIVAL_D[0].SOURCE_ID.ROid)
    and ActiveObject.PURCHASE_ARRIVAL_D[0].SOURCE_ID.RTK == 'PURCHASE_ORDER.PURCHASE_ORDER_D.PURCHASE_ORDER_SD'
    and ActiveObject.PURCHASE_ARRIVAL_D[0].SOURCE_ID.ROid <> GuidDefaultValue()) 
else  
    ActiveObject.PAYMENT_TERM_ID

 


 
 
 

 

posted @ 2024-12-24 10:26  AaronLi  阅读(2)  评论(0编辑  收藏  举报