Erpnext sales invoice discount calculation confussion

erpnext sales invoice, on first save, dicount amount showing -49, i am not sure why, please anyone let me know. Thankyou in advance

Hi @gdhelp03

The item line discount is based on price list rate. In item table, RATE is tabulated as following;

Price list rate + margin - discount = RATE

Particularly, you have price list rate (pre defined rate) which you are overwriting and system is calculating difference as discount.

In general, item price makes up Price List Rate within any price list.

Discount percentage or amount can be manually input or otherwise Pricing Rule can automate.

Price List Rate in item table is controlled from Selling Settings.

Thankyou @ahsantareen