Skip to content

Commit

Permalink
fix: codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Oct 8, 2020
1 parent caf6e5b commit b5c4f16
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ frappe.ui.form.on('Therapy Plan Template', {
filters: {
'is_billable': 1
}
}
};
});
},

Expand All @@ -18,7 +18,7 @@ frappe.ui.form.on('Therapy Plan Template', {
frm.doc.therapy_types.forEach((d) => {
if (d.no_of_sessions) total_sessions += cint(d.no_of_sessions);
if (d.amount) total_amount += flt(d.amount);
})
});
frm.set_value('total_sessions', total_sessions);
frm.set_value('total_amount', total_amount);
frm.refresh_fields();
Expand All @@ -38,7 +38,7 @@ frappe.ui.form.on('Therapy Plan Template Detail', {
row.amount = flt(row.rate) * cint(row.no_of_sessions);
frm.refresh_field('therapy_types');
frm.trigger('set_totals');
})
});
},

no_of_sessions: function(frm, cdt, cdn) {
Expand Down

0 comments on commit b5c4f16

Please sign in to comment.