Fix duplicate OPD prescription print tab opening

This commit is contained in:
DevSoftTech Server 2026-07-10 18:19:10 +05:30
parent 3801610cdf
commit c5236ea2eb

View File

@ -4177,7 +4177,8 @@
}, 8000); }, 8000);
} }
$('#btn_save_rx').on('click', function() { $('#btn_save_rx').off('click.opdRx').on('click.opdRx', function(e) {
e.preventDefault();
savePrescription(false); savePrescription(false);
}); });
@ -4202,15 +4203,18 @@
openPrint(); openPrint();
} }
$('#btn_print0').on('click', function() { $('#btn_print0').off('click.opdRx').on('click.opdRx', function(e) {
e.preventDefault();
openLegacyPrescriptionPrint(0); openLegacyPrescriptionPrint(0);
}); });
$('#btn_print1').on('click', function() { $('#btn_print1').off('click.opdRx').on('click.opdRx', function(e) {
e.preventDefault();
openLegacyPrescriptionPrint(1); openLegacyPrescriptionPrint(1);
}); });
$('#btn_print2').on('click', function() { $('#btn_print2').off('click.opdRx').on('click.opdRx', function(e) {
e.preventDefault();
openLegacyPrescriptionPrint(2); openLegacyPrescriptionPrint(2);
}); });