Minor: removed some debug output.
This commit is contained in:
parent
f9cc3af473
commit
dffc6e2a03
@ -1477,7 +1477,6 @@ bool Configuration::isDayIncludedAsSpecialDay(uint64_t businessHours, QDateTime
|
||||
|
||||
if (isSpecialDay(dt)) {
|
||||
bool const &r = ((businessHours & BusinessHours::OFFICIAL_HOLIDAY) == BusinessHours::OFFICIAL_HOLIDAY);
|
||||
qCritical() << "XXXXXXXXXXXXXXXXXX r" << r << businessHours;
|
||||
return r;
|
||||
}
|
||||
|
||||
@ -1584,6 +1583,8 @@ int getPaymentOptionIndex(Configuration const &cfg, QDateTime const &dt) {
|
||||
|
||||
int const numOptions = cfg.getAllPaymentOptions().size();
|
||||
|
||||
// qCritical() << __func__ << ":" << __LINE__ << "numOptions" << numOptions;
|
||||
|
||||
for (int opt=0; opt < numOptions; ++opt) {
|
||||
uint64_t const pop_business_hours = cfg.getPaymentOptions(opt).pop_business_hours;
|
||||
|
||||
@ -1594,6 +1595,8 @@ int getPaymentOptionIndex(Configuration const &cfg, QDateTime const &dt) {
|
||||
// QDateTime const dt = QDateTime::currentDateTime();
|
||||
int const dayOfWeek = dt.date().dayOfWeek();
|
||||
|
||||
// qCritical() << __func__ << ":" << __LINE__ << "dayOfWeek" << dayOfWeek;
|
||||
|
||||
if (isHoliday(cfg, dt)) {
|
||||
if (pop_business_hours & BusinessHours::OFFICIAL_HOLIDAY) {
|
||||
return opt;
|
||||
@ -1632,6 +1635,7 @@ int getPaymentOptionIndex(Configuration const &cfg, QDateTime const &dt) {
|
||||
} break;
|
||||
case (int)Qt::Sunday: {
|
||||
if (pop_business_hours & BusinessHours::SUN) {
|
||||
qCritical() << __func__ << ":" << __LINE__ << "opt" << opt;
|
||||
return opt;
|
||||
}
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user