diff --git a/app/Views/billing/opd_prescription_basic.php b/app/Views/billing/opd_prescription_basic.php
index a8657f1..cc45f18 100644
--- a/app/Views/billing/opd_prescription_basic.php
+++ b/app/Views/billing/opd_prescription_basic.php
@@ -799,12 +799,7 @@
-
Substitute Medicines
@@ -1083,7 +1078,7 @@
var legacyInvestigationProfiles = {};
var legacyInvestigationProfileList = [];
var investigationBatchActive = false;
- var activeMedicineScope = 'active';
+ var activeMedicineScope = 'all';
var medicineSuggestRows = [];
var medicineDoseMasterCache = { dose: [], when: [], freq: [], where: [] };
var investigationProfiles = {
@@ -4570,7 +4565,7 @@
$('#crgc_med_suggest').html('');
return;
}
- apiGet('= base_url('Opd_prescription/medicine_search') ?>?q=' + encodeURIComponent(q) + '&scope=active', function(data) {
+ apiGet('= base_url('Opd_prescription/medicine_search') ?>?q=' + encodeURIComponent(q) + '&scope=all', function(data) {
crgcMedSuggestRows = data.rows || [];
var html = '';
crgcMedSuggestRows.forEach(function(row) {
@@ -4838,16 +4833,7 @@
$('#med_name').closest('.col-md-4').append('');
}
- $(document).on('click', '.med-scope-btn', function() {
- activeMedicineScope = ($(this).data('scope') || 'active').toString();
- $('.med-scope-btn').removeClass('active');
- $(this).addClass('active');
- var currentVal = ($('#med_name').val() || '').trim();
- if (currentVal.length >= 2) {
- $('#med_name').trigger('input');
- }
- });
$('#btn_toggle_med_favorite').on('click', function() {
var medId = parseInt($(this).data('med-id') || '0', 10);