diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 687cde690ebc..c9754a1fc006 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -316,7 +316,7 @@ class Invoice extends BaseModel */ public function payments(): \Illuminate\Database\Eloquent\Relations\MorphToMany { - return $this->morphToMany(Payment::class, 'paymentable')->withTrashed()->withPivot('amount', 'refunded')->withTimestamps(); + return $this->morphToMany(Payment::class, 'paymentable')->withTrashed()->withPivot('amount', 'refunded', 'deleted_at')->withTimestamps(); } /**