Credit Limit for Submitted Sales Orders Are Not Cummulative

Dear Experts,

We have a pretty vanilla version of ERPNext setup where we have configured 2 customers with $1,000.00 credit limit. We have an issue where Sales Orders can be submitted (without error prompt) for any customer even though the customer's total credit exposure has exceeded the credit limit. The following describes the tests which we have simulated along with the results:

Test 1 (Good Result):
1) Customer 1 has $1,000.00 credit limit configured 
2) Customer 1 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $1,001.00 for Customer 1
4) Saved the Sales Order
5) Submitted the Sales Order - error prompt saying that the credit limit has exceeded is shown and we cannot proceed further
6) This result is good

Test 2 (Bad Result):
1) Customer 2 has $1,000.00 credit limit configured 
2) Customer 2 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $500.00 for Customer 2
4) Saved the Sales Order
5) Submitted the Sales Order 
6) Sales Order is submitted successfully
7) Raised a second Sales Order fro $501.00 for Customer 2
8) Saved the Sales Order
9) Submitted the Sales Order 
10) Sales Order is submitted successfully - There is no error prompt on credit limit being exceeded. 
11) This result is unexpected

The expected result of Test 2 was to have an error prompt upon submission of the second Sales Order. Is this unexpected from your perspective as well or is there some business logic that is incorporated into the credit limit calculation which perhaps your could enlighten me on?

Would be great to know how ERPNext calculates the Credit Exposure as well.

Once again, many thanks for any help you can provide. You guys have been really great. Thank you very very much.


Javier




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/753f0f38-c3a3-468a-acdb-29eb287ba533%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

can you check?


@rushabh_mehta

Begin forwarded message:

From: Javier <bo...@gmail.com>
Subject: [erpnext-user-forum] Credit Limit for Submitted Sales Orders Are Not Cummulative
Date: 5 August 2014 8:42:40 pm IST

Dear Experts,

We have a pretty vanilla version of ERPNext setup where we have configured 2 customers with $1,000.00 credit limit. We have an issue where Sales Orders can be submitted (without error prompt) for any customer even though the customer's total credit exposure has exceeded the credit limit. The following describes the tests which we have simulated along with the results:

Test 1 (Good Result):
1) Customer 1 has $1,000.00 credit limit configured 
2) Customer 1 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $1,001.00 for Customer 1
4) Saved the Sales Order
5) Submitted the Sales Order - error prompt saying that the credit limit has exceeded is shown and we cannot proceed further
6) This result is good

Test 2 (Bad Result):
1) Customer 2 has $1,000.00 credit limit configured 
2) Customer 2 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $500.00 for Customer 2
4) Saved the Sales Order
5) Submitted the Sales Order 
6) Sales Order is submitted successfully
7) Raised a second Sales Order fro $501.00 for Customer 2
8) Saved the Sales Order
9) Submitted the Sales Order 
10) Sales Order is submitted successfully - There is no error prompt on credit limit being exceeded. 
11) This result is unexpected

The expected result of Test 2 was to have an error prompt upon submission of the second Sales Order. Is this unexpected from your perspective as well or is there some business logic that is incorporated into the credit limit calculation which perhaps your could enlighten me on?

Would be great to know how ERPNext calculates the Credit Exposure as well.

Once again, many thanks for any help you can provide. You guys have been really great. Thank you very very much.


Javier





You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/753f0f38-c3a3-468a-acdb-29eb287ba533%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


Hello Javier,

Thanks for reporting this issue.

I could replicate this issue in my test account as well. I have created Github Issue where you can follow up with us.

https://github.com/frappe/erpnext/issues/2031


On Tue, Aug 5, 2014 at 8:42 PM, Javier <bo...@gmail.com> wrote:
Dear Experts,

We have a pretty vanilla version of ERPNext setup where we have configured 2 customers with $1,000.00 credit limit. We have an issue where Sales Orders can be submitted (without error prompt) for any customer even though the customer's total credit exposure has exceeded the credit limit. The following describes the tests which we have simulated along with the results:

Test 1 (Good Result):
1) Customer 1 has $1,000.00 credit limit configured
2) Customer 1 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $1,001.00 for Customer 1
4) Saved the Sales Order
5) Submitted the Sales Order - error prompt saying that the credit limit has exceeded is shown and we cannot proceed further
6) This result is good

Test 2 (Bad Result):
1) Customer 2 has $1,000.00 credit limit configured
2) Customer 2 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $500.00 for Customer 2
4) Saved the Sales Order
5) Submitted the Sales Order
6) Sales Order is submitted successfully
7) Raised a second Sales Order fro $501.00 for Customer 2
8) Saved the Sales Order
9) Submitted the Sales Order
10) Sales Order is submitted successfully - There is no error prompt on credit limit being exceeded.
11) This result is unexpected

The expected result of Test 2 was to have an error prompt upon submission of the second Sales Order. Is this unexpected from your perspective as well or is there some business logic that is incorporated into the credit limit calculation which perhaps your could enlighten me on?

Would be great to know how ERPNext calculates the Credit Exposure as well.

Once again, many thanks for any help you can provide. You guys have been really great. Thank you very very much.


Javier




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/753f0f38-c3a3-468a-acdb-29eb287ba533%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.





Thanks and Regards,

Umair Sayyed
www.erpnext.com

Dear Umair,

Thank you very much for the reply. Will follow up. 

By the way, would you be able to provide me with the formula that you use to calculate Credit Exposure of a customer? Thank you.


Javier


On Thursday, August 7, 2014 4:25:59 PM UTC+8, Umair Sayyed wrote:
Hello Javier,

Thanks for reporting this issue.

I could replicate this issue in my test account as well. I have created Github Issue where you can follow up with us.

https://github.com/frappe/erpnext/issues/2031


On Tue, Aug 5, 2014 at 8:42 PM, Javier <bo...@gmail.com> wrote:
Dear Experts,

We have a pretty vanilla version of ERPNext setup where we have configured 2 customers with $1,000.00 credit limit. We have an issue where Sales Orders can be submitted (without error prompt) for any customer even though the customer's total credit exposure has exceeded the credit limit. The following describes the tests which we have simulated along with the results:

Test 1 (Good Result):
1) Customer 1 has $1,000.00 credit limit configured 
2) Customer 1 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $1,001.00 for Customer 1
4) Saved the Sales Order
5) Submitted the Sales Order - error prompt saying that the credit limit has exceeded is shown and we cannot proceed further
6) This result is good

Test 2 (Bad Result):
1) Customer 2 has $1,000.00 credit limit configured 
2) Customer 2 has no "Open" Sales Order or Invoices etc.- Basically the customer's credit exposure is $0.00
3) Raised a Sales Order for $500.00 for Customer 2
4) Saved the Sales Order
5) Submitted the Sales Order 
6) Sales Order is submitted successfully
7) Raised a second Sales Order fro $501.00 for Customer 2
8) Saved the Sales Order
9) Submitted the Sales Order 
10) Sales Order is submitted successfully - There is no error prompt on credit limit being exceeded. 
11) This result is unexpected

The expected result of Test 2 was to have an error prompt upon submission of the second Sales Order. Is this unexpected from your perspective as well or is there some business logic that is incorporated into the credit limit calculation which perhaps your could enlighten me on?

Would be great to know how ERPNext calculates the Credit Exposure as well.

Once again, many thanks for any help you can provide. You guys have been really great. Thank you very very much.


Javier




You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/753f0f38-c3a3-468a-acdb-29eb287ba533%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.





Thanks and Regards,

Umair Sayyed
www.erpnext.com



You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/0cefca37-5db0-4724-9249-0f4711dde6bd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.