Skip to main content

Crops

When to use

Use Crops to register the agronomic model that will be used in production plans.

Pre-conditions

  • Logged in.
  • Organization selected.
  • Resources registered when the crop requires associated inputs or materials.

Sample data used

  • Crop: Alface Crespa Demo.
  • Cycle: value defined as the screen allows.
  • Resources: fictitious inputs created in the Resources module.

Step by step

List crops

  1. Go to /:organizationId/crop/list.
  2. Check existing crops.
  3. Use search, filters, or available actions on the screen when present.

Crop list with records

Expected result: the list shows registered crops or an empty state guiding the first registration.

Register a crop

  1. Go to /:organizationId/crop/register, or use the new-registration action from the list.
  2. Fill in name, cycle, and other required fields shown.
  3. Save the crop.

New crop form

Expected result: the crop becomes available for selection in production plans.

Stages

  1. Open the crop's registration or edit screen.
  2. Fill in the cultivation stages as the UI allows.
  3. Save the changes.

Expected result: stages help guide tasks and follow-up.

Tasks

  1. On the crop screen, locate the associated tasks section.
  2. Register tasks such as preparation, planting, irrigation, or harvest, according to the available fields.
  3. Save.

Expected result: associated tasks can feed operational follow-up when used in plans.

Resources

  1. On the crop screen, locate the resources or inputs section.
  2. Select previously registered resources.
  3. Enter quantities only if the screen requests it.

Expected result: the crop is prepared for consumption calculations when the planning flow uses this data.

Edit crop

  1. Go to /:organizationId/crop/register/:id.
  2. Change only the necessary fields.
  3. Save and return to the listing.

Expected result: the listing reflects the updated data.

Validations and listing actions

  • At least 1 stage is required to save the crop.
  • A task's start day (start_day) must fall within the crop's total cycle.
  • A task's frequency in days (frequency_days) cannot exceed the total cycle.
  • A task's end time must be later than its start time.
  • The listing allows viewing, editing, deleting (with dependency checks), and exporting to Excel/PDF.

Errors and empty states

  • Missing required field: fill in the fields highlighted by the UI.

  • Resources do not appear: register categories, suppliers, and resources first.

  • Empty crop list: happens in new organizations, before the first registration.

    Empty crop list