I found a column/attribute named ‘SpoofStock’ in the ‘nitroasl_pamtable’ table. Its type is currently set to ‘Checkbox (true/false)’. I would like to either modify the type to be ‘Integer’, or remove the attribute and create a new one that suits my needs.
How can I modify an attribute type? How can I remove an attribute?
Having deleted the boolean column, you could add a new integer column. Assuming you call it SpoofStock, you could then change your product_stock mapping to:
case when SpoofStock > 0 then SpoofStock else (quantity-quantitycommitted) end
If SpoofStock is set, it will use that value, otherwise it will use the RMS default.