# CalculateOrderTotals problem

**URL:** <https://forum.litium.com/t/calculateordertotals-problem/2280>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [November 1, 2021, 4:18pm UTC](https://forum.litium.com/t/calculateordertotals-problem/2280 "2021-11-01T16:18:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [November 1, 2021, 4:18pm UTC](https://forum.litium.com/t/calculateordertotals-problem/2280/1 "2021-11-01T16:18:02Z")

</div>

I don’t understand why the calculation is done differently when a product has a campaign price. Is this a bug?

![Before-Campaign](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/42263cfb027082653af8c94cd1e3af3bcf444557.png)

![Before-No-Campaign](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/61f99d0052e3fca0d932afc6c52c3f30e76c706c.png)

Here we run this:  
Module.Instance.Orders.CalculateOrderTotals(orderCarrier, SecurityToken.CurrentSecurityToken);

After we get this:  
 ![After-Campaign](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/3cf7a3a770822d0783a83f179b0ff91c82988012.png)

![After-No-Campaign](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/0f4b243ed0ae3cc0f7c25fb95f5edd03984e05e1.png)

Why isn’t the VAT added on top when there’s a campaign price?

Litium version: 7.7.1

---

<div class="post-metadata">

**Author:** ![samuel](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/samuel/32/479_2.png) [@samuel](https://forum.litium.com/u/samuel)\
**Post date:** [November 12, 2021, 12:19pm UTC](https://forum.litium.com/t/calculateordertotals-problem/2280/2 "2021-11-12T12:19:38Z")

</div>

Just an update on this. Our solution was to skip the CalculateOrderTotals method and do our own calculations and setting the values on the ordercarrier before placing the order.

---

<div class="post-metadata">

**Author:** ![Artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/artur/32/948_2.png) [@Artur](https://forum.litium.com/u/Artur)\
**Post date:** [November 12, 2021, 1:10pm UTC](https://forum.litium.com/t/calculateordertotals-problem/2280/3 "2021-11-12T13:10:33Z")

</div>

I think we did the same thing when we had issues with it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [December 10, 2021, 1:11pm UTC](https://forum.litium.com/t/calculateordertotals-problem/2280/4 "2021-12-10T13:11:17Z")

</div>

Closed on December 10, 2021, 1:11pm UTC

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