importclrclr.AddReference(Kingdee.BOS.Core)clr.AddReference(Kingdee.BOS.DataEntity)fromKingdee.BOS.DataEntityimport*fromKingdee.BOS.Core.Metadata.FieldElementimport*defAfterConvert(e):headEntity=e.Result.FindByEntityKey(FBillHead)foriteminheadEntity:data=item[PAYBILLENTRY]src=item[PAYBILLSRCENTRY]iflen(data)!=len(src):continueforindexinrange(len(data)):data[index][FACCOUNTID_ID]=src[index][F_ces_Base_ID]data[index][FACCOUNTID]=src[index][F_ces_Base]