|
...
|
...
|
@@ -83,13 +83,15 @@ class _MessageHasOrderFoodPageState extends State<MessageHasOrderFoodPage> { |
|
|
|
double sumMemberPrice = 0;
|
|
|
|
_orderFoodProvider.createdOrderSunModel.cookbooklist.forEach((element) {
|
|
|
|
sumPrice +=
|
|
|
|
element.specPrice == null ? 0 : double.parse(element.specPrice);
|
|
|
|
sumMemberPrice += double.parse(
|
|
|
|
element.specMemberPrice == '0' || element.specMemberPrice == null
|
|
|
|
(element.specPrice == null ? 0 : double.parse(element.specPrice)) *
|
|
|
|
int.parse(element.number);
|
|
|
|
sumMemberPrice += double.parse(element.specMemberPrice == '0' ||
|
|
|
|
element.specMemberPrice == null
|
|
|
|
? element.specPrice == null
|
|
|
|
? '0'
|
|
|
|
: element.specPrice
|
|
|
|
: element.specMemberPrice);
|
|
|
|
: element.specMemberPrice) *
|
|
|
|
int.parse(element.number);
|
|
|
|
});
|
|
|
|
sumPriceShow =
|
|
|
|
(NumUtil.getNumByValueDouble(sumPrice, 2)).toStringAsFixed(2);
|
...
|
...
|
|