mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 03:02:34 +01:00
8512db6b1e
* remove first name last name required * Working on check update script * Add payment terms per company * set enabled modules on company creation * Add payment terms to migration
29 lines
699 B
PHP
29 lines
699 B
PHP
<?php
|
|
|
|
use App\Models\PaymentTerm;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class PaymentTermsSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Eloquent::unguard();
|
|
|
|
$paymentTerms = [
|
|
['num_days' => 0, 'name' => 'Net 0'],
|
|
['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);
|
|
}
|
|
|
|
}
|
|
}
|