# Expanse report Thumb issue

**URL:** <https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390>\
**Category:** Using my Dolibarr\
**Tags:** v15\
**Created:** [June 7, 2022, 11:45am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390 "2022-06-07T11:45:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [June 7, 2022, 11:45am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/1 "2022-06-07T11:45:30Z")

</div>

Expanse report thumbnail image issue:  
What I have experienced the thumbnail image is visible in Draft mode. (please see the attached image)  
after validation the thumbnail image is not visible. It seems the thumbnail is pointing to wrong file location. (please see the attached image with file path).  
Note: The same images are visible under the “Linked files”  
kindly make the correction

 ![1](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/5/5fd36733a059a78b44ffa705ac82daf4df80d733.png)  
 ![2](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/1/17ca998048006cde38a650e22327f63aea429fb8.png)

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [December 4, 2022, 10:03am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/2 "2022-12-04T10:03:57Z")

</div>

I tested with 15.0.3, i can’t reproduce. Can you try to upgrade to 15.0.3 ?

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 4, 2022, 11:10am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/3 "2022-12-04T11:10:55Z")

</div>

I am now in 16.0.2 (I am keeping a copy of lower version 15.0 in another hosting for testing purpose) this issue is continuing from 15.x.x and 16.x.x. Please see the attached screenshot taken from V16.0.2, It seems the Thumb image file path is wrong, so that we could not get to show the thumb image. even after validation of the expanse report the system assigns draft mode file path for the thumb image:  
[https://sbi.milkdata.in/document.php?modulepart=expensereport&attachment=0&file=(PROV532)/Benny.jpeg&&entity=1](https://sbi.milkdata.in/document.php?modulepart=expensereport&attachment=0&file=(PROV532)/Benny.jpeg&&entity=1)  
please analyse this link (this is link of thumb image).  
So after validation stage of the expanse report the correct link of uploaded image has to be fixed.  
**Note: The thumb image may be visible for the user who created the expanse report. It is not visible to other users (like expanse authorizing user). Please test the issue as a different user.**

 ![expanse](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/7/7631d6e855cf6ed39cb57147d04a265be4ae157d.png)

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [December 4, 2022, 12:42pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/4 "2022-12-04T12:42:20Z")

</div>

Does this expense report was created AFTER migration to 16.0 ?  
If problem was visible on old version, it will remains on new version.  
Try to create a new expense report to check if problem remains on a new expense report

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 4, 2022, 2:18pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/5 "2022-12-04T14:18:29Z")

</div>

Creation of expanse report is day to day routine work in our company, Our accounting staff will create expanse report every day (daily expanses). Please see the attached screenshot for your reference.  
It worked fine upto V14.0, we lost this beautiful feature after upgrade to V15.0  
(I have been using Dolibarr from V12.0)

 ![List Expnase](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/e/eedcaea705657866c567c891775ffd3cc16cebd1.png)

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 19, 2022, 11:32am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/6 "2022-12-19T11:32:30Z")

</div>

The Expanse report Thumb issue:  
I have tested this issue with a fresh installation of V17 Beta and It works fine.  
After migration from 16.0 to 17 beta the thumb is not visible…  
Please help me whether something wrong in the database??

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [December 19, 2022, 11:51am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/7 "2022-12-19T11:51:17Z")

</div>

The thumbs is not stored into database but on disk into files  
documents/expensereport/REFofExpenseReport/thumbs/xxx\_mini.jpg  
and  
documents/expensereport/REFofExpenseReport/thumbs/xxx\_small.jpg  
Do you have such files ?

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 19, 2022, 2:35pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/8 "2022-12-19T14:35:54Z")

</div>

Yes, It is available!  
after validation of expanse report the file path become wrong path (for thumb image).  
It should be like you wrote (documents/expensereport/REFofExpenseReport/thumbs/xxx\_small.jpg)  
But  
when we move the cursor over the thumb the hyper link shows as follows  
file=(PROV569)/XXX.jpg (please see the attached screenshot)

NO ISSUE FOUND IN FRESH INSTALLATION  
issue found in only migration from lower to higher version

 ![2022-12-19](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/4/41c5cfe5d878173ae3311e80d29f0c7588e4e832.png)

---

<div class="post-metadata">

**Author:** ![eldy](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/eldy/32/12_2.png) [@eldy](https://www.dolibarr.org/forum/u/eldy)\
**Post date:** [December 19, 2022, 6:26pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/9 "2022-12-19T18:26:13Z")

</div>

I am not sure the pb is on instance that was migrated. But on expense started to be created before the migration.  
If you create a new expense report on a version 17 after migration from v16. Do you experience trouble ? The expense report must be started in draft mode after the migration.

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 19, 2022, 7:29pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/10 "2022-12-19T19:29:27Z")

</div>

I am experiencing this issue after migrating from V14.to V15 and also continuing in V16 too. (Last one year) I don’t have this issue in V 14. The expanse report was started & created after migration of higher version (stated from draft) only. (Not standard in earlier versions)For testing purpose I had a fresh installation of V17, in this test instance there is no problem found. I conclude something went wrong at the time of migration (database migration). I am happy do more test if needed

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 25, 2022, 2:49pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/11 "2022-12-25T14:49:31Z")

</div>

I observed the following warning (please refer the screenshot) while creating expanse report (V17-Beta-Test). at the time of scanned copy of bill (jpeg) uploaded. Is it related to this issue?

 ![2022-12-25](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/7/7cfb6e8a6222e8bcff1e778fc4ea0a8fd0be3354.png)

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [December 25, 2022, 4:41pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/12 "2022-12-25T16:41:02Z")

</div>

Further tested in both V16.0 and V17.0-beta, It seems the problem occurred at the time of Expanse report creation and the problem disappeared when we edit the validated Expanse report. (Back to Draft mode—\>Edit & Save all the line—\>Validate and submit for approval) all thumb image are now visible (like V14.0). I observed system works in Edit mode and not works in Create Mode.  
Hope you understood, if you need more information like screenshot or screen record I am happy to provide. Thanks Merry Christmas

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [January 12, 2023, 11:50am UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/14 "2023-01-12T11:50:31Z")

</div>

Any help on this issue?  
Thumb image is visible only once again Edit & Save the validated expanse report. thumb not visible at first time validation… filled to add correct file path of the thumb image, after edit & save same expanse report the file path added correctly and thumb is visible

---

<div class="post-metadata">

**Author:** ![sribalaji.tvn](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sribalaji.tvn](https://www.dolibarr.org/forum/u/sribalaji.tvn)\
**Post date:** [November 8, 2023, 4:26pm UTC](https://www.dolibarr.org/forum/t/expanse-report-thumb-issue/22390/15 "2023-11-08T16:26:03Z")

</div>

Good news!!!  
Expanse report thumb image appearance issue has been fixed in V18.0.3 (Which is very nice future)  
Which was missing in from V15 now working in 18.0.3  
well done!!!
