Wrong discount amount when you have group and document discount and the items are partly shipped

Order To Cash: Sales Order Version 10.79

Earlier in some senarioes, wrong discount amount was calculated when you have group and document discount and the items are partly shipped. This has now been fixed.