You can use the 'access' function to make one read-only when the other is filled in.
So you could do something like (in formcalc):
if (credit.isNull == 0) then
debit.access = "readOnly"
else debit.access = "open"
endif
and then do the same the other way around.