Custom Form:Total Debit/Credit

I created a new custom form i used the
Journal Voucher and Journal Voucher Detail as Reference
I’m having trouble showing the Total Debit and Total Credit

Journal Voucher
https://drive.google.com/file/d/0ByLgwP2SkS_HU3RycEhpbm9uaWM/view?usp=sharing
CustomForm1:
https://drive.google.com/file/d/0ByLgwP2SkS_HLUlvTXlkWUNhem8/view?usp=sharing

Your links seem broken.

…Link Fixed…