|
|
@@ -12,6 +12,7 @@ namespace App;
|
|
|
* @property string $email
|
|
|
* @property string $company_number
|
|
|
* @property string $vat_number
|
|
|
+ * @property string $invoice_footer
|
|
|
* @property string $dts_created
|
|
|
* @property string $dts_updated
|
|
|
* @property string $dts_deleted
|
|
|
@@ -21,7 +22,12 @@ class Company extends Model {
|
|
|
|
|
|
protected static $table = "company";
|
|
|
protected static $idField = "id";
|
|
|
- protected static $fillableFields = ["address_id", "name", "phone", "fax", "email", "company_number", "vat_number", "dts_created", "dts_updated", "dts_deleted"];
|
|
|
+ protected static $fillableFields = [
|
|
|
+ "address_id",
|
|
|
+ "name", "phone", "fax", "email",
|
|
|
+ "company_number", "vat_number", "invoice_footer",
|
|
|
+ "dts_created", "dts_updated", "dts_deleted"
|
|
|
+ ];
|
|
|
|
|
|
// Static methods
|
|
|
|
|
|
@@ -74,4 +80,8 @@ class Company extends Model {
|
|
|
return $details;
|
|
|
}
|
|
|
|
|
|
+ public function getInvoiceFooterHtml(): string {
|
|
|
+ return nl2br(htmlspecialchars($this->invoice_footer));
|
|
|
+ }
|
|
|
+
|
|
|
}
|