Removed same code from postprocess() function which is required for Invoice generation and PDF generation