solve trailing data error

This commit is contained in:
harshjagad20
2021-12-18 15:08:05 +05:30
parent 2765f35f98
commit 2fd8d8a5f4
4 changed files with 0 additions and 42 deletions

View File

@ -56,20 +56,6 @@ class Estimate extends Model implements HasMedia
'exchange_rate' => 'float' '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() public function getEstimatePdfUrlAttribute()
{ {
return url('/estimates/pdf/'.$this->unique_hash); return url('/estimates/pdf/'.$this->unique_hash);

View File

@ -34,13 +34,6 @@ class Expense extends Model implements HasMedia
'exchange_rate' => 'float' 'exchange_rate' => 'float'
]; ];
public function setExpenseDateAttribute($value)
{
if ($value) {
$this->attributes['expense_date'] = $value;
}
}
public function category() public function category()
{ {
return $this->belongsTo(ExpenseCategory::class, 'expense_category_id'); return $this->belongsTo(ExpenseCategory::class, 'expense_category_id');

View File

@ -63,20 +63,6 @@ class Invoice extends Model implements HasMedia
'invoicePdfUrl', '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() public function emailLogs()
{ {
return $this->morphMany('App\Models\EmailLog', 'mailable'); return $this->morphMany('App\Models\EmailLog', 'mailable');

View File

@ -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) public function getFormattedCreatedAtAttribute($value)
{ {
$dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id); $dateFormat = CompanySetting::getSetting('carbon_date_format', $this->company_id);