diff --git a/app/Models/Estimate.php b/app/Models/Estimate.php index dcd084e4..5fafda8e 100644 --- a/app/Models/Estimate.php +++ b/app/Models/Estimate.php @@ -56,20 +56,6 @@ class Estimate extends Model implements HasMedia 'exchange_rate' => 'float' ]; - public function setEstimateDateAttribute($value) - { - if ($value) { - $this->attributes['estimate_date'] = $value; - } - } - - public function setExpiryDateAttribute($value) - { - if ($value) { - $this->attributes['expiry_date'] = $value; - } - } - public function getEstimatePdfUrlAttribute() { return url('/estimates/pdf/'.$this->unique_hash); diff --git a/app/Models/Expense.php b/app/Models/Expense.php index 4b7eb93c..de02cc91 100644 --- a/app/Models/Expense.php +++ b/app/Models/Expense.php @@ -34,13 +34,6 @@ class Expense extends Model implements HasMedia 'exchange_rate' => 'float' ]; - public function setExpenseDateAttribute($value) - { - if ($value) { - $this->attributes['expense_date'] = $value; - } - } - public function category() { return $this->belongsTo(ExpenseCategory::class, 'expense_category_id'); diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 5f67ed6d..e9a59fc7 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -63,20 +63,6 @@ class Invoice extends Model implements HasMedia 'invoicePdfUrl', ]; - public function setInvoiceDateAttribute($value) - { - if ($value) { - $this->attributes['invoice_date'] = $value; - } - } - - public function setDueDateAttribute($value) - { - if ($value) { - $this->attributes['due_date'] = $value; - } - } - public function emailLogs() { return $this->morphMany('App\Models\EmailLog', 'mailable'); diff --git a/app/Models/Payment.php b/app/Models/Payment.php index 0582e152..d64a9025 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -54,13 +54,6 @@ class Payment extends Model implements HasMedia }); } - public function setPaymentDateAttribute($value) - { - if ($value) { - $this->attributes['payment_date'] = $value; - } - } - public function getFormattedCreatedAtAttribute($value) { $dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id);