AP and Job Distribution

How do I correct where the retentioin amount was entered to the discount instead of the retention  on the job distribution line when entering an AP invoice. This invoice has been paid. I need to correct the amount paid show in the job too. Thanks.