- Issue created by @kopeboy
- Merge request !8Support decimal quantity with new field type, widget, formatter → (Open) created by kopeboy
I (and I guess many others) needed to reference entities with a decimal quantity attached. That can represent, for example, ownership shares, that are are quite common but not easy to support with the current schema.
The code required is so similar to the current module that it wouldn't make sense to create a new one imho, so I would like to add a new Field Type, 2 Widgets, and 2 Formatters, that mimic the existing ones, but are called "Share" instead of "Quantity". The only difference would be to have a decimal in the schema, and the only additions would be:
When creating a new field, under "Reference" there will be a new option "Entity reference w/share" after the existing "Entity reference w/quantity", and similarly all field settings, formatters' & widgets' labels would mention shares instead of quantities, but keep the same structure.
Active
2.0
Code