# Partial delivery - free shipping

**URL:** <https://forum.litium.com/t/partial-delivery-free-shipping/2072>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [May 24, 2021, 3:00pm UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072 "2021-05-24T15:00:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [May 24, 2021, 3:00pm UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/1 "2021-05-24T15:00:19Z")

</div>

We have a problem with some orders with partial deliveries.

Here is an example:  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/8c7fbcaab882801ea91aaa301cf14f1b0b5f801c.png)  
We can see that the order total is 94,28 and shipping fee incl vat is 0.

Here are the ordered objects:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/debadf029f05f0282221352e36602dc45315dc00.png)  
Then a partial delivery is made and the following objects are delivered in `LSD862361_PART_1`, but here we see that Litium has charged the customer with a delivery fee 4,78EUR which is not correct since the shipping fee for the order is 0EUR.  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/18752c40628d223963e8d828b0491bf24aadea35.png)

But it also creates the following delivery for the remaining objects but I don’t really can figure out why there is a negative delivery fee on it:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/982da667c3fc83332318422a31bcc389b8311a9f.png)

And here we can see that in the first (delivered part) payment the customer has been charged 4,78EUR more than what he/she should been charged for.  
94,28 (total order amount) - 17,96 (not delivered article) = 76,32EUR. But customer is charged with 81,10EUR which is total (94,28) - not delivered article (17,96) + delivery fee (4,78).

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/4a5c7945061febe8d565dab35aa9aad8a883d5d1.png)

So the question is, is this a bug? Is there some calculation that I am missing?

Litium version: _[7.4.2]_  
Litium Connect ERP version: _[1.0]_

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [May 25, 2021, 10:05am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/2 "2021-05-25T10:05:04Z")

</div>

This might be a bug, we’ll check and get back to you.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [May 26, 2021, 6:59am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/3 "2021-05-26T06:59:19Z")

</div>

Our guys could not reproduce this issue in 7.4.2 nor the latest version either.  
Question is if you have implemented something wrong?

---

<div class="post-metadata">

**Author:** ![Spotonkastebo](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/spotonkastebo/32/717_2.png) [@Spotonkastebo](https://forum.litium.com/u/Spotonkastebo)\
**Post date:** [May 27, 2021, 2:12pm UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/4 "2021-05-27T14:12:05Z")

</div>

I would bet there are bugs in the Connect ERP API 1.0. We used the 2.0 version in 7.6.1 but had to upgrade because of bugs regarding part deliveries and payment that were fixed in Litium 7.6.2.

is the shippingfeed always zero or how do you calculate the shipping fee? The connect ERP API should just divide the shipping fee on the order based on part delivery order value but i know there are changes make for this calculations in 7.6.2 since we had issues with rounding and klarna that has been fixed.

---

<div class="post-metadata">

**Author:** ![aram](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/aram/32/19_2.png) [@aram](https://forum.litium.com/u/aram)\
**Post date:** [May 28, 2021, 10:05am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/5 "2021-05-28T10:05:39Z")

</div>

Other part deliveries and orders that has shipping fee \> 0 is calculated and handled correctly so the problem occures only when the shipping fee is 0.  
The shiiping fee calculation is using the standard calculator and in these cases the shipping fee is set to 0 by the campaign engine since the user has got some campaign (vouucher code, orderValue \> X etc).

It seems like the ERP connect recalculates the delivery fee instead of just get data from the origin order. And it seems like it doesn’t take the campaign data into consideration in the calculation.

---

<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:** [June 25, 2021, 10:06am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/6 "2021-06-25T10:06:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [June 30, 2021, 8:34am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/7 "2021-06-30T08:34:24Z")

</div>

You did not mention the campaign earlier, we will double check the scenario with shipping fee set to 0 by campaign to see the outcome.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [June 30, 2021, 9:33am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/8 "2021-06-30T09:33:29Z")

</div>

Hi Aram, we could now reproduce this and you are right when the shipping fee is set to 0 by a campaign then it becomes incorrect. Can you report a bug on this please?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [July 1, 2021, 8:39am UTC](https://forum.litium.com/t/partial-delivery-free-shipping/2072/9 "2021-07-01T08:39:02Z")

</div>

Bug reported on this by Aram:  
[https://docs.litium.com/support/bugs/bug\_details?id=56091](https://docs.litium.com/support/bugs/bug_details?id=56091)
