Add initial Code
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\PaymentTerms;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PaymentTermsSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
PaymentTerms::create([
|
||||
'name' => 'prepaid',
|
||||
'description' => 'Vorkasse',
|
||||
'is_fixed' => true,
|
||||
'days' => null
|
||||
]);
|
||||
|
||||
PaymentTerms::create([
|
||||
'name' => 'onReceipt',
|
||||
'is_fixed' => true,
|
||||
'days' => null
|
||||
]);
|
||||
|
||||
PaymentTerms::create([
|
||||
'name' => 'daysAfterInvoice',
|
||||
'description' => 'Zahlungsziel in Tagen',
|
||||
'is_fixed' => false,
|
||||
'days' => 14
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user