Hi, I am trying to subtract a number from my product_in_stock value, to create a safety margin when exporting quantities.
Let's say my product_in_stock has a value of 30, I want the output to be 25.
I tried setting the default value for this field to -5. But the export result is still 30, so this doesn't work.
When I try a replacement with a regular expression:
input: /(.*)/e
replace with: ('\1')-5
the output is 25-5 (so the subtraction works but -5 gets added as text to the result).
I am not a champion of regular expressions. Anyone know how to get the result I want?
Thanks!
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!