Delivery note with reference to sales order - 0 quantity items
our system allows items with quantity 0 to be created in delivery notes with reference to sales orders.
This happens when some items in a sales order are out of stock while others are availiable. The unavailable items are included in the delivery note, but have quantity 0.
The requirement is to eliminate this behavior and to create delivery notes with availiable items only.
I would be grateful for any advice how to realise this.
Best regards, Andreas