mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-09 17:16:12 +01:00
Assign categories to expenses (#28)
* add expense categories * set category to Payment for reimbursements * Insert categories as part of the migration * Display category groups --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
This commit is contained in:
@@ -80,6 +80,7 @@ async function main() {
|
||||
amount: Math.round(expenseRow.amount * 100),
|
||||
groupId: groupRow.id,
|
||||
title: expenseRow.description,
|
||||
categoryId: 1,
|
||||
expenseDate: new Date(expenseRow.created_at.toDateString()),
|
||||
createdAt: expenseRow.created_at,
|
||||
isReimbursement: expenseRow.is_reimbursement === true,
|
||||
|
||||
Reference in New Issue
Block a user