Also load available last month
This commit is contained in:
@ -165,12 +165,13 @@ type GetCategoriesWithBalanceParams struct {
|
||||
}
|
||||
|
||||
type GetCategoriesWithBalanceRow struct {
|
||||
ID uuid.UUID
|
||||
Name string
|
||||
Group string
|
||||
Available Numeric
|
||||
Activity Numeric
|
||||
Assigned Numeric
|
||||
ID uuid.UUID
|
||||
Name string
|
||||
Group string
|
||||
Available Numeric
|
||||
AvailableLastMonth Numeric
|
||||
Activity Numeric
|
||||
Assigned Numeric
|
||||
}
|
||||
|
||||
func (q *Queries) GetCategoriesWithBalance(ctx context.Context, arg GetCategoriesWithBalanceParams) ([]GetCategoriesWithBalanceRow, error) {
|
||||
@ -187,6 +188,7 @@ func (q *Queries) GetCategoriesWithBalance(ctx context.Context, arg GetCategorie
|
||||
&i.Name,
|
||||
&i.Group,
|
||||
&i.Available,
|
||||
&i.AvailableLastMonth,
|
||||
&i.Activity,
|
||||
&i.Assigned,
|
||||
); err != nil {
|
||||
|
Reference in New Issue
Block a user