nicolas-fricke / transfair

[DEPRECATED] Second, Rails-based approach to a web application for the Transfair-Project
https://www.transfair.co
3 stars 3 forks source link

When a new job is submitted, I want to calculate the price for the client #68

Closed briodf closed 5 years ago

briodf commented 12 years ago

variable

category_price duration: hh:mm:ss starting_point: hh:mm:ss ending_point: hh:mm:ss

if starting_point= 0: if ending_point=0 price=category_duration if ending_point=!0 time_allocated=category_price_starting_point

if starting_point=!0 if ending_point=0 price=category_price*(duration-starting_point)

if ending_point=!0 price=category_price*(ending_point-starting_point)