|
@@ -1031,16 +1031,17 @@ void ShowSummaryPage()
|
|
|
pDcChargingInfo = (struct ChargingInfoData *)GetDcChargingInfoData(pSysInfo->CurGunSelected);
|
|
|
|
|
|
// Show Money
|
|
|
- if (ShmDcCommonData->pGunInfo[pSysInfo->CurGunSelected].finalcost_flag &&
|
|
|
- ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].RemainAmount > 0) {
|
|
|
- ShowSummaryMoney(_Summary_total_money, (int)ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].RemainAmount);
|
|
|
- //ShowSummaryMoney(_Summary_cal_Total_money, (int)pDcChargingInfo->ChargingFee);
|
|
|
- ShowSummaryMoney(_Summary_cal_discount, (int)ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].Discount);
|
|
|
- } else {
|
|
|
+ if (!ShmDcCommonData->pGunInfo[pSysInfo->CurGunSelected].finalcost_flag &&
|
|
|
+ ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].RemainAmount == 0 &&
|
|
|
+ ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].Discount == 0 ) {
|
|
|
// 未收到Final cost
|
|
|
ShowSummaryMoneyDash(_Summary_total_money);
|
|
|
//ShowSummaryMoneyDash(_Summary_cal_Total_money);
|
|
|
ShowSummaryMoneyDash(_Summary_cal_discount);
|
|
|
+ } else {
|
|
|
+ ShowSummaryMoney(_Summary_total_money, (int)ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].RemainAmount);
|
|
|
+ //ShowSummaryMoney(_Summary_cal_Total_money, (int)pDcChargingInfo->ChargingFee);
|
|
|
+ ShowSummaryMoney(_Summary_cal_discount, (int)ShmSelectGunInfo->PricesInfo[pSysInfo->CurGunSelected].Discount);
|
|
|
}
|
|
|
/*
|
|
|
log_info("start time:%s",pDcChargingInfo->StartDateTime);
|
|
@@ -1111,7 +1112,7 @@ void ShowSummaryPage()
|
|
|
}
|
|
|
|
|
|
if (pDcChargingInfo->PowerConsumption >= 0.1 ) {
|
|
|
- data = pDcChargingInfo->PowerConsumption / pDcChargingInfo->PresentChargedDuration;
|
|
|
+ data = pDcChargingInfo->PowerConsumption / duration;
|
|
|
} else
|
|
|
data = 0;
|
|
|
//sprintf((char *)value,"%.1f",data);
|