# Subtotal line in invoice

**URL:** <https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554>\
**Category:** Using my Dolibarr\
**Created:** [February 11, 2020, 8:08pm UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554 "2020-02-11T20:08:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Locodarwin](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/locodarwin/32/2796_2.png) [@Locodarwin](https://www.dolibarr.org/forum/u/Locodarwin)\
**Post date:** [February 11, 2020, 8:08pm UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554/1 "2020-02-11T20:08:37Z")

</div>

Hello! I am a happy user of Dolibarr and I appreciate greatly the work put into it. I have one question or request which I could not find a specific answer to:

In an invoice, my services are generally quantified in terms of hours spent. I keep a subtotal of those hours in some other fashion because I don’t know of a way to generate a subtotal line in the invoice draft. Is it possible to generate a subtotal line? If not, I will make a feature request.

Thank you.

---

<div class="post-metadata">

**Author:** ![simicar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/simicar/32/3072_2.png) [@simicar](https://www.dolibarr.org/forum/u/simicar)\
**Post date:** [February 12, 2020, 6:18am UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554/2 "2020-02-12T06:18:50Z")

</div>

Hi Locodarwin,  
This is indeed an important feature. A number of modules enable this possibility. See notably [https://wiki.dolibarr.org/index.php/Module\_Sous-total](https://wiki.dolibarr.org/index.php/Module_Sous-total) that is working particularly well.  
Regards,  
Marc

---

<div class="post-metadata">

**Author:** ![Thatoo](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@Thatoo](https://www.dolibarr.org/forum/u/Thatoo)\
**Post date:** [October 28, 2022, 4:16pm UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554/3 "2022-10-28T16:16:00Z")

</div>

If you want to display subtotal lines and comment lines, feel free to use this Cyan file that I have slightly modified based on [PDF azur title subtotal and comment](https://www.dolistore.com/en/document-templates/1188-PDF-azur-title-subtotal-and-comment.html?search_query=Subtotal&results=13) :

> <https://github.com/Thatoo/dolibarr/blob/develop/htdocs/core/modules/propale/doc/pdf_cyansubtotal.modules.php>

---

<div class="post-metadata">

**Author:** ![ereitz\_mdp](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/e/b9bd4f/32.png) [@ereitz\_mdp](https://www.dolibarr.org/forum/u/ereitz_mdp)\
**Post date:** [June 4, 2024, 1:58pm UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554/4 "2024-06-04T13:58:24Z")

</div>

Hello @Thatoo,

Thanks a lot for that file, it’s exactly what I was looking for.  
By any chance, do you have a file that does the same thing but generates an invoice?

Regards,

---

<div class="post-metadata">

**Author:** ![Thatoo](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@Thatoo](https://www.dolibarr.org/forum/u/Thatoo)\
**Post date:** [June 4, 2024, 3:14pm UTC](https://www.dolibarr.org/forum/t/subtotal-line-in-invoice/18554/5 "2024-06-04T15:14:25Z")

</div>

Sorry, no I don’t have that file.
