# Add variables required to show total volume on delivery notes (for the whole delivery)

**URL:** <https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777>\
**Category:** Ideas & feature requests\
**Tags:** idea-completed\
**Created:** [2 April 2025 10:33 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777 "2025-04-02T10:33:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas-jack1](https://community.breww.com/user_avatar/community.breww.com/thomas-jack1/32/3950_2.png) [@thomas-jack1](https://community.breww.com/u/thomas-jack1)\
**Post date:** [2 April 2025 10:33 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777/1 "2025-04-02T10:33:36Z")

</div>

Hi,

Does anyone know how to add volume to a delivery note?  
Should be simple right but can’t seem to find the section in their coding area?

Any help greatly appreciated!  
Thanks

---

<div class="post-metadata">

**Author:** ![matt-cousins](https://community.breww.com/user_avatar/community.breww.com/matt-cousins/32/3876_2.png) [@matt-cousins](https://community.breww.com/u/matt-cousins)\
**Post date:** [2 April 2025 16:17 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777/2 "2025-04-02T16:17:30Z")

</div>

You can use the following variables, but these are for each product on the document, rather than the entire volume for the order. Does this do what you need?

 ![Screenshot 2025-04-02 at 17.15.45](https://breww-community.fra1.digitaloceanspaces.com/original/2X/6/6342aeaeaf747355465647fe9b5210b193c58c63.png)

---

<div class="post-metadata">

**Author:** ![thomas-jack1](https://community.breww.com/user_avatar/community.breww.com/thomas-jack1/32/3950_2.png) [@thomas-jack1](https://community.breww.com/u/thomas-jack1)\
**Post date:** [17 April 2025 11:07 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777/3 "2025-04-17T11:07:15Z")

</div>

Hi Matt,

Not really. We don’t wan’t to over-burden a delivery note but the total weight/ total volume is really useful to have for orders for customers and operatives picking them.

---

<div class="post-metadata">

**Author:** ![luke](https://community.breww.com/user_avatar/community.breww.com/luke/32/3636_2.png) [@luke](https://community.breww.com/u/luke)\
**Post date:** [6 May 2025 15:54 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777/5 "2025-05-06T15:54:14Z")

</div>

I’m pleased to confirm that a new variable has been added that you can now use of `total_product_volume` 🎉

This is now being used in the default “Breww Modern” template. If you have a custom template, you will need to add it yourself.

For reference, the default template had this code:

```auto
{% if (is_invoice and is_export) or is_delivery_note %}
    <div class="notes_and_extra_text">
        <strong>{% trans %}Total product weight:{% endtrans %}</strong> {{ total_product_weight if total_product_weight else _('Unknown') }}.
    </div>
{% endif %}

```

Changed to this code:

```auto
{% if (is_invoice and is_export) or is_delivery_note %}
    <div class="notes_and_extra_text">
        <strong>{% trans %}Total product weight:{% endtrans %}</strong> {{ total_product_weight if total_product_weight else _('Unknown') }}.
        <br><strong>{% trans %}Total product volume:{% endtrans %}</strong> {{ total_product_volume }}.
    </div>
{% endif %}

```

We hope this is useful and thanks for the great suggestion.

---

<div class="post-metadata">

**Author:** ![luke](https://community.breww.com/user_avatar/community.breww.com/luke/32/3636_2.png) [@luke](https://community.breww.com/u/luke)\
**Post date:** [11 May 2025 15:54 UTC](https://community.breww.com/t/add-variables-required-to-show-total-volume-on-delivery-notes-for-the-whole-delivery/5777/6 "2025-05-11T15:54:34Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
