Skip to content

Commit

Permalink
fix: patient null error in healthcare_services_to_invoice
Browse files Browse the repository at this point in the history
if show_title_field_in_link in Patient doc is checked
  • Loading branch information
akashkrishna619 committed Apr 25, 2024
1 parent fa60b98 commit 0cb81bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion healthcare/public/js/sales_invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var get_healthcare_services_to_invoice = function(frm) {
'patient': frm.doc.patient
});
dialog.fields_dict["patient"].df.onchange = () => {
var patient = dialog.fields_dict.patient.input.value;
var patient = dialog.get_value("patient");
if(patient && patient!=selected_patient){
selected_patient = patient;
var method = "healthcare.healthcare.utils.get_healthcare_services_to_invoice";
Expand Down

0 comments on commit 0cb81bf

Please sign in to comment.