Erpnext V13.10.1 Accounting dimensions prompt in Sales Invoice and Purchase invoice with incorrect general ledger entry

After restoring backup and migrating site from 13.10.0 version to 13.10.1
When I try to submit the Sales invoice or Purchase order I get this

In old version this was not appearing.

Even in company settings cost center is already assigned

In which when I choose cost center in Accounting Dimension section in purchase and sales invoice.

After fetching advance amount and submit Sales or purchase invoice. In general ledger it creates two entries

As you can see above the highlighted amount is debit as it is advance payment.
But in purchase invoice row at the same row the amount has been debited and credited that’s why in balance of the account the amount hasn’t diducted in which account balance is incorrect.

When I filter Cost center in general ledger entries my old version entries credit side is not showing. It shows only debit side.

However the entries from old version are fine.

Note: Even I updated erpnext to latest version 13.11.1 but the problem didn’t solve.

Thanks in advance waiting for your kind help.