Implement review fixes
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
Place files here.
|
||||||
@@ -162,16 +162,16 @@ Returns:
|
|||||||
*/
|
*/
|
||||||
inline util::Map<std::string, const ServiceBooking*> filterActiveServiceBookings(util::Map<std::string, const ServiceBooking*> currentBookings)
|
inline util::Map<std::string, const ServiceBooking*> filterActiveServiceBookings(util::Map<std::string, const ServiceBooking*> currentBookings)
|
||||||
{
|
{
|
||||||
util::Map<std::string, const ServiceBooking*> activeServcieBookings;
|
util::Map<std::string, const ServiceBooking*> activeServiceBookings;
|
||||||
for (int iterator = 0; iterator < currentBookings.getSize(); iterator++)
|
for (int iterator = 0; iterator < currentBookings.getSize(); iterator++)
|
||||||
{
|
{
|
||||||
const ServiceBooking* currentServiceBooking = currentBookings.getValueAt(iterator);
|
const ServiceBooking* currentServiceBooking = currentBookings.getValueAt(iterator);
|
||||||
if (currentServiceBooking && currentServiceBooking->getStatus() == util::ServiceJobStatus::PENDING)
|
if (currentServiceBooking && currentServiceBooking->getStatus() == util::ServiceJobStatus::PENDING)
|
||||||
{
|
{
|
||||||
activeServcieBookings.insert(currentServiceBooking->getId(), currentServiceBooking);
|
activeServiceBookings.insert(currentServiceBooking->getId(), currentServiceBooking);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return activeServcieBookings;
|
return activeServiceBookings;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -479,10 +479,10 @@ inline void displayInvoices(util::Map<std::string, const Invoice*> currentUserIn
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Null invoice encountered while displaying invoices.");
|
throw std::runtime_error("Null invoice encountered while displaying invoices.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
util::pressEnter();
|
util::pressEnter();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user