how to add new discount fields in purchase order

i want two fields in the purchase order line details

location discount and regional discount.

these two also calculated for purchase order

How to add these two for calculation

How they are different from the standard discount functionality?