Function: getDoseForField()
getDoseForField(
__namedParameters
):Promise
<Dose
>
Defined in: fdm-calculator/src/doses/get-dose-field.ts:24
Calculates the total NPK dose applied to a specific field.
This function retrieves fertilizer applications, obtains field details to determine the associated farm ID, and fetches the properties of the fertilizers used. It then computes the total NPK dose based on the collected data.
Parameters
__namedParameters
b_id
string
fdm
FdmType
principal_id
PrincipalId
Returns
Promise
<Dose
>
A Promise resolving to the calculated NPK dose for the field.
Throws
If retrieving data or calculating the dose fails.