When you send for approval a Payment Run(from a payment journal) and you export the file (XML) even if they are approved before exporting, new restricted records are created and it doesn’t allow to post but you cannot approve either.
Step that were followed:
1.Enabled Payment for Journal batch (screenshot attached)
2.Created Payment Lines
3.Sent for Approval->sent batch
4.Approved
5.Export Bank payment file(XML)
6.***System creates entries for each line in Restricted records table
7.User tries to post->not able to post because of the restriction records created in the step 6
Version of the Business Central:
Version: W1 20.0 (Platform 20.0.37114.40679 + Application 20.0.37253.38055)