Skip to content

Commit

Permalink
Merged in RahmanDev (pull request #43)
Browse files Browse the repository at this point in the history
fox errors
  • Loading branch information
R Razaee committed Apr 29, 2021
2 parents 3e328a5 + b2ee197 commit 92d4d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/report/Services/ReportServices.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Future getSendReportEmil(
String url = "$baseUrl/restaurant/report/email-report-orders";
print("url $url");
Map data = {};
if (coupenCode != null) {
if (coupenCode != null && coupenCode != "") {
data['Coupon Code'] = coupenCode;
}
if (resturant != null) {
Expand All @@ -62,7 +62,7 @@ Future getSendReportEmil(
}

if (totalUser != null) {
data['Total Coupon Used'] = totalUser;
data['Total Order Userd Coupon'] = totalUser;
}

log("data $data");
Expand Down
4 changes: 4 additions & 0 deletions lib/modules/report/report.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class _ReportPageState extends State<ReportPage> {
listRest.addAll(snapshot.listResturant.map((e) {
return {"display": "${e.resturantName}", "value": "${e.id}"};
}).toList());
setState(() {
orderResturantId = listRest[0]['value'];
earingResturantId = listRest[0]['value'];
});
});
super.initState();
}
Expand Down

0 comments on commit 92d4d9b

Please sign in to comment.