Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e0e57c00d8 | |||
| a3061f4749 | |||
| bb2fa84316 | |||
| f02017ceef | |||
| 35efedc481 | |||
| 6f02f1db44 |
@@ -736,7 +736,7 @@ inline std::string selectJobCardToUpdate(util::Map<std::string, const JobCard*>&
|
||||
util::Map<int, const JobCard* > incompleteJobCards;
|
||||
if (assignedJobCards.getSize() == 0)
|
||||
{
|
||||
std::cout << "\nNo jobs available.\n\n";
|
||||
std::cout << "No jobs available.\n\n";
|
||||
return "";
|
||||
}
|
||||
int currentIndex = 1;
|
||||
@@ -744,12 +744,12 @@ inline std::string selectJobCardToUpdate(util::Map<std::string, const JobCard*>&
|
||||
if (selectedJobStatusType == util::ServiceJobStatus::STARTED)
|
||||
{
|
||||
util::clear();
|
||||
std::cout << "Select a job to mark as In Progress\n";
|
||||
std::cout << "Select a job to update to Inprogress\n";
|
||||
}
|
||||
else if (selectedJobStatusType == util::ServiceJobStatus::IN_PROGRESS)
|
||||
{
|
||||
util::clear();
|
||||
std::cout << "Select a job to mark as Completed\n";
|
||||
std::cout << "Select a job to update to Completed\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -780,7 +780,7 @@ inline std::string selectJobCardToUpdate(util::Map<std::string, const JobCard*>&
|
||||
incompleteJobCards.insert(currentIndex++, currentJobCard);
|
||||
}
|
||||
}
|
||||
std::cout << "Enter the job index to update: ";
|
||||
std::cout << "Select the Job Card to Update (Index): ";
|
||||
util::read(choice);
|
||||
int selectedJobCardIndex = incompleteJobCards.find(choice);
|
||||
if (selectedJobCardIndex != -1)
|
||||
|
||||
@@ -121,7 +121,7 @@ void TechnicianMenu::updateJobStatus()
|
||||
std::string selectedJobID;
|
||||
util::ServiceJobStatus selectedJobStatus = util::ServiceJobStatus::PENDING;
|
||||
util::Map<std::string, const JobCard*> assignedJobCards = m_controller.getJobCardsByUser();
|
||||
std::cout << "Select the type of job you want to update:\n1.Started\n2.In Progress\nChoice: ";
|
||||
std::cout << "Select the type of job you want to update\n1.Started\n2.Inprogress\nChoice: ";
|
||||
util::read(choice);
|
||||
if (choice == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user