We're updating the issue view to help you get more done. 

Error when adding CCE item for field that cannot be updated

Description

When adding a new CCE item "Solar with battery", I am not able to save the new item. I receive an error message that "CCE Inventory Item must have voltage stabilizer field", but when I try to add that to the item, the radio buttons are unselectable.

Proposed solution
Summary: Change the logic to say that instead of making those required fields unselectable for solar, that we pre-fill with the "Not applicable" options so that the user doesn't need to manually fill them but that the requirement for having those fields filled is still met.

Acceptance Criteria

  • When selecting "Solar with battery" as equipment type, automatically select "Not Applicable" for Voltage Stabilizer, Voltage Regulator and Backup Generator in the UI for the user

    • All three fields mentioned above (Voltage Stabilizer, Voltage Regulator and Backup Generator) should not be editable by the user while equipment type is "Solar with battery"

  • When a different equipment type is selected, make those fields editable again, but the selections do not have to change

Environment

test.openlmis.org

Status

Assignee

Klaudia Pałkowska

Reporter

Sam Im

Labels

Story Points

2

Time tracking

6h

Epic Link

Components

Sprint

None

Affects versions

3.2.1

Priority

Major