Skip to content

Customer credit limit in SO is wrong #44

Description

@aksikitaindonesia

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions