Feat: Adds multi currency support (#88)
This commit is contained in:
@@ -55,7 +55,7 @@ class DailyChangesSheet implements SkipsEmptyRows, ToCollection, WithEvents, Wit
|
||||
'realized_gains' => $dailyChange['realized_gains'],
|
||||
'annotation' => $dailyChange['annotation'],
|
||||
'portfolio_id' => $dailyChange['portfolio_id'],
|
||||
'date' => Carbon::parse($dailyChange['date'])->format('Y-m-d'),
|
||||
'date' => Carbon::parse($dailyChange['date'])->toDateString(),
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class TransactionsSheet implements SkipsEmptyRows, ToCollection, WithEvents, Wit
|
||||
'sale_price' => $transaction['sale_price'],
|
||||
'split' => boolval($transaction['split']) ? 1 : 0,
|
||||
'reinvested_dividend' => boolval($transaction['reinvested_dividend']) ? 1 : 0,
|
||||
'date' => Carbon::parse($transaction['date'])->format('Y-m-d'),
|
||||
'date' => Carbon::parse($transaction['date'])->toDateString(),
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user