Hi everyone;
I have "CH" prefix for all my change orders; defined in configuration. I also have a custom INT attribute - let's call it ztype -, which I set to 1,2 or 3 by creating a new Change Order - in the htmpl file.
What I want to achieve is to set different prefixes for change orders with ztype 2 or 3.
ztype = 1 -> CH
ztype = 2 -> CR
ztype = 3 -> CO
I can set the value with spl codes via pre_validate or post_validate operators. But I also want to see the CR or CO before saving the change order. I want to modify the "$args.chg_ref_num" value.
Is that possible?
BR
Utku