Commit 05241d29 by 宁斌

1、營業金額淨值計算問題

parent ba4a36e5
......@@ -59,7 +59,6 @@ public class MyResponseErrorListener implements ResponseErrorListener {
ToastUtils.show(context, msg);
}
}
private String convertStatusCode(Context context, HttpException httpException) {
String msg = null;
if (httpException.code() == 500) {
......
......@@ -728,12 +728,13 @@ public class DownloadPresenter extends BasePresenter<DownloadContract.Model, Dow
}
private String[] getDownloadUrls(int restaurantId) {
String[] urls = new String[urlList.length];
for (int i = 0; i < urlList.length; i++) {
if (i != 0) {
urlList[i] += "?restaurantId=" + restaurantId;
urls[i] = urlList[i] += "?restaurantId=" + restaurantId;
}
}
return urlList;
return urls;
}
private List<DownloadRequest> getDownloadRequests(String[] urls, int restaurantId) {
......
......@@ -134,7 +134,7 @@ public class BusinessReportPresenter extends BasePresenter<BusinessReportContrac
//服務費和貼士
double extraIncome = MoneyUtil.sum(dataBean.getScamount(), dataBean.getTipsPrice());
//"營業金額淨值"為項目銷售總金額-折扣+服務費-賬單小數-簽單
businessBeans.add(new BusinessBean(itemNames[5], String.valueOf(MoneyUtil.sub(MoneyUtil.sum(dataBean.getPrices(), extraIncome), expenditure))));
businessBeans.add(new BusinessBean(itemNames[5], String.valueOf(MoneyUtil.sub(MoneyUtil.sum(dataBean.getPrices(), extraIncome), Math.abs(expenditure)))));
businessBeans.add(new BusinessBean(itemNames[6], String.valueOf(dataBean.getTipsPrice())));
businessBeans.add(new BusinessBean(itemNames[7], String.valueOf(dataBean.getTotalMeals())));
businessBeans.add(new BusinessBean(itemNames[8], String.valueOf(dataBean.getTakeawayTotal())));
......
......@@ -367,6 +367,9 @@ public class AddTableFragment extends BaseFragment<AddTablePresenter> implements
private String getAreaName() {
String areaName = mTableItem.getRegionName();
if(TextUtils.isEmpty(areaName)){
areaName = "默認";
}
currentAreaId = mTableItem.getRegionId();
return areaName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment