- if ($options['invoice']=='1') $dropdown_parts .= ' and ei.invoice_id is not NULL';
- if ($options['invoice']=='2') $dropdown_parts .= ' and ei.invoice_id is NULL';
+ if ($options['invoice']=='1') $dropdown_parts .= ' and ei.invoice_id is not null';
+ if ($options['invoice']=='2') $dropdown_parts .= ' and ei.invoice_id is null';
+ if ($options['timesheet']=='1') $dropdown_parts .= ' and ei.timesheet_id is not null';
+ if ($options['timesheet']=='2') $dropdown_parts .= ' and ei.timesheet_id is null';