Delivery note for one item from sales order that has discount on the whole order [bug]

hi

i have a Sales order with 4 items

and i created discount on the whole invoice

then i did delivery note for one item .
the discount amount is bigger than the item value in the delivery note for one item
so the net total in delivery note is minus (-4500)

to solve this issue , i recreated the sales order and distributed the discount on each item row to avoid the negative net total issue

this workaround works fine , but i was wondering is it a bug ? or new feature we need to add
and if so what is the right approach to distrbute general discount on the items , is it right to do it this way ?

Hello,

This is not a bug. It is a new validation that was introduced in this PR.

Currently, you need to apportion the discount manually before saving the delivery note. So, for example, in the Delivery Note you created, you can manually change the discount to 5,750. Then when you create a new Delivery Note for the remaining items, it will automatically set the balance amount of 40,000 as discount.

We will consider working on automatic apportioning of discount amount in future releases.

2 Likes