Skip to content

Commit

Permalink
Add qty
Browse files Browse the repository at this point in the history
  • Loading branch information
praslnx8 committed Apr 28, 2024
1 parent e7af20f commit 4cfc719
Show file tree
Hide file tree
Showing 16 changed files with 255 additions and 157 deletions.
4 changes: 4 additions & 0 deletions lib/api/apis/investment_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class InvestmentApi {
required final int? basketId,
required final RiskLevel riskLevel,
required final double? value,
required final double? qty,
required final DateTime? valueUpdatedOn,
required final double? irr,
required final DateTime? maturityDate,
Expand All @@ -22,6 +23,7 @@ class InvestmentApi {
description: Value(description),
basketId: Value(basketId),
value: Value(value),
qty: Value(qty),
irr: Value(irr),
maturityDate: Value(maturityDate),
valueUpdatedOn: Value(valueUpdatedOn),
Expand Down Expand Up @@ -61,6 +63,7 @@ class InvestmentApi {
required final String name,
required final String? description,
required final double? value,
required final double? qty,
required final DateTime? valueUpdatedOn,
required final double? irr,
required final DateTime? maturityDate,
Expand All @@ -74,6 +77,7 @@ class InvestmentApi {
basketId: Value(basketId),
riskLevel: Value(riskLevel),
value: Value(value),
qty: Value(qty),
valueUpdatedOn: Value(valueUpdatedOn),
irr: Value(irr),
maturityDate: Value(maturityDate)));
Expand Down
3 changes: 3 additions & 0 deletions lib/api/db/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class InvestmentTable extends Table {

RealColumn get value => real().nullable().named('VALUE')();

RealColumn get qty => real().nullable().named('QTY')();

DateTimeColumn get valueUpdatedOn =>
dateTime().nullable().named('VALUE_UPDATED_ON')();

Expand Down Expand Up @@ -180,6 +182,7 @@ abstract class InvestmentEnrichedView extends View {
investment.riskLevel,
investment.maturityDate,
investment.irr,
investment.qty,
investment.value,
investment.valueUpdatedOn,
basketId,
Expand Down
53 changes: 52 additions & 1 deletion lib/api/db/app_database.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4cfc719

Please sign in to comment.