Booking Costs Definitions
Booking Cost Overview
The Booking Cost record contains:
Cost category https://bigdigit.atlassian.net/browse/WG-592
Cost type (*)
Cost sequence (for ordering) https://bigdigit.atlassian.net/browse/WG-592
Additional notes required (*)
Additional notes help text (*)
Can duplicate (*)
Can have more than one unit (*)
Cost represents fuel surcharge
Cost subject to fuel surcharge
Covered by https://bigdigit.atlassian.net/browse/WG-568, https://bigdigit.atlassian.net/browse/WG-566, https://bigdigit.atlassian.net/browse/WG-778
Fields
Cost Category
Cost Category is the basic category of costings related to the job and work being done for the job. It is a system pre-populated list specific to each client.
Cost Type
Cost type is selectable in the bookings screen and represents a cost, eg. delivery of an item. It is selectable from within the selected Cost Category.
Can Duplicate
Can the selected cost type be added to the list of costs on the booking more than once within that category.
Can have more than one Unit
If unchecked, the quantity is 1 and can't be changed at all. If checked, the quantity value can be any number.
Additional Information Required
Indicates whether additional information must be entered. If this is set to true then the booking costs will have the additional field enabled, labelled with the “additional information label”. The information is free format but must be entered.
Additional Information Label
Label for additional Information when the cost line is added in the Booking Financials screen. Label has to be entered if the additional information label has been switched on.
Cost Represents Fuel Surcharge
A cost with this option selected is a fuel surcharge where the additional information contains the surcharge rate. This rate is applied to all lines which are subject to a fuel surcharge. https://bigdigit.atlassian.net/browse/WG-778
Cost Subject to Fuel Surcharge
A cost with this option selected is a subject to the fuel surcharge line, should it have been entered. https://bigdigit.atlassian.net/browse/WG-778
Validation
Deletion of a Cost Type is valid only if the cost type has not been used on any bookings.
The options flagged as “Cost Represents Fuel surcharge” and “Cost Subject to Fuel Surcharge” are exclusive and therefore both cannot be selected for the same cost type.
A record flagged as “Cost Represents Fuel surcharge” may be added only once per cost category.
If it has already been added, the field should be disabled.
If the field “Cost Subject to Fuel Surcharge” has been selected, this field should be disabled.
Note: In the booking costs themselves fuel surcharge additional information must be a real number representing the surcharge only. In the booking costs if it is not a real number it cannot be used to calculate the fuel surcharge.
A record flagged as “Cost Subject to Fuel surcharge” may be added to as many cost types as necessary.
If the field “Cost Represents Fuel Surcharge” has been selected, this field should be disabled.
It is acceptable for a cost type to have neither “Cost Represents Fuel surcharge” nor “Cost Subject to Fuel Surcharge” selected.
Domain Model
https://bigdigit.atlassian.net/wiki/spaces/TD/pages/3458760745
https://bigdigit.atlassian.net/wiki/spaces/TD/pages/3519676497