setGrazingIntention
@svenvw/fdm-source / fdm-core/src / setGrazingIntention
Function: setGrazingIntention()
setGrazingIntention(
fdm,principal_id,b_id_farm,b_grazing_intention_year,b_grazing_intention):Promise<void>
Defined in: fdm-core/src/grazing_intention.ts:20
Alpha
Sets a grazing intention for a farm for a specific year. This will create a new record if one does not exist, or update the existing one.
Parameters
fdm
any
The FDM instance providing the connection to the database.
principal_id
any
The unique identifier of the principal performing the operation.
b_id_farm
any
Identifier of the farm.
b_grazing_intention_year
any
The year of the grazing intention.
b_grazing_intention
any
The grazing intention (true or false).
Returns
Promise<void>
A promise that resolves when the operation is complete.