pelmered / filament-money-field

Money field powered by Money PHP
MIT License
40 stars 19 forks source link

minValue not working as expceted #43

Closed JFconcept closed 1 day ago

JFconcept commented 3 weeks ago

Describe the bug Hi, the MinValueRule is not working as expceted, since it's checking for <= instead of <

Steps To Reproduce The field

MoneyInput::make('budget') ->minValue(2500);

results in Error: The Budget must be at least 25.00.

Screenshots Bildschirmfoto 2024-07-02 um 14 39 09

Additional context MinValueRule.php - line 28: if ($minorValue <= $this->min) { needs to be: if ($minorValue < $this->min) {

holmesadam commented 1 week ago

Pull request created here: https://github.com/pelmered/filament-money-field/pull/47

pelmered commented 1 day ago

Fixed in version 1.4.0