before 30 June 20xx

DR Div equity

Cr Div payable


Dr Div payable

Cr Cash


at 1 July 20xx

Dr RE

Cr Div equity 


cross cancel and you are left with 

Dr RE

Cr Cash 

this entry is consistent with drawings and director drawing on company funds. Replace RE with Drawing or Director loan