- Edited
Is it possible to preserve the indentation of such a construct:
$whereRechnung = match ( $rechnungsFilter->value ) {
'ALLE BELEGE' => '(0=0)',
'RECHNUNGEN & LASTSCHRIFTEN' => '`Netto` > 0',
'RECHNUNGEN' => '`Netto` > 0 and `SALESORDERNR` LIKE "210%"',
'LASTSCHRIFTEN' => '`Netto` > 0 and `SALESORDERNR` LIKE "219%"',
'GRATISLIEFERUNGEN' => '`Netto` = 0 and (not `IP_FREEOFCHARGEREASONCODE` in ("ZA00","ZA01")) and `IP_SALESORDERTYPE_DESC`!="intern"',
'GUTSCHRIFTEN' => '`Netto` < 0 and `SALESORDERNR` LIKE "219%"',
'GUTSCHRIFT MIT RETOUREN' => '`IP_SALESORDERTYPE`= 1 or `IP_FREEOFCHARGEREASONCODE`="ZGN2"',
'GUTSCHRIFT OHNE RETOUREN' => '`IP_SALESORDERTYPE`= 2 or `IP_FREEOFCHARGEREASONCODE`="ZC00"',
'KORREKTURBUCHUNGEN' => '`IP_FREEOFCHARGEREASONCODE` in ( "ZA00", "ZA01") or `IP_SALESORDERTYPE_DESC`="intern"'
};