Accounts receivable/Common/Free text invoices/All free text invoices > select & open any free text invoice
i have created One button (MovieCinema) in below form.

when the MovieCinema form is open
I just want Collection Column total , in Below Line Collection Total Field..
for this I have Created Two Table MovieCinemaLine & MovieCinema Header.
Please suggest How to achieve this, what is code & what is method for this.