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

Loading…
Cancel
Save