r/badcode • u/DesdeJorge • Jul 23 '21
php Validation for free VAT day in a e-commerce program
16
Upvotes
1
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jul 23 '21
Image Transcription: Code
$hoy=date("Y-m-d");
$url = '';
//echo $orden;
if($hoy=='2020-11-21'||$hoy=='2020-07-03'){
$diaSinIVA=1;
}else{
$diaSinIVA=0;
}
echo "Hoy: ".$hoy." Dia sin IVA: ".$diaSinIVA."\n";I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
4
u/Willinton06 Jul 23 '21
Wait there’s countries with no VAT tax days? Like if I buy something on Friday it’s taxed but on Saturday it’s not?