mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 06:44:37 -04:00
Fixes for schema, fixes for recurring invoice markViewed()
This commit is contained in:
parent
2b839f2ce1
commit
6f84e07c10
@ -76,13 +76,13 @@ class RecurringInvoiceInvitation extends BaseModel
|
|||||||
|
|
||||||
public function markViewed()
|
public function markViewed()
|
||||||
{
|
{
|
||||||
$this->viewed_date = Carbon::now();
|
$this->viewed_date = now();
|
||||||
$this->save();
|
$this->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function markOpened()
|
public function markOpened()
|
||||||
{
|
{
|
||||||
$this->opened_date = Carbon::now();
|
$this->opened_date = now();
|
||||||
$this->save();
|
$this->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ class Vendor extends BaseModel
|
|||||||
// 'contacts',
|
// 'contacts',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $presenter = \App\Models\Presenters\VendorPresenter::class;
|
||||||
|
|
||||||
public function getEntityType()
|
public function getEntityType()
|
||||||
{
|
{
|
||||||
return self::class;
|
return self::class;
|
||||||
|
@ -28,6 +28,8 @@ class ProjectNameUniqueRemoval extends Migration
|
|||||||
|
|
||||||
Schema::table('companies', function (Blueprint $table) {
|
Schema::table('companies', function (Blueprint $table) {
|
||||||
$table->boolean('invoice_expense_documents')->default(false);
|
$table->boolean('invoice_expense_documents')->default(false);
|
||||||
|
$table->boolean('auto_start_tasks')->default(false);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('task_statuses', function (Blueprint $table) {
|
Schema::create('task_statuses', function (Blueprint $table) {
|
||||||
@ -44,6 +46,13 @@ class ProjectNameUniqueRemoval extends Migration
|
|||||||
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade')->onUpdate('cascade');
|
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade')->onUpdate('cascade');
|
||||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');
|
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('tasks', function (Blueprint $table) {
|
||||||
|
$table->decimal('rate', 16, 4)->default(0);
|
||||||
|
$table->renameColumn('task_status_id', 'status_id');
|
||||||
|
$table->renameColumn('task_status_sort_order', 'sort_order');
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html data-report-errors="{{ $report_errors }}">
|
<html data-report-errors="{{ $report_errors }}">
|
||||||
<head>
|
<head>
|
||||||
|
<!-- Source: https://github.com/invoiceninja/invoiceninja -->
|
||||||
|
<!-- Version: {{ config('ninja.app_version') }} -->
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Invoice Ninja</title>
|
<title>Invoice Ninja</title>
|
||||||
<meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}">
|
<meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user