Added private_getDurationFromCost()
This commit is contained in:
		| @@ -55,11 +55,16 @@ private: | ||||
|     PaymentMethod getPaymentMethodId(Configuration const *cfg); | ||||
|     int getMinimalParkingTime(Configuration const *cfg, PaymentMethod methodId); | ||||
|     int getMaximalParkingTime(Configuration const *cfg, PaymentMethod methodId); | ||||
|     uint32_t getMinimalParkingPrice(Configuration const *cfg, PaymentMethod methodId); | ||||
|  | ||||
|     Ticket private_GetCostFromDuration(Configuration const* cfg, | ||||
|                                        QDateTime const &start, | ||||
|                                        int durationMinutes, | ||||
|                                        bool prepaid = false); | ||||
|     Ticket private_GetDurationFromCost(Configuration *cfg, | ||||
|                                        QDateTime const &start, | ||||
|                                        uint32_t price, | ||||
|                                        bool prepaid = false); | ||||
|  | ||||
|     bool checkDurationMinutes(int minParkingTime, int maxParkingTime, | ||||
|                               int durationMinutes); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user