How to rectify if the system is showing cash balance as negative?

Cause:
1) Transaction of direct Payment was created when there was no Cash in hand and then when cash in hand was updated at that time the value increased in Cash In hand and then the direct payment was confirmed. 2) Ledger posting was done on save instead of confirm in direct payment.

Remedies:
1) In Transaction setup the Ledger posting on confirm should be kept as ‘Y’ due to which posting will be done on confirm date.
2) User should ensure that ledger posting should be on confirm for direct payment.
3) For transaction setup goto System->System setup-> Masters. User should check the field posting on confirm. which is under setup group.