Update to hooks.php - a step closer to having a working create invoice.