re-tested neuhauser-linisinger-maschinenbau
This commit is contained in:
parent
56fc95e33c
commit
1c801f1053
@ -566,18 +566,18 @@ int main() {
|
|||||||
QDateTime start = s.addSecs(offset * 60);
|
QDateTime start = s.addSecs(offset * 60);
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate);
|
//qCritical() << "start" << start.toString(Qt::ISODate);
|
||||||
|
|
||||||
|
// note: prepaid == false (!)
|
||||||
// double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 4, start, end, marken[duration], nextDay, prePaid);
|
// double cost = Calculator::GetInstance().GetCostFromDuration(&cfg, 4, start, end, marken[duration], nextDay, prePaid);
|
||||||
|
|
||||||
struct price_t price;
|
struct price_t price;
|
||||||
//if (compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price)) {
|
if (compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price, prePaid)) {
|
||||||
compute_price_for_parking_ticket(&cfg, start, marken[duration], end, &price);
|
|
||||||
double cost = price.netto;
|
double cost = price.netto;
|
||||||
|
|
||||||
qCritical() << "start" << start.toString(Qt::ISODate)
|
qCritical() << "start" << start.toString(Qt::ISODate)
|
||||||
<< "end" << end.toString(Qt::ISODate)
|
<< "end" << end.toString(Qt::ISODate)
|
||||||
<< "duration" << marken[duration]
|
<< "duration" << marken[duration]
|
||||||
<< "cost" << cost;
|
<< "cost" << cost;
|
||||||
//}
|
}
|
||||||
|
|
||||||
//std::string d = Calculator::GetInstance().GetDurationFromCost(&cfg, 4, start.toString(Qt::ISODate).toStdString().c_str(), cost);
|
//std::string d = Calculator::GetInstance().GetDurationFromCost(&cfg, 4, start.toString(Qt::ISODate).toStdString().c_str(), cost);
|
||||||
//qCritical() << "start" << start.toString(Qt::ISODate)
|
//qCritical() << "start" << start.toString(Qt::ISODate)
|
||||||
|
Loading…
Reference in New Issue
Block a user