mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Optimize invoice page
This commit is contained in:
parent
8f90e4ba43
commit
f5a9a66584
@ -269,6 +269,10 @@ class InvoiceController extends BaseController
|
||||
private static function getViewModel($invoice)
|
||||
{
|
||||
$recurringHelp = '';
|
||||
$recurringDueDateHelp = '';
|
||||
$recurringDueDates = [];
|
||||
|
||||
if ($invoice->is_recurring) {
|
||||
foreach (preg_split("/((\r?\n)|(\r\n?))/", trans('texts.recurring_help')) as $line) {
|
||||
$parts = explode('=>', $line);
|
||||
if (count($parts) > 1) {
|
||||
@ -279,7 +283,6 @@ class InvoiceController extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$recurringDueDateHelp = '';
|
||||
foreach (preg_split("/((\r?\n)|(\r\n?))/", trans('texts.recurring_due_date_help')) as $line) {
|
||||
$parts = explode('=>', $line);
|
||||
if (count($parts) > 1) {
|
||||
@ -326,6 +329,7 @@ class InvoiceController extends BaseController
|
||||
$recurringDueDates[$str] = ['value' => "1998-02-$dayStr", 'data-num' => $day, 'class' => 'weekly'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Tax rate $options
|
||||
$account = Auth::user()->account;
|
||||
|
Loading…
x
Reference in New Issue
Block a user