I currently have a SQL script:
Code:
UPDATE `xxx_comprofiler`
SET `cb_rykker` = 1
WHERE
( MONTH(NOW()) >= 11 AND `cb_type` NOT IN ('Ikke Medlem','') AND `cb_betalt` NOT LIKE CONCAT('%',YEAR(NOW())+1,'%' ) AND `cb_udmeldt` <> 1 )
I would like to change this to do it in autoactions.
What it does is, if it's november or december, and the year+1 does not appear in 'cb_betalt' the user get's a flag set (cb_rykker).
I was thinking along the lines:
Code:
Field auto-action
Access
Everybody
Trigger
Internal Users
Conditions
RegEx is [Membershiptype list]
cb_betalt does not contain year+1
month >= 11
Field
cb_rykker = 1
Is there a CB substition that gives me current month and year?