Developer forum

Forum » Ecommerce - Standard features » Price to Recalculate after Edit the Order Via Backend

Price to Recalculate after Edit the Order Via Backend

Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Dear Sir,

At first, I have an order with 6 products and the total order amount was $500. But one of the product in that order was out of stock so I was removed that item from the cart.

After remove the total order amount should be $400. But now it keep on showing $300.

                                          Product Price                               Discount

First time calculation >> (140+140+160+200+160+200) - (70+70+80+100+80+100)  = 500

After edit calculation >> (140+140+160+200+160) - (70+70+80+100+80) = 400 

 

Please advice me ASAP.

Thanks,

Yoon


Replies

 
Nicolai Pedersen
Reply

Do you use integratio to calculate prices?

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

 

No!

Product price was coming from Business Central via batch job but discount was created in DW itself. Also we don't have live integration setup in this website.

 

Thanks,

Yoon

 
Nicolai Pedersen
Reply

Then we have to have someone look into it. You can give us a url and an ordernumber or contact the service desk to let them investigate.

My guess is that either something custom is running or something else is going on.

Come to think of it - did you edit the order from the backend after it was made?

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

 

Yes! We did edit that order after issue faced for troubleshooting. 

I will send the url detail to the customer support (support@dynamicweb.dk)

 

Thanks

 
Nicolai Pedersen
Reply

ok - when you edit orders with discounts, you also have to manually remove the discounts for that orderline. All of them has a small red cross.

BR Nicolai

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

Yes we did. 

 
Nicolai Pedersen
Reply

Sorry - cannot reproduce this.

What version is this?

I guess you need to get those totals fixed?

You have to run a SQL on the EcomOrder table and update the values of these fields:

[OrderPriceWithVAT]
[OrderPriceWithoutVAT]
[OrderPriceVAT]
[OrderPriceVATPercent]

[OrderPriceBeforeFeesWithVAT]
[OrderPriceBeforeFeesWithoutVAT]
[OrderPriceBeforeFeesVAT]
[OrderPriceBeforeFeesVATPercent]

Sorry about the inconvenience...

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

 

DW version was 9.10.8.

URL >> https://bit.ly/3gcynkt

Order Number >> ORDER208

Please kindly help to advise!

Thanks,

Yoon

 
Nicolai Pedersen
Reply

You also have a support ticket...!

They will take care of it.

BR Nicolai

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

 

Haven't sent support ticket yet!

Should I leave this to support team?

 

Thanks,

 
Nicolai Pedersen
Reply

They have it - maybe from someone else then.

But I have send this to support.

 
Yoon Peti Nwe Dynamicweb Employee
Yoon Peti Nwe
Reply

Hi Sir,

 

Thank you very much. Looking forward to hearing from you soon :)

I had sent other issue related to the orderline discount placment this is totally separate one.

 

Thanks,

Yoon

 

You must be logged in to post in the forum