mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01: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()
|
||||
{
|
||||
$this->viewed_date = Carbon::now();
|
||||
$this->viewed_date = now();
|
||||
$this->save();
|
||||
}
|
||||
|
||||
public function markOpened()
|
||||
{
|
||||
$this->opened_date = Carbon::now();
|
||||
$this->opened_date = now();
|
||||
$this->save();
|
||||
}
|
||||
|
||||
|
@ -64,6 +64,8 @@ class Vendor extends BaseModel
|
||||
// 'contacts',
|
||||
];
|
||||
|
||||
protected $presenter = \App\Models\Presenters\VendorPresenter::class;
|
||||
|
||||
public function getEntityType()
|
||||
{
|
||||
return self::class;
|
||||
|
@ -28,6 +28,8 @@ class ProjectNameUniqueRemoval extends Migration
|
||||
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
$table->boolean('invoice_expense_documents')->default(false);
|
||||
$table->boolean('auto_start_tasks')->default(false);
|
||||
|
||||
});
|
||||
|
||||
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('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>
|
||||
<html data-report-errors="{{ $report_errors }}">
|
||||
<head>
|
||||
<!-- Source: https://github.com/invoiceninja/invoiceninja -->
|
||||
<!-- Version: {{ config('ninja.app_version') }} -->
|
||||
<meta charset="UTF-8">
|
||||
<title>Invoice Ninja</title>
|
||||
<meta name="google-signin-client_id" content="{{ config('services.google.client_id') }}">
|
||||
|
Loading…
Reference in New Issue
Block a user