Error while posting the Prepayment for a Purchase order in MSD Axapta

If you are getting an error while posting the Prepayment for a Purchase order- "Account number does not exist for type Prepayment".

Solution:

You need to check  set up for
1) Posting profile of 'Advance' and attached it in the Parameter of AP.
2) Attached the prepayment account in Item posting but  if you still  getting that error then go to step 3.
3.If its mapped in Item Posting only for GROUP then you need changed it to ALL .