diff --git a/app/Livewire/TransactionImportWire.php b/app/Livewire/TransactionImportWire.php index 938f472..35c9173 100644 --- a/app/Livewire/TransactionImportWire.php +++ b/app/Livewire/TransactionImportWire.php @@ -244,10 +244,11 @@ public function updatedMapping() : void public function formatDataDb(string|int $value, string $db_col_name): int|string { $type = $this->db_col_types[$db_col_name]; + //if($type === 'decimal') dd([$value, (float) $value,$db_col_name]); return match ($type){ 'integer' => (int) $value, 'date' => guessCarbon($value, 'Y-m-d'), - 'decimal' => (float) $value, + 'decimal' => $value, // no casting needed, string is expected default => $value, }; }