Prescription js error

Situation
In “Prescription” of patient profile don’t work “Save and Dispense” button

Uncaught ReferenceError: disp_quantity is not defined
at dispense (controller.php?prescription&edit&id=15:91)
at controller.php?prescription&edit&id=15:327

Solution
/templates/prescription/general_edit.html
f.encodeURIComponent(disp_quantity.value)
Сorrectly:
encodeURIComponent(f.disp_quantity.value)

OpenEMR Version
5.0.2

1 Like

hi @E-2, thanks for the bug report and fix. Would you like to create a pull request? Pull Requests · openemr/openemr · GitHub

hi @E-2, Prescription js error, typo reported and fixed in forum by stephenwaite · Pull Request #2716 · openemr/openemr · GitHub