Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer credit limit in SO is wrong #44

Open
aksikitaindonesia opened this issue Mar 31, 2021 · 0 comments
Open

Customer credit limit in SO is wrong #44

aksikitaindonesia opened this issue Mar 31, 2021 · 0 comments

Comments

@aksikitaindonesia
Copy link

aksikitaindonesia commented Mar 31, 2021

In my case the customer credit limit calculation:

  • in the SO form is wrong
  • but it's correct in the DO form

The fix:

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant