mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Add proper date format to purchase date in the component factory
This commit is contained in:
parent
f0d05a7461
commit
9cd8460e1e
|
@ -38,7 +38,7 @@ class ComponentFactory extends Factory
|
||||||
'serial' => $this->faker->uuid,
|
'serial' => $this->faker->uuid,
|
||||||
'qty' => $this->faker->numberBetween(3, 10),
|
'qty' => $this->faker->numberBetween(3, 10),
|
||||||
'order_number' => $this->faker->numberBetween(1000000, 50000000),
|
'order_number' => $this->faker->numberBetween(1000000, 50000000),
|
||||||
'purchase_date' => $this->faker->dateTime(),
|
'purchase_date' => $this->faker->dateTime()->format('Y-m-d'),
|
||||||
'purchase_cost' => $this->faker->randomFloat(2),
|
'purchase_cost' => $this->faker->randomFloat(2),
|
||||||
'min_amt' => $this->faker->numberBetween($min = 1, $max = 2),
|
'min_amt' => $this->faker->numberBetween($min = 1, $max = 2),
|
||||||
'company_id' => function () {
|
'company_id' => function () {
|
||||||
|
|
Loading…
Reference in a new issue