diff --git a/app/commands/SendRecurringInvoices.php b/app/commands/SendRecurringInvoices.php index ef54921372b0..a3e86af027c9 100755 --- a/app/commands/SendRecurringInvoices.php +++ b/app/commands/SendRecurringInvoices.php @@ -57,6 +57,11 @@ class SendRecurringInvoices extends Command { $invoice->tax_name = $recurInvoice->tax_name; $invoice->tax_rate = $recurInvoice->tax_rate; $invoice->invoice_design_id = $recurInvoice->invoice_design_id; + $invoice->custom_value1 = $recurInvoice->custom_value1; + $invoice->custom_value2 = $recurInvoice->custom_value2; + $invoice->custom_taxes1 = $recurInvoice->custom_taxes1; + $invoice->custom_taxes2 = $recurInvoice->custom_taxes2; + $invoice->is_amount_discount = $recurInvoice->is_amount_discount; if ($invoice->client->payment_terms) { diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 6adc64e32de2..e6f27e4a3cf4 100755 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -878,7 +878,7 @@ class AccountController extends \BaseController { } else { - //$this->accountRepo->registerUser($user); + $this->accountRepo->registerUser($user); } $activities = Activity::scope()->get(); diff --git a/app/controllers/AppController.php b/app/controllers/AppController.php index 02a99da975be..d9ffff476fe5 100644 --- a/app/controllers/AppController.php +++ b/app/controllers/AppController.php @@ -99,7 +99,7 @@ class AppController extends BaseController { $user->amend(); //Auth::login($user, true); - //$this->accountRepo->registerUser($user); + $this->accountRepo->registerUser($user); return Redirect::to('/invoices/create'); } diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index 34a71dab38e5..69c8d84266c4 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -310,6 +310,17 @@ class InvoiceController extends \BaseController { private static function getViewModel() { + $recurringHelp = ''; + foreach(preg_split("/((\r?\n)|(\r\n?))/", trans('texts.recurring_help')) as $line){ + $parts = explode("=>", $line); + if (count($parts) > 1) { + $line = $parts[0] . ' => ' . Utils::processVariables($parts[0]); + $recurringHelp .= '