in main window total discount and total amount has been done