I missed the original version of this post, but it's worth mentioning that a VendorCredit may be unapplied, partially applied, or fully applied. Although the OSR identifies OpenAmount as an element of VendorCredit, it does not return the expected value and so cannot be used to determine how much of the VendorCredit is unapplied.

It's possible--but tricky--to derive the amount of the Vendor Credit that has been applied and subtract that amount from the value of the CreditAmount element.

HTH!

Geoffrey Gerhard

Creative Solutions Incorporated

14000 Creekside Drive

Matthews, NC 28105

704) 814-6852