getPaymentOptionIndex(): add start-time parameter
This commit is contained in:
@@ -1533,7 +1533,7 @@ int Configuration::getPaymentOptionIndex(PERMIT_TYPE permitType) const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int getPaymentOptionIndex(Configuration const &cfg) {
|
||||
int getPaymentOptionIndex(Configuration const &cfg, QDateTime const &dt) {
|
||||
|
||||
int const numOptions = cfg.getAllPaymentOptions().size();
|
||||
|
||||
@@ -1544,7 +1544,7 @@ int getPaymentOptionIndex(Configuration const &cfg) {
|
||||
return opt;
|
||||
}
|
||||
|
||||
QDateTime const dt = QDateTime::currentDateTime();
|
||||
// QDateTime const dt = QDateTime::currentDateTime();
|
||||
int const dayOfWeek = dt.date().dayOfWeek();
|
||||
|
||||
if (isHoliday(cfg, dt)) {
|
||||
|
Reference in New Issue
Block a user