From b67beba7b21b0470d0aa669cb2344a94b1f33fcb Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 19 Feb 2014 22:36:09 +0200 Subject: [PATCH 1/8] bug fixes --- app/routes.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/routes.php b/app/routes.php index 560457b8004f..cab01217bbea 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'); From da29bd8900f41e87f2f1cec13fb0c66ee8ad7082 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 20 Feb 2014 16:31:46 +0200 Subject: [PATCH 2/8] bug fixes --- README.md | 2 +- app/ninja/mailers/Mailer.php | 4 ++-- app/routes.php | 2 +- app/views/header.blade.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a35cc3f2a58c..e125d71c86c5 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. 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 cab01217bbea..3b79be97f88f 100755 --- a/app/routes.php +++ b/app/routes.php @@ -204,7 +204,7 @@ define('DEFAULT_INVOICE_NUMBER', '0001'); define('RECENTLY_VIEWED_LIMIT', 8); define('LOGGED_ERROR_LIMIT', 100); define('RANDOM_KEY_LENGTH', 32); -define('MAX_NUM_CLIENTS', 2000); +define('MAX_NUM_CLIENTS', 1000); define('INVOICE_STATUS_DRAFT', 1); define('INVOICE_STATUS_SENT', 2); diff --git a/app/views/header.blade.php b/app/views/header.blade.php index 124ffb99dd5e..27d1e55f21b8 100755 --- a/app/views/header.blade.php +++ b/app/views/header.blade.php @@ -439,7 +439,7 @@ */ @endif - @if (Session::has('message')) + @if (false && Session::has('message')) setTimeout(function() { $('.alert-info').fadeOut(); }, 3000); From 99e4e402233d59891fcf4c218660da6f725b594b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 20 Feb 2014 16:42:09 +0200 Subject: [PATCH 3/8] bug fixes --- app/controllers/InvoiceController.php | 5 +++-- app/routes.php | 10 +++++++++- app/views/list.blade.php | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) 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/routes.php b/app/routes.php index 3b79be97f88f..6dd40fcea0ed 100755 --- a/app/routes.php +++ b/app/routes.php @@ -159,7 +159,15 @@ HTML::macro('image_data', function($imagePath) { HTML::macro('breadcrumbs', function() { $str = '