Update to TotalOutstanding function order.php

Update function to also not include payments with pending payment status when calculating the Total Outstanding.