Update to Total Outstanding function

To ensure that pending payments are not deducted from total amount outstanding.
Update Order.php
Merge pull request #7 from jamesbolitho/2.0

Update to TotalOutstanding function order.php