From 3f59c213b45d454586441c8c536f4e1097d1ab0e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 13 Dec 2021 20:31:28 +1100 Subject: [PATCH] Minor fixes for client statements --- app/Services/Client/Statement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Client/Statement.php b/app/Services/Client/Statement.php index daafb5bb4973..7c2525204721 100644 --- a/app/Services/Client/Statement.php +++ b/app/Services/Client/Statement.php @@ -172,7 +172,7 @@ class Statement $item->tax_rate1 = 5; } - $product = Product::all()->random(); + $product = Product::first(); $item->cost = (float) $product->cost; $item->product_key = $product->product_key;