View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004130||OXID eShop (all versions)||2. ----- eShop backend (admin) -----||public||2012-06-06 17:52||2012-11-14 15:09|
|Target Version||Fixed in Version|
|Summary||0004130: Discount is calculated after editing old orders|
|Description||For instance a customer purchased a basket with 3 positions/products.|
After one week the the customer sent back one position/product.
During that week the admin started a discount over the whole shop.
If now the admin cancel that product, the other positions/products are recalculated with the discount which is now activated.
We found out that the discount is mentioned in version 4.5.9 in the separeted discount row. And in the version 4.6.1 the products are directly reduced in the price.
|Steps To Reproduce||1. purchase an order with more than one product|
2. activate a discount
3. go to order administration and cancel one product of your order
4. compare the old price with new price
|Tags||No tags attached.|
discount-row.png (12,812 bytes)
discount-row.png (12,812 bytes)
Reminder sent to: dixeno
Hi, thanks a lot for submitting this issue, but it is not a bug, because in eShop if you edit order in admin, order will be recalculated according new circumstances. If products prices were changed, order would be recalculated with new prices, discounts and etc.
Also in new 4.6.1 version the discount still is written in a separate line, unless discount is created with parameter "From:0"- then discount is applied directly on the product base price, so prices shown entirely in eShop are already reduced by that discount, but discount is not shown as special/separate discount in basket.
Thanks for the answer...
But it makes no sense to calculate old orders on new circumstances, because the customer bought products in old circumstances. So in my point of view a contract is enclosed in old circumstances and if the same customer wanna buy new products or send back some other products, then it should only effect that new product changes and not the other products, because the shop owner and customer has got still a contract under old circumstances for the other products.
Do you get my point?
The point is, when updating payment date or shipping date for a particular order it is not necessary to recalculate the complete basket - especially when regarding only actual circumstances. Imagine a customer has placed an order with a special discount which is valid one week, he pays in advance via bank transfer. Then the shop owner receives the money two or three days later (after this special-discount-offer has been finished) and marks the order as payed - it will be recalculated without the discount.
So in my opinion a once placed order should never be recalculated based on actual discounts, prices or other circumstances - only with those which has been present while ordering. And it is absolutely not necessary to recalculate when only editing payment or shipment date. Why don´t save all related things in oxorderarticles?
By the way - this one is related:
This one is related also:
When the shop has to recalculate an existing order it is nessesary to take the data out of oxorderarticles and NOT out of oxarticles!!!
||and this one: https://bugs.oxid-esales.com/view.php?id=4677|