Skip to content

Commit

Permalink
Create Demo transaction data for 1 Year (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns authored Dec 5, 2024
1 parent a4248e9 commit aef682c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/Console/Commands/DummyDataCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function generateTransaction(): void {
return;
}

$dummyDate = date('Y-m-d', strtotime('-'.mt_rand(0, 30).' days'));
$dummyDate = date('Y-m-d', strtotime('-'.mt_rand(0, 365).' days'));

try {
$meterOwnerPhoneNumber = $randomMeter->device->person->addresses()->firstOrFail();
Expand Down Expand Up @@ -292,7 +292,7 @@ private function generateTicket() {
$randomCategory = $this->ticketCategory->newQuery()->inRandomOrder()->first();
$fakeSentence = $this->generateFakeSentence();
$randomCreator = $this->user->inRandomOrder()->first();
$dummyDate = date('Y-m-d', strtotime('-'.mt_rand(0, 30).' days'));
$dummyDate = date('Y-m-d', strtotime('-'.mt_rand(0, 365).' days'));
$ticketUser = $this->ticketUser->inRandomOrder()->first();
$randomMaintenanceUser = $this->maintenanceUsers->inRandomOrder()->first();
$randomPerson = $this->person->inRandomOrder()->where('is_customer', 1)->first();
Expand Down

0 comments on commit aef682c

Please sign in to comment.