Billing profile implementation

This commit is contained in:
Peter Papp
2021-04-28 15:55:01 +02:00
parent 1e4bbd10f3
commit b37edd298a
18 changed files with 582 additions and 183 deletions

View File

@@ -25,11 +25,15 @@ class InvoiceFactory extends Factory
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'client_id' => $this->faker->uuid,
'invoice_type' => $this->faker->randomElement(['regular-invoice', 'advance-invoice']),
'invoice_type' => $this->faker->randomElement([
'regular-invoice', 'advance-invoice'
]),
'invoice_number' => $this->faker->numberBetween(2120001, 2120999),
'variable_number' => $this->faker->numberBetween(2120001, 2120999),
'currency' => $this->faker->randomElement(['CZK', 'EUR']),
'user' => null,
'currency' => $this->faker->randomElement([
'CZK', 'EUR'
]),
'user' => [],
'client' => [
'name' => $this->faker->company,
'email' => $this->faker->email,