Discount is not set correctly in the invoice when using nonStock items that don't require a shipment

Order To Cash: Sales Order Version 10.50

Earlier, discount was not set correctly in the invoice (based on a salesorder) when using non-stock items that didn’t require a shipment. This has now been fixed.