1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/database/factories/ExpenseFactory.php
David Bomba 43e57d0117
Fixes for self-update (#3514)
* minor fix for payment notifications

* styleci

* Limit Self updating to self hosters only
:

* Fixes for designs

* Minor fixes for self-update
2020-03-21 16:37:30 +11:00

23 lines
740 B
PHP

<?php
use App\DataMapper\ClientSettings;
use App\DataMapper\CompanySettings;
use App\Factory\InvoiceItemFactory;
use Faker\Generator as Faker;
$factory->define(App\Models\Expense::class, function (Faker $faker) {
return [
'amount' => $faker->numberBetween(1, 10),
'custom_value1' => $faker->text(10),
'custom_value2' => $faker->text(10),
'custom_value3' => $faker->text(10),
'custom_value4' => $faker->text(10),
'exchange_rate' => $faker->randomFloat(2, 0, 1),
'expense_date' => $faker->date(),
'is_deleted' => false,
'public_notes' => $faker->text(50),
'private_notes' => $faker->text(50),
'transaction_reference' => $faker->text(5),
];
});