Invoice Type was not correctly determined when creating credit invoice


When creating a credit invoice, the Invoice Type field was not determined correctly, resulting in the wrong title being displayed on the report: "Invoice" instead of "Credit Invoice". We have rectified this.