What’s New?
-
Sodium in Grams Rounded to Six Decimal Points
When sodium/salt values are in grams instead of milligrams, the numbers will now be rounded to six decimal places (up from three). This will help prevent zero values from appearing on the Nutrition screen.The Import API always interprets sodium values in the request POST /ingredient/nutrient payload as milligrams, then converts, stores and returns the sodium value in grams in the response to GET /ingredient/{guid}/nutrition.
Fig.1 - Sample payload for POST /ingredientnutrient
Fig.2 -' Sodium (g)' value in UI
Fig.3 - Ingredient's sodium value when returned in response to GET /ingredient/{guid}/nutrition
-
External Code Values: New Global Settings
Global settings have been introduced to enforce uniqueness, mandatory population and limited editing of ingredient and recipe External Code values. The new settings will apply to parent and alternate ingredients and all recipe types (standard, batch, choice, option). When the settings are enabled, the validation will be applied to both UI and API changes.
To enable these settings for your organisation, please raise a request to Fourth's support team.
New Settings
- Ingredient External Code Locked
- Recipe External Code Locked
When the 'locked' setting is enabled, the external code value cannot be changed once it has been populated and saved.
The 'locked' property is not dependent upon the set type. This differs from existing global settings, such as 'supply quantity read-only for live ingredients'.
- Prevent duplication of Ingredient External Code value
- Prevent duplication of Recipe External Code value
For the above settings, ingredient external codes must be unique within ingredient records, and recipe external codes must be unique within all recipe records. Duplication is allowed if the duplicate code is in a different record type.
- Recipe External Code Mandatory
When this setting is enabled, the recipe external code value is globally mandatory for all user groups.
Release date: 9th July 2025
Comments
Please sign in to leave a comment.