OE Prepayment Data Integrity

I have  a macro v2018 that makes an OE Order and Prepayment

it seems to work fine and prepayment goes to AR Receipt Batch and you can post the Receipt batch

when I run  data integrity in OE I get an error like :

Order Prepayment: 2402630   <<ORDUNIQ #
E: Invalid entry. Batch Number refers to a batch that has a status of Posted.

which makes no sense to me; not sure if this is a real D.I. and my macro is slightly off or Sage bug or just a bad D.I. message since everything seems to work

Any ideas ?

Thanks much