mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
970c9bb87d
* Fixes for converting a quote to invoice * Fixes for deleting an invoice * Payment Terms CRUD * Payment Terms * Push PaymentTerms back into the DB * Payment Terms * Payment Terms * Create api docs for payment terms
29 lines
700 B
PHP
29 lines
700 B
PHP
<?php
|
|
|
|
use App\Models\PaymentTerm;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class PaymentTermsSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Eloquent::unguard();
|
|
|
|
$paymentTerms = [
|
|
['num_days' => -1, '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);
|
|
}
|
|
|
|
}
|
|
}
|