When creating or changing data via the API, default values and automatically calculated fields were not always populated correctly

When creating or changing data via the API, default values and automatically calculated fields were not correctly populated in some situations. As a result, descriptions, units, prices, and quantities could be incorrectly or left empty.