Files
firefly-iii/app/Models
yparitcher 59fae290e5 Transaction Model: explicitly cast decimal to string
Laravel defers to PDO & the underlying database as to what type decimals are cast as.
When using sqlite text that match a float will be returned as a float, while mySql always returns a string for a decimal.
This leads to crashes with sqlite while trying to import tranansactions. (It does not happen every transaction, only when the balance{before,after} coming from the database is floatable)

`FireflyIII\Support\Models\AccountBalanceCalculator::getLatesBalance(): Return value must be of type string, float returned.`

Fixes: #9458

Signed-off-by: yparitcher <y@paritcher.com>
2024-11-15 00:03:21 -05:00
..
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-11-06 11:57:12 +01:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-11-06 12:01:29 +01:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-11-06 12:01:29 +01:00
2024-07-31 08:31:20 +02:00
2024-07-31 08:31:20 +02:00
2024-11-06 19:39:11 +01:00