I’m using a freshly installed Healthcare v16 with DB restored from Healthcare v15 and migrated. The problem I am facing is that when I create an invoice for the pharmacy and run Get Items From Prescriptions, it brings up the items but some of them (usually the first and last) have the rates and the others don’t. But individually, all of them have the rates and that is confirmed if I get them one or two at a time. So the maximum number of items that I can get with the rates is two. If I get three items the middle one is without rate.
Has anyone faced this problem before? Any help / suggestions will be greatly appreciated.
From what I can gather from online resources, this seems to be a problem with asynchronous behavior of the get function. Surprising that no one has experienced this problem.
I cannot reproduce this on version 16.6 of healthcare module. Can you double check if item price exists for the said items?
We’re using Version 16.5.2. I know that the item prices exist for all items because if I choose any 1 or 2 items the rates come up fine. But if I choose more items, the 1st and last have the rates but all the items in the middle do not.
Did you try this with at least 4 or 5 items in 16.6?
i can see this happening, will fix it soon
Hi @anjukarl , thanks for notifiying this issue. Fix is up here: fix(sales-invoice): serialize prescription row inserts to avoid rate race by Sajinsr · Pull Request #1228 · earthians/marley · GitHub . Will be in the next release once it’s merged.
Hi @anjukarl , this has been fixed and released in version 16. Please update the Healthcare app to the latest version and check it out.
@Sajin_SR @akurungadam Thank you guys. ![]()