You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System and Version: Herd v1.3.1 (Build: 18)
Browser type and version: Chrome 119 on macOS (Sonoma)
Description:
The fields is correctly formatted in the index view, but is not formatted in the detail view. See images below.
In addition: thousand are also not with the apostrophes in the view page.
Index:
View:
Edit:
Detailed steps to reproduce the issue on a fresh Nova installation:
I'm using Nova Currency Field and it is set like this: Currency::make(__('Price'), 'price') ->step(0.0001) ->context(new CustomContext(4)) ->size('w-1/4') ->rules('nullable', 'numeric', 'min:0', 'max:99999999') ->hideFromIndex(),
Price is stored as a decimal(12,4) in the database.
locale='de_CH'
currency='CHF'
The text was updated successfully, but these errors were encountered:
msucevan
changed the title
Currency
Currency is not formatted in the edit page
Nov 14, 2023
msucevan
changed the title
Currency is not formatted in the edit page
Currency is not formatted in the edit page, but it is in the index
Nov 14, 2023
Description:
The fields is correctly formatted in the index view, but is not formatted in the detail view. See images below.
In addition: thousand are also not with the apostrophes in the view page.
Index:
![image](https://private-user-images.githubusercontent.com/57497646/282723162-584d9b65-c8d7-4d5e-9f0a-1f02c187ba8b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MzQ4MjYsIm5iZiI6MTcxOTczNDUyNiwicGF0aCI6Ii81NzQ5NzY0Ni8yODI3MjMxNjItNTg0ZDliNjUtYzhkNy00ZDVlLTlmMGEtMWYwMmMxODdiYThiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDA4MDIwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3MDMwOTBlYjM2NjcwNGNjOTMwMWViMTQ3MzQ0NzQyZWVjNmU2NDMyM2MxOTgwNTk5YzU1MmZlYmM0YzcwNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rvZrp4MiuIwTWnKK4OG1ps0xV8PHAdqZQbTRL2rJmUA)
View:
![image](https://private-user-images.githubusercontent.com/57497646/282723431-f9c93c02-5143-415a-ba9a-2cecc7b366d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MzQ4MjYsIm5iZiI6MTcxOTczNDUyNiwicGF0aCI6Ii81NzQ5NzY0Ni8yODI3MjM0MzEtZjljOTNjMDItNTE0My00MTVhLWJhOWEtMmNlY2M3YjM2NmQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDA4MDIwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3M2MwZjEwMzU4ZjMzMzMwNzY2ZDZiOWY3NTgxZjIzNDIyYTc0MDA4YWJlNGE5NjgyYzE0Mzc0MjE5OTE3ZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FZOr3K1lm9bAOFj5N0F351lIdfHYTZdZenmFRtavkUI)
Edit:
![image](https://private-user-images.githubusercontent.com/57497646/282723571-7b194458-7935-4a30-8bb5-a73965f89840.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MzQ4MjYsIm5iZiI6MTcxOTczNDUyNiwicGF0aCI6Ii81NzQ5NzY0Ni8yODI3MjM1NzEtN2IxOTQ0NTgtNzkzNS00YTMwLThiYjUtYTczOTY1Zjg5ODQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDA4MDIwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MGNmMjBiNWRkNGRhZTdhOWY0NzI0Zjk1YTFmMTc5ZTA3ZDc4OTc1NTNjYWNhMmNhOWQ3OWQ4OGU4MzM0YTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7KsKCJNA4ACm8oN4bHWE3b1fW35TvZzjABiXz6pQeI8)
Detailed steps to reproduce the issue on a fresh Nova installation:
I'm using Nova Currency Field and it is set like this:
Currency::make(__('Price'), 'price') ->step(0.0001) ->context(new CustomContext(4)) ->size('w-1/4') ->rules('nullable', 'numeric', 'min:0', 'max:99999999') ->hideFromIndex(),
The text was updated successfully, but these errors were encountered: