Add custom values to payments table

This commit is contained in:
David Bomba 2020-11-09 08:21:52 +11:00
parent fc92fbdaab
commit 087c442a64
3 changed files with 39 additions and 0 deletions

View File

@ -67,6 +67,10 @@ class Payment extends BaseModel
'number',
'is_manual',
'private_notes',
'custom_value1',
'custom_value2',
'custom_value3',
'custom_value4',
];
protected $casts = [

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CustomFieldsForPaymentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payments', function(Blueprint $table){
$table->string('custom_value1')->nullable();
$table->string('custom_value2')->nullable();
$table->string('custom_value3')->nullable();
$table->string('custom_value4')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -3296,4 +3296,6 @@ return [
'pay_with' => 'Pay with',
'n/a' => 'N/A',
'payment_number' => 'Payment Number',
];