Merge branch 'fix-issues' into 'development'

Procedure update valdation

See merge request Cloud_Solution/doctor_app_flutter!334
merge-requests/335/merge
Mohammad Aljammal 5 years ago
commit 68dc39eb94

@ -731,6 +731,7 @@ class _UpdatePrescriptionFormState extends State<UpdatePrescriptionForm> {
"strength can't be more then 4 digits ");
return;
}
// if(units==null&& updatedDuration==null&&frequencyUpdate==null&&)
updatePrescription(
newStartDate: selectedDate,
newDoseStreangth:

@ -324,6 +324,13 @@ class _AddSelectedProcedureState extends State<AddSelectedProcedure> {
.addSelectedProcedures,
onPressed: () {
//print(entityList.toString());
onPressed:
if (entityList.isEmpty == true) {
DrAppToastMsg.showErrorToast(
"Fill the mandatory procedure details");
return;
}
Navigator.pop(context);
postProcedure(
orderType: selectedType.toString(),

@ -299,11 +299,13 @@ class _UpdateProcedureWidgetState extends State<UpdateProcedureWidget> {
.updateProcedure
.toUpperCase(),
onPressed: () {
// if (entityList.isEmpty == true) {
// DrAppToastMsg.showErrorToast(
// "Fill the mandatory procedure details");
// return;
// }
if (entityList.isEmpty == true &&
widget.remarksController.text ==
widget.remarks) {
DrAppToastMsg.showErrorToast(
"Fill the mandatory procedure details");
return;
}
Navigator.pop(context);
updateProcedure(
orderNo: widget.orderNo,

Loading…
Cancel
Save