addCultivationToCatalogue
@svenvw/fdm-source / fdm-core/src / addCultivationToCatalogue
Function: addCultivationToCatalogue()
addCultivationToCatalogue(
fdm
,properties
):Promise
<void
>
Defined in: fdm-core/src/cultivation.ts:102
Alpha
Adds a new cultivation to the catalogue.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
properties
The properties of the cultivation to add. This includes fields like b_lu_catalogue
, b_lu_name
, b_lu_harvestable
, and optionally b_lu_variety_options
to specify available varieties.
b_lu_catalogue
any
b_lu_croprotation
any
b_lu_harvestable
any
b_lu_hcat3
any
b_lu_hcat3_name
any
b_lu_hi
any
b_lu_n_harvestable
any
b_lu_n_residue
any
b_lu_name
any
b_lu_name_en
any
b_lu_rest_oravib
any
b_lu_source
any
b_lu_variety_options
any
b_lu_yield
any
b_n_fixation
any
Returns
Promise
<void
>
A Promise that resolves when the cultivation is added.
Throws
If the insertion fails.