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

Dispensing Payments Plugin #6290

Open
7 tasks
Tracked by #6000
jmbrunskill opened this issue Jan 27, 2025 · 0 comments
Open
7 tasks
Tracked by #6000

Dispensing Payments Plugin #6290

jmbrunskill opened this issue Jan 27, 2025 · 0 comments
Labels
feature: dispensing Team Piwakawaka James, Carl, John, Zachariah
Milestone

Comments

@jmbrunskill
Copy link
Contributor

jmbrunskill commented Jan 27, 2025

Create a plugin to record payment information for dispensing

Extend #6176 with a plugin.

This should show a component to enter payment details

Image

Notes

  • Add dedicated Payments

    • Add a panel dedicated to price split showing the total price of the prescription (sell price per item x units)

      • Total to be paid by patient
      • Outstanding amount : gets automatically updated when the Amount paid field is edited
      • Do not add a field for Credit
    • Add a panel for payments

      • Field : Payment type (dropdown menu + cash by default)
      • Field : Amount paid (manually editable)
      • Field: Change required
      • Field : Note (manually editable)
      • The invoice cannot be finalised if the outstanding amount is different from the paid amount.
      • Print receipt

Tasks...

  • Implement the ‘Receive payments from prescription window’ store preference
  • Add a payments tab if the preference (above) is enabled
  • Show
    • Total price of prescription (sell price per item * number of items)
    • Total to be paid by patient
    • Display any active insurance schemes that the patient is enrolled in
    • Policy number
  • Name
  • Policy type
  • Discount rate
  • Insurance drop down
  • Amount paid by insurance
  • Payment type drop down ( cash is the default )
  • Amount paid ( manually editable )
  • The invoice cannot be finalised if the outstanding amount is different from the paid amount
    • Display the ’amount given’ and ‘change to give back’

Acceptance Criteria 🧾

  • If the payment amount is not entered, the user should not be able to save and finalise the dispensing
  • If the payment amount is entered, but less than total value of the dispensing, the user should not be able to save and finalise the dispensing
  • If the payment amount is entered, and equal to or greater than the total value of the dispensing, the user should be able to save and finalise the dispensing
  • If the payment acount is greater than the total value of the dispensing, the user should see the amount of change to be returned ( difference between payment amount and total value of the dispensing)
  • The payment amount should be recorded as plugin data against the invoice
  • The payment amount should be displayed in the payment details section of the invoice (side panel)
  • A print reciept button should be available in the payment modal?

Epic Link 🔗

#6000

Moneyworks Jobcode 🧰

OMS:CIDV

@jmbrunskill jmbrunskill added feature: dispensing Team Piwakawaka James, Carl, John, Zachariah labels Jan 27, 2025
@jmbrunskill jmbrunskill added this to the v2.6.0 milestone Jan 27, 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

No branches or pull requests

1 participant