在单据头实体服务规则中判断单据体的源单类型的方法

len(filter(lambda x : (x.FSOURCETYPE='VTR_ProjectReceiveInvoice'), FEntity)) > 0 

原文地址:https://www.cnblogs.com/zouhuaxin/p/12421337.html