remove status pending and complete
This commit is contained in:
@@ -99,18 +99,18 @@ class MutationTestSeeder extends Seeder
|
||||
'notes' => 'Produk approved parsial'
|
||||
]);
|
||||
|
||||
// 4. Mutation dengan status COMPLETED (selesai)
|
||||
$this->command->info('Creating COMPLETED mutation...');
|
||||
// 4. Additional APPROVED mutation (completed workflow is now just approved)
|
||||
$this->command->info('Creating additional APPROVED mutation...');
|
||||
$mutation4 = Mutation::create([
|
||||
'from_dealer_id' => $dealers[0]->id,
|
||||
'to_dealer_id' => $dealers[1]->id,
|
||||
'status' => MutationStatus::COMPLETED,
|
||||
'status' => MutationStatus::APPROVED,
|
||||
'requested_by' => $users[0]->id,
|
||||
'received_by' => $users[1]->id ?? $users[0]->id,
|
||||
'received_at' => now()->subDay(),
|
||||
'approved_by' => $users[0]->id,
|
||||
'approved_at' => now()->subHours(6),
|
||||
'notes' => 'Mutasi test - status COMPLETED'
|
||||
'notes' => 'Mutasi test - status APPROVED (stock moved)'
|
||||
]);
|
||||
|
||||
MutationDetail::create([
|
||||
@@ -118,7 +118,7 @@ class MutationTestSeeder extends Seeder
|
||||
'product_id' => $products[1]->id,
|
||||
'quantity_requested' => 6.00,
|
||||
'quantity_approved' => 6.00,
|
||||
'notes' => 'Produk completed'
|
||||
'notes' => 'Produk approved & stock moved'
|
||||
]);
|
||||
|
||||
// 5. Mutation dengan status REJECTED
|
||||
@@ -147,8 +147,8 @@ class MutationTestSeeder extends Seeder
|
||||
$this->command->info('Test mutations created successfully!');
|
||||
$this->command->info('- Mutation SENT: ' . $mutation1->mutation_number);
|
||||
$this->command->info('- Mutation RECEIVED: ' . $mutation2->mutation_number);
|
||||
$this->command->info('- Mutation APPROVED: ' . $mutation3->mutation_number);
|
||||
$this->command->info('- Mutation COMPLETED: ' . $mutation4->mutation_number);
|
||||
$this->command->info('- Mutation APPROVED (1): ' . $mutation3->mutation_number);
|
||||
$this->command->info('- Mutation APPROVED (2): ' . $mutation4->mutation_number);
|
||||
$this->command->info('- Mutation REJECTED: ' . $mutation5->mutation_number);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user