Implement review fixes

This commit is contained in:
2026-05-26 21:25:02 +05:30
parent 8268b90d82
commit 665e83d56a
2 changed files with 5 additions and 4 deletions
@@ -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();
}
}
}
} }
/* /*