Problem error or bug?

in my payment entry i want to get my AR in journal entry, this looks like see the image below.

but when ill try to delete the AR and change it the total amount and outstanding are empty. see the image below.