Add title sections to invoices backend and frontend, #41

This commit is contained in:
2025-11-19 10:12:45 +01:00
parent 250c4538aa
commit d1656b56a0
7 changed files with 80 additions and 31 deletions
+5 -2
View File
@@ -8,8 +8,11 @@ class LineItemFactory extends Factory
{
public function definition(): array
{
$isSection = rand(0, 10) > 7;
return [
'position' => $this->faker->numberBetween(1, 10),
'position' => $this->faker->numberBetween(1, 10) + ($isSection ? 0.5 : 0),
'is_section' => $isSection,
'title' => $this->faker->words(3, true),
'description' => $this->faker->sentence(),
'quantity' => $this->faker->numberBetween(1, 10),
@@ -17,4 +20,4 @@ public function definition(): array
'price' => $this->faker->randomFloat(2, 10, 500),
];
}
}
}