Skip to content

feat(fd2): create one plant asset per bed for Transplantings #647

Open

Description

@braughtg

Feature

Modify lib.js in the transplanting entry point (modules/farm_fd2/src/entrypoints/transplanting) so that:

  • If beds are selected, one plant asset is created for each bed.
  • If no beds are selected (either because they were not selected, or because the location does not have beds defined) then one plant asset will be created.

Rationale

See #604.

Further Information

If beds are selected and multiple plant assets are created, then one transplanting log will also have to be created for each plant asset as well. This is because it is the transplanting log, with its movement property set to true that sets the location of the plant asset.

  • If beds are selected, the location (i.e. field or greenhouse) and the selected bed should be indicated in the location property of transplanting log.
  • If no beds are selected, then only the location (i.e. field or greenhouse) should be in the location property of the transplanting log.

The lib.*.unit.cy.js tests will also need to be updated to account for the creation of the additional plant assets.

Activity

  1. added
    enhancement
    on Nov 20, 2026
  2. changed the title [-]feat(fd2): create one plant asset per bed in Transplantings[/-] [+]feat(fd2): create one plant asset per bed for Transplantings[/+] on Nov 20, 2026
  3. added
    fd2
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfd2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions