PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.13k stars 4.8k forks source link

Bug in Invoice Calculation when Editing Order Details #35062

Open skyliners4 opened 8 months ago

skyliners4 commented 8 months ago

Prerequisites

Describe the bug and add attachments

When a product is physically removed from the shop, and then the order details are edited (e.g., changing customer address or carrier), the invoice calculation recalculates the total product amount to 0.

Expected behavior

The invoice total should remain unchanged after editing order details.

Steps to reproduce

  1. Place an order with at least one product.
  2. Generate the invoice.
  3. Physically delete the product from the shop.
  4. Edit the order details (e.g., change customer address or carrier).

PrestaShop version(s) where the bug happened

1.7.8.3 8.1.3

PHP version(s) where the bug happened

No response

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

AureRita commented 8 months ago

Hi @skyliners4 ,

Thank you for your report, I reproduce the issue with PrestaShop version 8.1.x, as you can see :

recording(59).webm

I'll add this to the backlog so it can be fixed.

Please be aware that some issues might take a very long time to be resolved. If this one is important to you and you cannot wait for it to be fixed on the project’s own time, we strongly suggest you consider contacting a professional to help you.

If you fix the issue on your end, please contribute it back to the project. Remember that the more people contribute, the better PrestaShop becomes for everyone.

Thanks