From 8a56575eda16d42785d5c4163b899deaf357176b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 26 Aug 2014 13:57:44 +0300 Subject: [PATCH] Tracking activity when invoice is archived --- app/controllers/PaymentController.php | 1 - app/models/Activity.php | 5 ----- app/routes.php | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index fb4d175976..b92892b4a4 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -417,7 +417,6 @@ class PaymentController extends \BaseController $license->affiliate_id = Session::get('affiliate_id'); $license->save(); - $data = [ 'license' => $licenseKey, 'hideHeader' => true diff --git a/app/models/Activity.php b/app/models/Activity.php index 30edee0c0e..f177e9dada 100755 --- a/app/models/Activity.php +++ b/app/models/Activity.php @@ -140,11 +140,6 @@ class Activity extends Eloquent public static function archiveInvoice($invoice) { - if ($invoice->invoice_status_id < INVOICE_STATUS_SENT) - { - return; - } - if (!$invoice->is_deleted) { $activity = Activity::getBlank(); diff --git a/app/routes.php b/app/routes.php index e5685f90fb..df96bf68a2 100755 --- a/app/routes.php +++ b/app/routes.php @@ -234,7 +234,7 @@ define('NINJA_URL', 'https://www.invoiceninja.com'); define('NINJA_VERSION', '1.3.1'); define('PRO_PLAN_PRICE', 50); -define('LICENSE_PRICE', 30); +define('LICENSE_PRICE', 30.00); /* define('GATEWAY_AMAZON', 30);