I've been trying to adjust the amount stock reduced by a sale, depending on a product's attribute, I've tried the …