It can probably be simplified as follows:
Debit: Bank R5000
Debit: Payroll Burden(UIF) R50
Credit: Bank R4950( the salary paid to employee less UIF)
Credit: Bank R100 (cheque made out to UIF)