mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Minor fixes
This commit is contained in:
parent
d8a0462e1b
commit
08efcc0342
@ -56,6 +56,7 @@ The self-host zip includes all third party libraries whereas downloading the cod
|
|||||||
* [Event Scheduler](https://github.com/cytech/Scheduler-InvoiceNinja)
|
* [Event Scheduler](https://github.com/cytech/Scheduler-InvoiceNinja)
|
||||||
* [Manufacturer Module](https://github.com/dicarlosystems/manufacturer-invoiceninja)
|
* [Manufacturer Module](https://github.com/dicarlosystems/manufacturer-invoiceninja)
|
||||||
* [Point of Sale](https://github.com/dicarlosystems/pointofsale-invoiceninja)
|
* [Point of Sale](https://github.com/dicarlosystems/pointofsale-invoiceninja)
|
||||||
|
* [Invoice Design Import/Export](https://github.com/feyst/invoicedesignexport)
|
||||||
|
|
||||||
> Feel free to email us for help if you're working on a module, we're happy to provide developer support.
|
> Feel free to email us for help if you're working on a module, we're happy to provide developer support.
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ class SendRecurringInvoices extends Command
|
|||||||
$invoices = Invoice::with('account.timezone', 'invoice_items', 'client', 'user')
|
$invoices = Invoice::with('account.timezone', 'invoice_items', 'client', 'user')
|
||||||
->whereRaw('is_deleted IS FALSE AND deleted_at IS NULL AND is_recurring IS TRUE AND is_public IS TRUE AND frequency_id > 0 AND start_date <= ? AND (end_date IS NULL OR end_date >= ?)', [$today, $today])
|
->whereRaw('is_deleted IS FALSE AND deleted_at IS NULL AND is_recurring IS TRUE AND is_public IS TRUE AND frequency_id > 0 AND start_date <= ? AND (end_date IS NULL OR end_date >= ?)', [$today, $today])
|
||||||
->orderBy('id', 'asc')
|
->orderBy('id', 'asc')
|
||||||
->get();
|
->cursor();
|
||||||
$this->info(date('r ') . $invoices->count() . ' recurring invoice(s) found');
|
$this->info(date('r ') . ' Recurring invoice(s) found');
|
||||||
|
|
||||||
foreach ($invoices as $recurInvoice) {
|
foreach ($invoices as $recurInvoice) {
|
||||||
$shouldSendToday = $recurInvoice->shouldSendToday();
|
$shouldSendToday = $recurInvoice->shouldSendToday();
|
||||||
|
@ -298,8 +298,8 @@ class AccountApiController extends BaseAPIController
|
|||||||
$timestamp = $request->timestamp;
|
$timestamp = $request->timestamp;
|
||||||
$productId = $request->product_id;
|
$productId = $request->product_id;
|
||||||
|
|
||||||
if (Carbon::createFromTimestamp($timestamp) < Carbon::now()->subYear()) {
|
if ($company->app_store_order_id) {
|
||||||
return '{"message":"The order is expired"}';
|
return '{"message":"error"}';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($productId == 'v1_pro_yearly') {
|
if ($productId == 'v1_pro_yearly') {
|
||||||
@ -328,7 +328,7 @@ class AccountApiController extends BaseAPIController
|
|||||||
$company->plan_term = PLAN_TERM_YEARLY;
|
$company->plan_term = PLAN_TERM_YEARLY;
|
||||||
$company->plan_started = $company->plan_started ?: date('Y-m-d');
|
$company->plan_started = $company->plan_started ?: date('Y-m-d');
|
||||||
$company->plan_paid = date('Y-m-d');
|
$company->plan_paid = date('Y-m-d');
|
||||||
$company->plan_expires = Carbon::createFromTimestamp($timestamp)->addYear()->format('Y-m-d');
|
$company->plan_expires = Carbon::now()->addYear()->format('Y-m-d');
|
||||||
$company->trial_plan = null;
|
$company->trial_plan = null;
|
||||||
$company->save();
|
$company->save();
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ class Expense extends EntityModel
|
|||||||
*/
|
*/
|
||||||
public function recurring_expense()
|
public function recurring_expense()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\RecurringExpense');
|
return $this->belongsTo('App\Models\RecurringExpense')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -383,7 +383,10 @@ iframe.src = '{{ rtrim(SITE_URL ,'/') }}/' + parts[1] + '/' + parts[0].substring
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body" id="domainModalHelp" style="display:none">
|
<div class="panel-body" id="domainModalHelp" style="display:none">
|
||||||
<p>Create a DNS A Record entry for your custom domain and point to the following IP address <code>96.126.107.105</code>.</p>
|
<p>
|
||||||
|
Create a DNS A Record entry for your custom domain and point to the following IP address <code>96.126.107.105</code>.
|
||||||
|
You can watch this <a href="https://www.youtube.com/watch?v=tmEJI-Xfdb0" target="_blank">video on YouTube</a> to see how.
|
||||||
|
</p>
|
||||||
<p>Once this is setup please send an email to {{ env('CONTACT_EMAIL') }} and we'll complete the process.</p>
|
<p>Once this is setup please send an email to {{ env('CONTACT_EMAIL') }} and we'll complete the process.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!! Former::open('/handle_command')->id('search-form')->addClass('navbar-form navbar-right')->role('search') !!}
|
{!! Former::open(env('SPEECH_ENABLED') ? '/handle_command' : '/#')->id('search-form')->addClass('navbar-form navbar-right')->role('search') !!}
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="text" name="command" id="search" style="width: 280px;padding-top:0px;padding-bottom:0px;margin-right:12px;"
|
<input type="text" name="command" id="search" style="width: 280px;padding-top:0px;padding-bottom:0px;margin-right:12px;"
|
||||||
class="form-control" placeholder="{{ trans('texts.search') . ': ' . trans('texts.search_hotkey')}}"/>
|
class="form-control" placeholder="{{ trans('texts.search') . ': ' . trans('texts.search_hotkey')}}"/>
|
||||||
@ -533,7 +533,9 @@
|
|||||||
|
|
||||||
@include('partials.contact_us')
|
@include('partials.contact_us')
|
||||||
@include('partials.sign_up')
|
@include('partials.sign_up')
|
||||||
@include('partials.keyboard_shortcuts')
|
@if (!request()->is('*proposals*'))
|
||||||
|
@include('partials.keyboard_shortcuts')
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (auth()->check() && auth()->user()->registered && ! auth()->user()->hasAcceptedLatestTerms())
|
@if (auth()->check() && auth()->user()->registered && ! auth()->user()->hasAcceptedLatestTerms())
|
||||||
@include('partials.accept_terms')
|
@include('partials.accept_terms')
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<li>$client.state</li>
|
<li>$client.state</li>
|
||||||
<li>$client.postalCode</li>
|
<li>$client.postalCode</li>
|
||||||
<li>$client.country.name</li>
|
<li>$client.country.name</li>
|
||||||
<li>$client.phone</li>
|
<li>$client.workPhone</li>
|
||||||
<li>$client.balance</li>
|
<li>$client.balance</li>
|
||||||
@if ($account->customLabel('client1'))
|
@if ($account->customLabel('client1'))
|
||||||
<li>$client.customValue1</li>
|
<li>$client.customValue1</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user