When this PR: https://github.com/PrestaShop/PrestaShop/pull/18544 is merged in the branch 1.7.7.x
We will have a different issue comparing 1.7.6 and 1.7.7.x, in fact when we add a new product to an old order with creating a new invoice and selecting free shipping, the Discounts block is missing in the first invoice created
The Discounts block should be added to the first invoice.
Steps to reproduce the behavior:
Screenshots
1.7.7.x =>

1.7.6.4 =>

To be reproduced when https://github.com/PrestaShop/PrestaShop/pull/18544 is merged.
Ping @PrestaShop/prestashop-product-team this issue should be added to the Project 1.7.7 as it is regression, is it?
Thanks!
@khouloudbelguith @colinegin @PrestaShop/prestashop-product-team
While attempting to fix this, I found where it comes from in the code, but it doesn't look like a bug, it seems like it was done on purpose, here is what is written as a comment in the code removing this block:
We're not interested in displaying the shipping discount as it is already shown as "Free Shipping".
So, should I cancel this and display the discount block even if it's only a free shipping discount?
I can do that, I just wanted to warn you before doing it.
hi @khouloudbelguith and @matthieu-rolland ,
The 1.7.7 behaviour is the right one, we should not display a discount for free shipping and "free shipping" in the total at the same time. The customer won't understand where the discount is applied in the invoice's summary of the totals.