Add overload for IsYearPeriodActive().
Add helpers WeekDaysWorkTimeFrom(), WeekDaysWorkTimeUntil(), isCarryOverSet() sCarryOverNotSet() and getPaymentMethodId().
This commit is contained in:
		| @@ -8,6 +8,7 @@ | ||||
| #include "day_of_week.h" | ||||
| #include "configuration.h" | ||||
| #include "time_range.h" | ||||
| #include "payment_method.h" | ||||
|  | ||||
| #include <QDateTime> | ||||
|  | ||||
| @@ -57,6 +58,7 @@ namespace Utilities { | ||||
| 	/// <param name="currentDateTime"></param> | ||||
| 	/// <returns></returns> | ||||
| 	bool IsYearPeriodActive(Configuration* cfg, struct tm* currentDateTime); | ||||
|     bool IsYearPeriodActive(Configuration const *cfg, QDateTime const ¤tDateTime); | ||||
|  | ||||
| 	/// <summary> | ||||
| 	/// Check permissions | ||||
| @@ -75,4 +77,9 @@ namespace Utilities { | ||||
|  | ||||
|     QTime SpecialDaysWorkTimeFrom(Configuration const *cfg, int specialDayId); | ||||
|     QTime SpecialDaysWorkTimeUntil(Configuration const *cfg, int specialDayId); | ||||
|     QTime WeekDaysWorkTimeFrom(std::multimap<int, ATBWeekDaysWorktime>::const_iterator itr); | ||||
|     QTime WeekDaysWorkTimeUntil(std::multimap<int, ATBWeekDaysWorktime>::const_iterator itr); | ||||
|     bool isCarryOverSet(Configuration const *cfg, PaymentMethod paymentMethodId); | ||||
|     bool isCarryOverNotSet(Configuration const *cfg, PaymentMethod paymentMethodId); | ||||
|     PaymentMethod getPaymentMethodId(Configuration const *cfg); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user