Skip to main content

getGrazingIntention

@svenvw/fdm-source


@svenvw/fdm-source / fdm-core/src / getGrazingIntention

Function: getGrazingIntention()

getGrazingIntention(fdm, principal_id, b_id_farm, b_grazing_intention_year): Promise<boolean>

Defined in: fdm-core/src/grazing_intention.ts:153

Alpha

Retrieves the grazing intention for a specific farm and year.

Parameters

fdm

any

The FDM instance providing the connection to the database.

principal_id

any

The ID of the principal making the request.

b_id_farm

any

The unique identifier of the farm.

b_grazing_intention_year

any

The year to retrieve the grazing intention for.

Returns

Promise<boolean>

A Promise resolving to a boolean representing the grazing intention. Returns false if no intention is found.