fix
zhangqian
2024-07-04 c6b26991704713d4a4d88e520759f02cd337219f
controllers/report_forms_controller.go
@@ -475,12 +475,8 @@
      return
   }
   now := time.Now().Local()
   today := now.Day()
   nowMonth := now.Format("2006-01")
   day, dateStr, _ := service.NewSystemConfigService().GetInventoryCutOffPoint()
   if nowMonth == params.Date && today < day || today == day && now.Format("15:04") < dateStr { //本月未至结算时间点
   nowMonth := time.Now().Local().Format("2006-01")
   if nowMonth == params.Date {
      productIds := make([]string, 0, len(result))
      for _, item := range result {
         productIds = append(productIds, item.ProductId)