Abo Einmalprodukte und Bestätigung abschließen
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2bdc9ada3c
commit
2269ce031f
57 changed files with 3647 additions and 371 deletions
32
database/factories/UserAboOneTimeItemFactory.php
Normal file
32
database/factories/UserAboOneTimeItemFactory.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\UserAboOneTimeItem;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<UserAboOneTimeItem>
|
||||
*/
|
||||
class UserAboOneTimeItemFactory extends Factory
|
||||
{
|
||||
protected $model = UserAboOneTimeItem::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_abo_id' => $this->faker->randomNumber(3),
|
||||
'product_id' => $this->faker->randomNumber(3),
|
||||
'comp' => 0,
|
||||
'qty' => $this->faker->numberBetween(1, 5),
|
||||
'price' => $this->faker->randomFloat(2, 5, 100),
|
||||
'price_net' => $this->faker->randomFloat(3, 4, 90),
|
||||
'tax_rate' => 19.00,
|
||||
'tax' => $this->faker->randomFloat(3, 1, 20),
|
||||
'price_vk_net' => $this->faker->randomFloat(3, 4, 90),
|
||||
'discount' => 0,
|
||||
'points' => $this->faker->numberBetween(0, 50),
|
||||
'status' => 1,
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue