SupplierPayment endpoint returns wrong data when payments and credit notes have the same reference number

API: Outgoing Payment Version 9.19

Previously, both GET ALL and GET Specific - SupplierPayment endpoints returned the wrong data when payments and credit notes had the same reference number. This has now been fixed, but please note the following:

1.Get ALL SupplierPayment endpoint will return the correct header details and invoice lines applied against each payment document
2. The initial Get SPECIFIC SupplierPayment endpoint (controller/api/v1/SupplierPayment /paymentnumber), in order to be backward compatible, will return only one document, being the payment OR the credit note depending on the used filters.
3. A NEW endpoint Get SPECIFIC SupplierPayment endpoint has been deployed by type and number (controller/api/v1/SupplierPayment /paymenttype/paymentnumber). This one will return the correct information depending on the chosen document.