merge-requests/337/head
hussam al-habibeh 5 years ago
parent cf44e6f77a
commit d099ac9b57

@ -937,14 +937,6 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
// formKey.currentState.save(); // formKey.currentState.save();
// Navigator.pop(context); // Navigator.pop(context);
// openDrugToDrug(); // openDrugToDrug();
if (_selectedMedication
.isNarcotic ==
true) {
DrAppToastMsg.showErrorToast(
"Narcotic medicine can only be prescribed from VIDA");
Navigator.pop(context);
return;
}
if (route == null || if (route == null ||
frequency == null || frequency == null ||
doseTime == null || doseTime == null ||
@ -955,6 +947,15 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
"Please Fill All Fields"); "Please Fill All Fields");
return; return;
} }
if (_selectedMedication
.isNarcotic ==
true) {
DrAppToastMsg.showErrorToast(
"Narcotic medicine can only be prescribed from VIDA");
Navigator.pop(context);
return;
}
if (double.parse( if (double.parse(
strengthController.text) > strengthController.text) >
1000.0) { 1000.0) {

Loading…
Cancel
Save