invoice->id) && $this->invoice->id >= 1) { return round($total - ($this->invoice->amount - $this->invoice->balance), 2); } return $total; } }