Order total for CM orders with group discount now calculated correctly

Order To Cash: Sales Order Version 9.39

Earlier, for sales orders of the Credit note (CM) type with applied group-level discount, the Discount total was added to the Order total. This has now been fixed, and the Discount total is deducted from the Order total.