public function getInvoiceFields() { if ($this->invoice_fields) { $fields = json_decode($this->invoice_fields, true); return $this->applyLabels($fields); } else { return $this->getDefaultInvoiceFields(); } }