mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
23 lines
459 B
PHP
23 lines
459 B
PHP
<?php
|
|
|
|
use App\Models\PaymentTerm;
|
|
|
|
class PaymentTermsSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Eloquent::unguard();
|
|
|
|
$paymentTerms = [
|
|
['num_days' => -1, 'name' => 'Net 0'],
|
|
];
|
|
|
|
foreach ($paymentTerms as $paymentTerm) {
|
|
if (!DB::table('payment_terms')->where('name', '=', $paymentTerm['name'])->get()) {
|
|
PaymentTerm::create($paymentTerm);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|