Dear Admin And Experts I want Ref no in Batch I Created one MyRef Field Batch Allocations level in Purchase I give the Value I Split the Company Demo - (From 1-Sep-2016) After split I have Two Companies 1st company Demo - (From 1-Apr-2016) 2st company Demo - (From 1-Sep-2016) I update ref no Button in Gateway I Wrote one Function From 1 st companies Purchase Vouchers,Batch Allocations Ref No To 2nd Companies Stock Items Batch Allocations Collection But the Function is not working . I Attach the Tdl and Sample Company do the needful. it is urgent