msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
20 stars 12 forks source link

Add support for cross_reference items #3938

Open clemens-msupply opened 4 months ago

clemens-msupply commented 4 months ago

Legacy mSupply supports items of type cross_reference.

Cross references refer to alternate names for a certain item, for example, Acetylsalicylic Acid can also be known as Aspirin.

Also see for more information about cross references in mSupply: https://docs.msupply.org.nz/items:adding_a_new_item?s[]=cross&s[]=reference#cross_reference_items

Describe the solution you'd like 🎁

Below tasks can be broken down into separate issues:

Describe alternatives you've considered 💭

Moneyworks Jobcode 🧰

Chris-Petty commented 4 months ago

https://github.com/msupply-foundation/msupply/issues/14726

As is being discussed there, the there was a bug resolved in mobile in 2018 where it had been treating cross reference items just like a normal item and some users used them like a normal item.

So the problem is a data issue, fortunately it seems to affect very few records across our users.

So this issue perhaps has two directions:

  1. Close, because the data will be resolved on the central server.
  2. Be rejigged into really "Supporting" cross reference items, that is to say add the functionality to see cross reference items in item selection lists, and when selected it selects the "referenced" item (e.g. "Panadol" -> "Paracetamol 500mg tablets"). Could be a new issue?

For the rust devs, it's mSupply's equivalent to aliasing a type 😉.

mark-prins commented 4 months ago

@jmbrunskill this may be useful for GAPS? the ability to have a cross-reference item for the Immunisation program

roxy-dao commented 4 months ago

Setting to low priority. But @mark-prins will double check. Maybe to do with item variants?

mark-prins commented 3 months ago

Bumping up the priority a bit - as we'll need this in place when oms central server comes to town. DJ are using cross reference items

andreievg commented 1 month ago

Potentially fixed in og central, would be good to verify at some point (what is fixed ? stock lines linked to cross reference, by footrunner)

andreievg commented 1 day ago

Triage, setting high priority to make sure we don't miss it in the next available slot