Browse Source

fix(未出账单): 未实际上机的预约,显示了实际上机时间

likai 4 years ago
parent
commit
c6088fcad7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      service/settle_account_main/settle_account_main.go

+ 2 - 0
service/settle_account_main/settle_account_main.go

@@ -329,6 +329,8 @@ func (s Service) Cancel(req accountModel.AccountMainCancelReq) error {
 		detail.PaymentAccount += item.PaymentAccount * 1 * per // 取消不算折扣
 	}
 
+	main.ActualStartDate = nil
+	main.ActualEndDate = nil
 	oldAmount := main.TotalPrice
 	main.TotalPrice = detail.PaymentAccount
 	diffValue := oldAmount - detail.PaymentAccount