title | issue |
---|---|
Fix bug automatically set value for nullable product fields |
NEXT-5638 |
- Changed method
getDefaults
insrc/Core/Content/Product/ProductDefinition
to set the default value forrestockTime
is null - Changed method
getRestockTime
andsetRestockTime
insrc/Core/Content/Product/ProductEntity
to get and set nullablerestockTime
field
- Added
allowEmpty
custom property insw-list-price-field
,sw-price-field
,sw_product_deliverability_form
andsw_product_packaging_form
components to remove the default value for nullable fields - Changed method
listPrice
insw-list-price-field
to set the default value fornet
andgross
is null - Changed method
listPriceChanged
insw-list-price-field
to setlistPrice
to be null if the gross value is null, or the net value is null - Changed
convertNetToGross
andconvertGrossToNet
insw-price-field
component to check if the value is not a number