Skip to content

Conversation

@raufbyrmv8
Copy link
Contributor

Description

This PR addresses TRUNK-6212 by introducing a sort_weight field for order frequencies and ensuring they are sorted when displayed (e.g. in the "Choose Frequency" dropdown).

Changes

  • Added sort_weight column to the order_frequency table via Liquibase.
  • Added sortWeight property to OrderFrequency and Hibernate mapping.
  • Updated OrderServiceImpl#getOrderFrequencies(...) to sort frequencies by sortWeight.

Issue

https://issues.openmrs.org/browse/TRUNK-6212

<property name="dateChanged" type="java.util.Date" column="date_changed" length="19" />

</class>
</hibernate-mapping>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly do you mind removing these formatting changes please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I’ve removed the unintended formatting changes. Thanks for pointing it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants