function get_customer_to_order in /sales/includes/db/sales_order_db.inc line 422
switch the -1 and 1 position: -1, 1 to 1, -1
I've tested the SQL query using the unswitched version and the result was wrong.
After I switched the position, the SQL query result was correct.
I've fixed this in my code and it's working properly right now.
In my case the customer credit limit calculation:
The fix:
-1, 1
to1, -1
I've tested the SQL query using the unswitched version and the result was wrong. After I switched the position, the SQL query result was correct. I've fixed this in my code and it's working properly right now.