ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How can I calculate Discount on Purchase invoice?

I want to add a discount on two columns. I’ve added the form filed in the item list. Please tell me how can I calculate the discount. Please See the below image.

Calculation Like this.

4260 Rs - 5% - 6%

4260 Rs - 213 Rs - 242.82 = 3804.18 Rs