Apply GST on MRP before applying discount on each item while recording purchases, and discount on MRP not on (MRP + GST)

Hi,
I want to apply GST on MRP and then apply discount on MRP on every item while recording purchases. Is it possible, because most of the suppliers are doing this practice while issuing us the sales invoices, so we have to record keeping the same practice