Extend incoming invoices by payment data.

This commit is contained in:
2025-01-18 16:46:26 +01:00
parent 7940a5398a
commit ea4dcb1842
2 changed files with 35 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ class Incoming extends Model
'gross',
'tax',
'pay_date',
'pay_name',
'pay_bic',
'pay_iban',
];
/**

View File

@@ -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');
});
}
};