serenity-health / roadmap

Public roadmap for development of Serenity's apps reported by our community of users
0 stars 1 forks source link

bugfix/free time slot on bill cancelation #30

Closed chris-dare closed 2 years ago

chris-dare commented 2 years ago

Describe the bug Not able to reuse a time slot for a canceled encounter

Impact Money will be lost because patients can't consult with doctors when doctors are available

To Reproduce Steps to reproduce the behavior:

  1. Switch to reception workspace
  2. Start a visit for a patient
  3. Switch to billing workspace
  4. Attempt to cancel the patient's consultation bill
  5. You'll notice that even though the bill has been canceled, the slot is still marked as busy when tried to book another patient for that time

Expected behavior Once we can cancel a bill for a consultation and the time is not yet due, the slot should be freed so that another patient can take it

Screenshots/Screencast N/A

Desktop (please complete the following information):

Additional context N/A

chris-dare commented 2 years ago

@TuyizereBapt, I will update this so it's clearer where you can find this in the code

chris-dare commented 2 years ago

Hi @TuyizereBapt,

In finance.models.ChargeItemCancelation.cancel(*args):