e_invoice_requested_at)) { if($eInvoice){ $model->e_invoice_requested_at = now(); } } $model->e_invoice = 1; } else{ $model->e_invoice_requested_at = null; $model->e_invoice = 0; } return $this->handler($model); } }