calculateTotals(); return $invoice; } }