From c4d2c31e066c661a137eb8bd49bf3c1380ffc227 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 23 Feb 2020 12:15:33 +0200 Subject: [PATCH] Fix for product report --- app/Models/InvoiceItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/InvoiceItem.php b/app/Models/InvoiceItem.php index 731c0251a2..eb1417e97f 100644 --- a/app/Models/InvoiceItem.php +++ b/app/Models/InvoiceItem.php @@ -48,7 +48,7 @@ class InvoiceItem extends EntityModel */ public function invoice() { - return $this->belongsTo('App\Models\Invoice'); + return $this->belongsTo('App\Models\Invoice')->withTrashed(); } /**