Methods
-
default()
-
Gives a good default revenue object
Returns:
A default revenue (without an ID, position, or year_id)
- Type
- revenue
-
sanitize(revenue)
-
Sanitizes the given revenue into a valid API revenue. This intentionally excludes
crop_names
, as we usecrop_ids
to definecrop_names
.Parameters:
Name Type Description revenue
revenue The revenue to sanitize
Returns:
The sanitized revenue
- Type
- revenue