[
https://issues.apache.org/jira/browse/OFBIZ-13297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18024867#comment-18024867
]
Florian Motteau commented on OFBIZ-13297:
-----------------------------------------
I'va been testing (/ordermgr/control/createRequirement) and reading about that,
I see 2 problems :
* input type=[number] does not allow decimals, indeed the simplest way would be
to add `step="any"` to allow decimals
(https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/number#step).We
could consider to support a `step` attribute on the `<text/>` field, that
would be rendered as `step="..."` on the HTML input. We could decide to set the
default value to `any` (to be discussed)
* when adding `step="any"` on the quantity field on
/ordermgr/control/createRequirement, and setting a decimal value in this field,
the browser no longer tells me that the quantity value is incorrect, but
decimals are removed when saved in database. I don't know why for now...
[^Peek 06-10-2025 10-55.mp4]
> Regression when willing to enter decimals
> -----------------------------------------
>
> Key: OFBIZ-13297
> URL: https://issues.apache.org/jira/browse/OFBIZ-13297
> Project: OFBiz
> Issue Type: Bug
> Components: ALL COMPONENTS
> Affects Versions: Upcoming Branch
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: Upcoming Branch
>
> Attachments: Peek 06-10-2025 10-55.mp4
>
>
> Pierre Smits, who is not allowed to create Jira issues, reported me that
> contrary to current stable version (24.09), you can't enter decimals in
> places that require it.
> It gave me the example of product prices. I also found that it's not possible
> when creating a requirement with the quantity value:
> ordermgr/control/EditRequirement.
> I remember some changes about that, but it's not quite clear in my mind.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)