You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get all envelope IDs and allocation amounts where there is no allocation
326
326
// for the request month, but one for the last month
327
327
err=models.DB.
328
+
Joins("JOIN categories ON categories.id = envelopes.category_id ").
329
+
Joins("JOIN budgets ON budgets.id = categories.budget_id").
328
330
Joins("JOIN month_configs ON month_configs.envelope_id = envelopes.id AND envelopes.archived IS FALSE AND month_configs.month = ? AND NOT EXISTS(?)", pastMonth, queryCurrentMonth).
0 commit comments