Third-Culture-Software / bhima

A hospital information management application for rural Congolese hospitals
https://docs.bhi.ma/
GNU General Public License v2.0
218 stars 104 forks source link

Add the medication name and quantity to the voucher description #7790

Open jniles opened 3 days ago

jniles commented 3 days ago

Below is a copy of the voucher receipt for a stock movement. It shows the cost of medication exiting the pharmacy to a patient.

Screenshot 2024-10-17 at 10 06 50 PM

However, the lines "Variation Stock Pharmacy" are not very useful as a memo field. What would be more useful is a description of why that charge was being incurred. We already know the account from the account number.

Instead, I propose we put text such as:

"Distribution of {{number_of_items}} {{unit_type}} of {{item_name}} at {{unit_price}} per unit. ({{number_of_items}} x {{unit_price}} = {{total_price}})".

This would translate to something like this:

"Distribution of 20 comprimes of Quinine 200mg at 250FC per unit. (20 x 250FC = 5000FC)".

And then we would expect to see 5000FC in the "Debit" field. This would allow for a lot easier traceability of the transactions, as well as helping to contextualize the information when looking at the voucher movement by itself, without needing to go to the Stock Movement table.