Commit 5919420b authored by adnansetiawan's avatar adnansetiawan

fixing calculation of total parkir

parent ea7ee91a
Pipeline #27271 passed with stages
in 6 minutes and 7 seconds
......@@ -30,7 +30,8 @@ namespace EasyParking.Core
{
if (Slot.Zona.Rate == null)
return 0;
return (Slot.Zona.Rate.Price * Duration.Hours) + Slot.Zona.Rate.Price;
return ((int)Math.Ceiling(Duration.TotalHours)) * Slot.Zona.Rate.Price;
}
}
public User InputedBy { get; set; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment