update processing,customer and staff

This commit is contained in:
tzw
2021-10-11 17:09:47 +06:30
parent bfa6b8c2ed
commit 8df11b70a0
22 changed files with 158 additions and 59 deletions

View File

@@ -105,6 +105,10 @@ class _CargoEditorState extends State<CargoEditor> {
}
_save() async {
if (_rateController.text == "") {
showMsgDialog(context, "Error", "Please insert rate");
return;
}
setState(() {
_isLoading = true;
});

View File

@@ -118,6 +118,16 @@ class _CustomEditorState extends State<CustomEditor> {
}
_save() async {
if (_feeController.text == "") {
showMsgDialog(context, "Error", "Please insert fee");
return;
}
if (_shipmentRateController.text == "") {
showMsgDialog(context, "Error", "Please insert shipment rate");
return;
}
setState(() {
_isLoading = true;
});

View File

@@ -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;
});