Steps to Reproduce:1. Create an Invoice with 2 lines of type LINE and 3 tax lines for each line type of LINE2. Create a Receipt.3. Apply a 0$ credit to the Invoice created, Actions/Credit crediting tax and lines.4. Run the PI AR_RECEIPT_API_PUB.Apply_In_Detail and apply to line # 15. See the error.