mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-06-09 15:07:49 +00:00
add migration for seed to standar depresiasi and update data cutover sesuai excel ebitda
This commit is contained in:
@@ -259,8 +259,8 @@ func (r *expenseDepreciationRepository) GetMultiplicationPercentages(
|
||||
house_type::text AS house_type, day, multiplication_percentage, effective_date
|
||||
FROM house_depreciation_standards
|
||||
WHERE house_type::text IN ? AND day <= ?
|
||||
AND (project_flock_id = ? OR project_flock_id IS NULL)
|
||||
ORDER BY house_type, day, (project_flock_id IS NOT NULL) DESC, effective_date DESC NULLS LAST
|
||||
AND (project_flock_ids IS NULL OR ? = ANY(project_flock_ids))
|
||||
ORDER BY house_type, day, (project_flock_ids IS NOT NULL) DESC, effective_date DESC NULLS LAST
|
||||
`, houseTypes, maxDay, projectFlockID).Scan(&rows).Error; err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user