mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-22 22:35:43 +00:00
add approval projectflockkandang closed,expense must be done,stock must empty by flag unfinished:need info approval fix
This commit is contained in:
+2
-1
@@ -297,7 +297,8 @@ func (r *projectFlockKandangRepositoryImpl) HasKandangsLinkedToOtherProject(ctx
|
||||
}
|
||||
q := r.db.WithContext(ctx).
|
||||
Table("project_flock_kandangs").
|
||||
Where("kandang_id IN ?", kandangIDs)
|
||||
Where("kandang_id IN ?", kandangIDs).
|
||||
Where("closed_at IS NULL")
|
||||
if exceptProjectID != nil {
|
||||
q = q.Where("project_flock_id <> ?", *exceptProjectID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user