From 94670413ab20245c882eae2d6e4c85f204434308 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 17 Feb 2023 09:58:49 +1100 Subject: [PATCH] Minor fix for bulk purchase order download file naming --- app/Jobs/PurchaseOrder/ZipPurchaseOrders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/PurchaseOrder/ZipPurchaseOrders.php b/app/Jobs/PurchaseOrder/ZipPurchaseOrders.php index 07d37172b28d..8d9a14a76026 100644 --- a/app/Jobs/PurchaseOrder/ZipPurchaseOrders.php +++ b/app/Jobs/PurchaseOrder/ZipPurchaseOrders.php @@ -72,7 +72,7 @@ class ZipPurchaseOrders implements ShouldQueue // create new zip object $zipFile = new \PhpZip\ZipFile(); - $file_name = date('Y-m-d').'_'.str_replace(' ', '_', trans('texts.invoices')).'.zip'; + $file_name = date('Y-m-d').'_'.str_replace(' ', '_', trans('texts.purchase_orders')).'.zip'; $invitation = $this->purchase_orders->first()->invitations->first(); $path = $this->purchase_orders->first()->vendor->purchase_order_filepath($invitation);