Minor: add some (commented out) debug output -> used for debugging.
This commit is contained in:
		@@ -149,6 +149,10 @@ int CALCULATE_LIBRARY_API compute_product_price(Configuration const *cfg,
 | 
				
			|||||||
                QTime const &startTime = p.getTimeStart();
 | 
					                QTime const &startTime = p.getTimeStart();
 | 
				
			||||||
                QTime const &endTime = p.getTimeEnd();
 | 
					                QTime const &endTime = p.getTimeEnd();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                // qCritical() << __LINE__ << startTime.toString(Qt::ISODate);
 | 
				
			||||||
 | 
					                // qCritical() << __LINE__ << endTime.toString(Qt::ISODate);
 | 
				
			||||||
 | 
					                // qCritical() << __LINE__ << start.toString(Qt::ISODate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (start.time() >= startTime && start.time() < endTime) {
 | 
					                if (start.time() >= startTime && start.time() < endTime) {
 | 
				
			||||||
                    product_price = p.getProductPrice();
 | 
					                    product_price = p.getProductPrice();
 | 
				
			||||||
                    if (productStart && productEnd) {
 | 
					                    if (productStart && productEnd) {
 | 
				
			||||||
@@ -512,10 +516,16 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket(
 | 
				
			|||||||
            calcState = Calculator::GetInstance().isParkingAllowed(tariff, start_parking_time,
 | 
					            calcState = Calculator::GetInstance().isParkingAllowed(tariff, start_parking_time,
 | 
				
			||||||
                                                                   netto_parking_time, paymentOptionIndex);
 | 
					                                                                   netto_parking_time, paymentOptionIndex);
 | 
				
			||||||
            if (calcState.getStatus() == CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME) {
 | 
					            if (calcState.getStatus() == CalcState::State::OUTSIDE_ALLOWED_PARKING_TIME) {
 | 
				
			||||||
 | 
					                // qCritical() << "(" << __func__ << ":" << __LINE__ << ")"
 | 
				
			||||||
 | 
					                //             << calcState.toString();
 | 
				
			||||||
                return calcState;
 | 
					                return calcState;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            cost = Calculator::GetInstance().GetCostFromDuration(tariff, start_parking_time, netto_parking_time, paymentOptionIndex);
 | 
					            cost = Calculator::GetInstance().GetCostFromDuration(tariff, start_parking_time, netto_parking_time, paymentOptionIndex);
 | 
				
			||||||
            end_parking_time = start_parking_time.addSecs(netto_parking_time*60);
 | 
					            end_parking_time = start_parking_time.addSecs(netto_parking_time*60);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            // qCritical() << "(" << __func__ << ":" << __LINE__ << ")"
 | 
				
			||||||
 | 
					            //             << "end_parking_time" << end_parking_time.toString(Qt::ISODate);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            cost = Calculator::GetInstance().GetCostFromDuration(
 | 
					            cost = Calculator::GetInstance().GetCostFromDuration(
 | 
				
			||||||
                        tariff,
 | 
					                        tariff,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user