Showing
1 changed file
with
6 additions
and
4 deletions
| @@ -83,13 +83,15 @@ class _MessageHasOrderFoodPageState extends State<MessageHasOrderFoodPage> { | @@ -83,13 +83,15 @@ class _MessageHasOrderFoodPageState extends State<MessageHasOrderFoodPage> { | ||
| 83 | double sumMemberPrice = 0; | 83 | double sumMemberPrice = 0; |
| 84 | _orderFoodProvider.createdOrderSunModel.cookbooklist.forEach((element) { | 84 | _orderFoodProvider.createdOrderSunModel.cookbooklist.forEach((element) { |
| 85 | sumPrice += | 85 | sumPrice += |
| 86 | - element.specPrice == null ? 0 : double.parse(element.specPrice); | ||
| 87 | - sumMemberPrice += double.parse( | ||
| 88 | - element.specMemberPrice == '0' || element.specMemberPrice == null | 86 | + (element.specPrice == null ? 0 : double.parse(element.specPrice)) * |
| 87 | + int.parse(element.number); | ||
| 88 | + sumMemberPrice += double.parse(element.specMemberPrice == '0' || | ||
| 89 | + element.specMemberPrice == null | ||
| 89 | ? element.specPrice == null | 90 | ? element.specPrice == null |
| 90 | ? '0' | 91 | ? '0' |
| 91 | : element.specPrice | 92 | : element.specPrice |
| 92 | - : element.specMemberPrice); | 93 | + : element.specMemberPrice) * |
| 94 | + int.parse(element.number); | ||
| 93 | }); | 95 | }); |
| 94 | sumPriceShow = | 96 | sumPriceShow = |
| 95 | (NumUtil.getNumByValueDouble(sumPrice, 2)).toStringAsFixed(2); | 97 | (NumUtil.getNumByValueDouble(sumPrice, 2)).toStringAsFixed(2); |
-
Please register or login to post a comment