Skip to main content

updateFertilizerApplication

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-core/src / updateFertilizerApplication

Function: updateFertilizerApplication()

updateFertilizerApplication(fdm, principal_id, p_app_id, p_id, p_app_amount_display, p_app_method, p_app_date): Promise<void>

Defined in: fdm-core/src/fertilizer.ts:837

Updates an existing fertilizer application record.

Parameters

fdm

PgDatabase

The FDM instance providing the connection to the database. The instance can be created with createFdmServer.

principal_id

any

The ID of the principal performing the update.

p_app_id

any

The unique identifier of the fertilizer application record.

p_id

any

The unique identifier of the associated fertilizer.

p_app_amount_display

number | null | undefined

The amount of fertilizer applied in the display unit.

p_app_method

any

The method used for applying the fertilizer.

p_app_date

any

The date when the fertilizer was applied.

Returns

Promise<void>

Throws

Thrown if the update operation fails due to insufficient permissions or a database error.