Extend incoming invoices by payment data.
This commit is contained in:
@@ -26,6 +26,9 @@ class Incoming extends Model
|
|||||||
'gross',
|
'gross',
|
||||||
'tax',
|
'tax',
|
||||||
'pay_date',
|
'pay_date',
|
||||||
|
'pay_name',
|
||||||
|
'pay_bic',
|
||||||
|
'pay_iban',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?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('incomings', function (Blueprint $table) {
|
||||||
|
$table->string('pay_name')->nullable();
|
||||||
|
$table->string('pay_bic')->nullable();
|
||||||
|
$table->string('pay_iban')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('incomings', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('pay_name');
|
||||||
|
$table->dropColumn('pay_bic');
|
||||||
|
$table->dropColumn('pay_iban');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user