Developer forum

Forum » Ecommerce - Standard features » Missing discount orderlines

Missing discount orderlines

Nuno Aguiar
Reply

Hi,

 

We are having an odd situation we cannot explain or reproduce but it's giving us some headaches. We have at least 4 orders already reported, but I am guessing we have 15 orders in this situation.

 

We can see that in the order SQL table, there's a reference to the voucher code used and the amount discounted, but there are no orderlines with the discount, so the orderlines total sum don't add up with the order amount.

 

The SQL queries I used:

SELECT Count(*) FROM EcomOrders AS O
WHERE O.OrderVoucherCode = 'unfairadvantage' AND O.OrderComplete ='True' AND O.OrderDeleted = 'False'
returns: 124 records

SELECT count(*) FROM EcomOrderlines WHERE
OrderlineOrderID IN (
  SELECT OrderID FROM EcomOrders AS O
  WHERE O.OrderVoucherCode = 'unfairadvantage' AND O.OrderComplete ='True' AND O.OrderDeleted = 'False'
  )
AND OrderlineType = '1'
returns: 119 records for "Unfair Advantage"

 

I looked at the log on two orders at random, and there was nothing weird about it, looked like a perfect order workflow. Imar suggested it might have something to do with some locking tables at a given time, probably between the discount engine deleting all discount orderlines and trying to re-set the orderlines again, but we are not sure.

 

Can someone take a look at that or provide more information?

 

Best Regards,

Nuno Aguiar


Replies

 
Kristian Kirkholt
Reply

Hi Nuno

We will investigate this through the Dynamicweb Support.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Nuno Aguiar
Reply

Hi Kristian,

 

Thank you. I apprecciate it.

 

Let me know if you need anything from us; database, url's,...

 

Best Regards,

Nuno Aguiar.

 
Nuno Aguiar
Reply

Hi Kristian,

 

Do you have any info on this? The client is requesting an update and reports more orders keeep coming in like that.

 

Best Regards,

Nuno Aguiar

 
Kristian Kirkholt
Reply

Hi Nuno

We are investigation this now. I have created a case 113120

Information flow through casesystem

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

 

You must be logged in to post in the forum