2020-05-23 05:28:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Models\PaymentTerm;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class PaymentTermsSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
Eloquent::unguard();
|
|
|
|
|
|
|
|
$paymentTerms = [
|
2020-05-27 01:49:06 +02:00
|
|
|
['num_days' => 0, 'name' => 'Net 0'],
|
2020-05-23 05:28:24 +02:00
|
|
|
['num_days' => 7, 'name' => ''],
|
|
|
|
['num_days' => 10, 'name' => ''],
|
|
|
|
['num_days' => 14, 'name' => ''],
|
|
|
|
['num_days' => 15, 'name' => ''],
|
|
|
|
['num_days' => 30, 'name' => ''],
|
|
|
|
['num_days' => 60, 'name' => ''],
|
|
|
|
['num_days' => 90, 'name' => ''],
|
|
|
|
];
|
|
|
|
|
|
|
|
foreach ($paymentTerms as $paymentTerm) {
|
|
|
|
PaymentTerm::create($paymentTerm);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|