Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6175 prescription price columns #6356

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

zachariah-at-msupply
Copy link
Contributor

@zachariah-at-msupply zachariah-at-msupply commented Jan 30, 2025

Fixes #6175

πŸ‘©πŸ»β€πŸ’» What does this PR do?

Adds cost and sell price columns to the prescription view.

image

I removed some of the other columns from the screenshot to highlight the new ones that are available. All the original columns are still available but the 'line total' column is now 'sell price'.

πŸ’Œ Any notes for the reviewer?

Sup, how's it going?

πŸ§ͺ Testing

  • Make sure you have multiple batches of the same medecine, with different sell and cost prices.
  • Create a prescription and sdd both of those different batches of the same medecine to it.
  • Go to the prescription's detail view, and check that the sell price column = sell price of one batch * quantity of packs of that batch being dispensed + sell price of the other batch * quantity of packs of that other batch being dispensed, and similar with the cost column.

πŸ“ƒ Documentation

  • Part of an epic: documentation will be completed for the feature as a whole
  • No documentation required: no user facing changes or a bug fix which isn't a change in behaviour
  • These areas should be updated or checked: New sell and cost price columns in the Prescriptions detail view.

@github-actions github-actions bot added this to the v2.6.0 milestone Jan 30, 2025
@github-actions github-actions bot added Team Piwakawaka James, Carl, John, Zachariah feature: dispensing labels Jan 30, 2025
Copy link

github-actions bot commented Jan 30, 2025

Bundle size difference

Comparing this PR to main

Old size New size Diff
5.26 MB 5.26 MB 850 B (0.02%)

@jmbrunskill jmbrunskill self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: dispensing Team Piwakawaka James, Carl, John, Zachariah
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dispensing: Cost price in Prescription Detail View
3 participants