{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/10861","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/10861/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/10861/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/10861/events","html_url":"https://github.com/frappe/erpnext/issues/10861","id":259146035,"number":10861,"title":"Customer credit limits","user":{"login":"turner-james","id":17749712,"avatar_url":"https://avatars1.githubusercontent.com/u/17749712?v=4","gravatar_id":"","url":"https://api.github.com/users/turner-james","html_url":"https://github.com/turner-james","followers_url":"https://api.github.com/users/turner-james/followers","following_url":"https://api.github.com/users/turner-james/following{/other_user}","gists_url":"https://api.github.com/users/turner-james/gists{/gist_id}","starred_url":"https://api.github.com/users/turner-james/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turner-james/subscriptions","organizations_url":"https://api.github.com/users/turner-james/orgs","repos_url":"https://api.github.com/users/turner-james/repos","events_url":"https://api.github.com/users/turner-james/events{/privacy}","received_events_url":"https://api.github.com/users/turner-james/received_events","type":"User","site_admin":false},"labels":[{"id":467539099,"url":"https://api.github.com/repos/frappe/erpnext/labels/accounts","name":"accounts","color":"fbca04","default":false},{"id":194432331,"url":"https://api.github.com/repos/frappe/erpnext/labels/paid%20development","name":"paid development","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-09-20T12:32:07Z","updated_at":"2017-10-24T13:13:40Z","closed_at":null,"author_association":"NONE","body":"At present, ERPNext includes Customer Sales Orders in the calculation of the available credit (against the customer credit limit) that the customer has access to.\r\n\r\nI understand that this is a useful function for many users - to enable them to be alerted to credit limitations right when Sales Orders are generated, rather than waiting for the point of delivery to find out that they are unable to supply the customer because of unavailable credit limit.\r\n\r\nHowever, this does not work for some industries - including our own. We are a brick manufacturer, and we receive BULK SALES ORDERS from customers - for quantities of product that may stretch many months over the duration of a building project. The customer will be making payments every month, to ensure that they stay within their credit limit - but we need to be able to accept sales orders that will be in excess of their credit limit.\r\n\r\nMy suggestion is to build in a feature that simply allows ERPNext users to decide whether or not to include Sales Orders in the calculation, or whether to only include delivery notes and sales invoices. So, those companies who would like to be notified at Sales Order stage can remain so, but those who want the limit to be enforced at delivery note or sales invoice stage can choose so.\r\n\r\nBounty offered: https://erpnext.org/bounties/customer-credit-limits:-new-feature-to-include-or-exclude-sales-orders-from-calculation"},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/338985383","html_url":"https://github.com/frappe/erpnext/issues/10861#issuecomment-338985383","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/10861","id":338985383,"user":{"login":"tundebabzy","id":818803,"avatar_url":"https://avatars2.githubusercontent.com/u/818803?v=4","gravatar_id":"","url":"https://api.github.com/users/tundebabzy","html_url":"https://github.com/tundebabzy","followers_url":"https://api.github.com/users/tundebabzy/followers","following_url":"https://api.github.com/users/tundebabzy/following{/other_user}","gists_url":"https://api.github.com/users/tundebabzy/gists{/gist_id}","starred_url":"https://api.github.com/users/tundebabzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tundebabzy/subscriptions","organizations_url":"https://api.github.com/users/tundebabzy/orgs","repos_url":"https://api.github.com/users/tundebabzy/repos","events_url":"https://api.github.com/users/tundebabzy/events{/privacy}","received_events_url":"https://api.github.com/users/tundebabzy/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T13:13:40Z","updated_at":"2017-10-24T13:13:40Z","author_association":"CONTRIBUTOR","body":"Hi @ashish-greycube \r\nI made some comments on the PR"}}
{"actor":{"display_login":"tundebabzy"}}