Calculation of balance when paying invoice in OpenERP

Can you help me out in my one instance paid amount reflect automatically and in another instance paid amount shows 0.00 it does not show amount due automatically can you tell me where to make changes so that it can automatically reflect the amount of amount due in paid amount.