ソースを参照

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

likai 4 年 前
コミット
c6088fcad7
1 ファイル変更2 行追加0 行削除
  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