diff --git a/README.md b/README.md index a35cc3f2a58c..e1b2cd1398c6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Invoice Ninja ## Simple, Intuitive Invoicing -### [https://www.invoiceninja.com/rocksteady](https://www.invoiceninja.com/rocksteady) +### [https://www.invoiceninja.com](https://www.invoiceninja.com) ### Introduction Most online invoicing sites are expensive. They shouldn't be. The aim of this project is to provide a free, open-source alternative. Additionally, the hope is this codebase will serve as a sample site for Laravel as well as other JavaScript technologies. @@ -15,9 +15,10 @@ Most online invoicing sites are expensive. They shouldn't be. The aim of this pr ### Steps to setup -Fork the Github project +If you plan on submitting changes it's best to fork the repo (https://help.github.com/articles/fork-a-repo), otherwise you can just checkout the code. -https://help.github.com/articles/fork-a-repo + git clone git@github.com:hillelcoren/invoice-ninja.git ninja + cd ninja Install Laravel packages using Composer diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index 7117a797e077..0a93c4bf81cb 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -388,10 +388,11 @@ class InvoiceController extends \BaseController { $invoice = Invoice::with('invoice_items')->scope($publicId)->firstOrFail(); $clone = Invoice::createNew(); - foreach (['client_id', 'discount', 'invoice_date', 'due_date', 'is_recurring', 'frequency_id', 'start_date', 'end_date', 'terms'] as $field) + $clone->balance = $invoice->amount; + foreach (['client_id', 'discount', 'invoice_date', 'due_date', 'is_recurring', 'frequency_id', 'start_date', 'end_date', 'terms', 'public_notes', 'invoice_design_id', 'tax_name', 'tax_rate', 'amount'] as $field) { $clone->$field = $invoice->$field; - } + } if (!$clone->is_recurring) { diff --git a/app/ninja/mailers/Mailer.php b/app/ninja/mailers/Mailer.php index 0a3f6dd07710..23bffa4a5421 100755 --- a/app/ninja/mailers/Mailer.php +++ b/app/ninja/mailers/Mailer.php @@ -11,9 +11,9 @@ abstract class Mailer { 'emails.'.$view.'_text' ]; - $view = 'emails.' . $view; + //$view = 'emails.' . $view; - Mail::queue($view, $data, function($message) use ($toEmail, $fromEmail, $subject) + Mail::queue($views, $data, function($message) use ($toEmail, $fromEmail, $subject) { $message->to($toEmail)->replyTo($fromEmail)->subject($subject); }); diff --git a/app/routes.php b/app/routes.php index 560457b8004f..6dd40fcea0ed 100755 --- a/app/routes.php +++ b/app/routes.php @@ -54,10 +54,7 @@ Route::get('/send_emails', function() { }); */ -Route::get('/', function() { - return Redirect::to('http://signup.invoiceninja.com'); -}); - +Route::get('/', 'HomeController@showWelcome'); Route::get('/rocksteady', 'HomeController@showWelcome'); Route::get('log_error', 'HomeController@logError'); @@ -162,7 +159,15 @@ HTML::macro('image_data', function($imagePath) { HTML::macro('breadcrumbs', function() { $str = '