добавлен новый статус сделок - В работе
This commit is contained in:
parent
5bb9443c2a
commit
5a7437141d
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('client_contract', function (Blueprint $table)
|
||||||
|
{
|
||||||
|
$table->enum('status', ['NEW', 'IN_WORK', 'DECLINE', 'TREATY', 'SUCCESS', 'RESERVATION'])->default('NEW')->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -3,6 +3,7 @@
|
|||||||
class ContractStatus
|
class ContractStatus
|
||||||
{
|
{
|
||||||
const NEW = 'NEW';
|
const NEW = 'NEW';
|
||||||
|
const IN_WORK = "IN_WORK";
|
||||||
const TREATY = 'TREATY'; //Выплачено
|
const TREATY = 'TREATY'; //Выплачено
|
||||||
const RESERVATION = 'RESERVATION'; //бронь
|
const RESERVATION = 'RESERVATION'; //бронь
|
||||||
const SUCCESS = "SUCCESS";
|
const SUCCESS = "SUCCESS";
|
||||||
|
|||||||
@ -4,6 +4,6 @@
|
|||||||
'status_TREATY' => 'Выплачено',
|
'status_TREATY' => 'Выплачено',
|
||||||
'status_RESERVATION' => 'Бронь',
|
'status_RESERVATION' => 'Бронь',
|
||||||
'status_SUCCESS' => 'Успех',
|
'status_SUCCESS' => 'Успех',
|
||||||
'status_DECLINE' => 'Отклонен'
|
'status_DECLINE' => 'Отклонен',
|
||||||
|
'status_IN_WORK' => 'В работе'
|
||||||
];
|
];
|
||||||
Loading…
Reference in New Issue
Block a user