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