Skip to content

Commit

Permalink
fix: do not require transactions to have a name and valueDate
Browse files Browse the repository at this point in the history
in MoneyMoney it is possible to create offline transactions without these
and the fields are not required for BudgetBudget

fix #25
  • Loading branch information
Xiphe committed Apr 19, 2020
1 parent 852fba7 commit a3aaade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moneymoney/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const transactionShape = t.intersection(
accountNumber: t.string,
booked: t.boolean,
bookingDate: date,
valueDate: date,
name: t.string,
},
'required',
),
Expand All @@ -30,6 +28,8 @@ const transactionShape = t.intersection(
purpose: t.string,
category: t.string,
categoryId: t.number,
name: t.string,
valueDate: date,
},
'optional',
),
Expand Down

0 comments on commit a3aaade

Please sign in to comment.