- Posts: 21
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
date('d/m/Y',mktime(0,0,0,1,sum(Dados_L1_SQ003.NAOK,if(is_int(stripos(Dados_L1_SQ001.NAOK,'Alho')) or is_int(stripos(Dados_L1_SQ001.NAOK,'Pizza')),60,75)),if(Dados_L1_SQ003.NAOK >290 and substr(date('d/m/Y'),3,2)<4,sum(substr(date('d/m/Y'),6,4),-1),substr(date('d/m/Y'),6,4))))==Dados_L1_SQ004.NAOK
There might be a small error, but as usual the best is you send an lss export (only this question).What am I doing wrong?
date('d/m/Y',mktime(0,0,0,1,sum(Dados_L1_SQ003.NAOK,if(is_int(stripos(Dados_L1_SQ001.NAOK,'Alho')) or is_int(stripos(Dados_L1_SQ001.NAOK,'Pizza')),60,75)),if(Dados_L1_SQ003.NAOK >290 and substr(date('d/m/Y'),3,2)<4,sum(substr(date('d/m/Y'),6,4),-1),substr(date('d/m/Y'),6,4))))==Dados_L1_SQ004.NAOK
And also this:Seems that your validation only works for "Pizza" and "Pao de Alho".
If I fill all 10 possible rows everything is fine.
Batch: 301301 Pao de Alho -> 26/12/2020
Batch: 11 Bobina -> 17/3/2021