Fixed bug #866: Standing order from an invoice suggests invoice total amount instead of remaining to pay