update processing,customer and staff
This commit is contained in:
@@ -107,6 +107,16 @@ class _DiscountByWeightEditorState extends State<DiscountByWeightEditor> {
|
||||
}
|
||||
|
||||
_save() async {
|
||||
if (_weightController.text == "") {
|
||||
showMsgDialog(context, "Error", "Please insert weight");
|
||||
return;
|
||||
}
|
||||
|
||||
if (_discountController.text == "") {
|
||||
showMsgDialog(context, "Error", "Please insert discount rate");
|
||||
return;
|
||||
}
|
||||
|
||||
setState(() {
|
||||
_isLoading = true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user