Adding cash sale payments for invoices not updating cash ledger

We’re creating sales invoices and adding payment entries to them as cash payments but they don’t seem to be updating the cash ledger