Modify the existing formula to tally the data from magento, change formula of unit price from line_mrp+line_markdown to line_mrp only, discount amount from line promo to line_promo+line_markdown and sum all the discount breakdown as total of discount total column.