2024-06-20 08:15:09 -04:00
|
|
|
module CategoriesHelper
|
2025-01-07 09:41:24 -05:00
|
|
|
def transfer_category
|
|
|
|
Category.new \
|
2025-01-16 14:36:37 -05:00
|
|
|
name: "Transfer",
|
|
|
|
color: Category::TRANSFER_COLOR,
|
|
|
|
lucide_icon: "arrow-right-left"
|
2025-01-07 09:41:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def payment_category
|
|
|
|
Category.new \
|
2025-01-16 14:36:37 -05:00
|
|
|
name: "Payment",
|
|
|
|
color: Category::PAYMENT_COLOR,
|
|
|
|
lucide_icon: "arrow-right"
|
2025-01-07 09:41:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def trade_category
|
|
|
|
Category.new \
|
|
|
|
name: "Trade",
|
|
|
|
color: Category::TRADE_COLOR
|
|
|
|
end
|
|
|
|
|
2024-10-25 15:37:05 +02:00
|
|
|
def family_categories
|
2025-01-16 14:36:37 -05:00
|
|
|
[ Category.uncategorized ].concat(Current.family.categories.alphabetically)
|
2024-10-25 15:37:05 +02:00
|
|
|
end
|
2024-06-20 08:15:09 -04:00
|
|
|
end
|