练习: 到货单单头的付款条件:自动带单身来源单号(采购订单)的付款条件:
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
标签:ARRIVAL,PURCHASE,ActiveObject,单头,建档,SOURCE,E10,ID,ORDER From: https://www.cnblogs.com/xiaoli9627/p/18626805