From bfa9dde763bef638a7102bd2099d8012ce3a5ea0 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 24 Aug 2022 16:33:49 +0200 Subject: [PATCH] task #0002164 replace dot by minus in Receipt --- include/export/export_receipt.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/export/export_receipt.php b/include/export/export_receipt.php index 08aca8fa5..7d6d3e5d6 100644 --- a/include/export/export_receipt.php +++ b/include/export/export_receipt.php @@ -82,6 +82,7 @@ $tmp=tempnam($_ENV['TMP'],'document_'); $new_name=$row['jr_pj_name']; $receipt_number=clean_filename($row['jr_pj_number']); +$receipt_number=str_replace('.','-',$receipt_number); if ( ! empty($receipt_number) && strpos($new_name,$receipt_number) === false ) { $new_name=$receipt_number.'-'.$new_name;