Proforma View corrected

I found a small bug while testing the proforma function. I have made the required changes and now it is working. The PR can be merged.