Update in sales_datail to accept parameter in sql query and fields in report.