{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/5469","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/5469/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/5469/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/5469/events","html_url":"https://github.com/frappe/erpnext/issues/5469","id":159886989,"number":5469,"title":"Stock Updates of 'Product Bundle' via Rest API","user":{"login":"dhav-d","id":9415429,"avatar_url":"https://avatars.githubusercontent.com/u/9415429?v=3","gravatar_id":"","url":"https://api.github.com/users/dhav-d","html_url":"https://github.com/dhav-d","followers_url":"https://api.github.com/users/dhav-d/followers","following_url":"https://api.github.com/users/dhav-d/following{/other_user}","gists_url":"https://api.github.com/users/dhav-d/gists{/gist_id}","starred_url":"https://api.github.com/users/dhav-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhav-d/subscriptions","organizations_url":"https://api.github.com/users/dhav-d/orgs","repos_url":"https://api.github.com/users/dhav-d/repos","events_url":"https://api.github.com/users/dhav-d/events{/privacy}","received_events_url":"https://api.github.com/users/dhav-d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nabinhait","id":836784,"avatar_url":"https://avatars.githubusercontent.com/u/836784?v=3","gravatar_id":"","url":"https://api.github.com/users/nabinhait","html_url":"https://github.com/nabinhait","followers_url":"https://api.github.com/users/nabinhait/followers","following_url":"https://api.github.com/users/nabinhait/following{/other_user}","gists_url":"https://api.github.com/users/nabinhait/gists{/gist_id}","starred_url":"https://api.github.com/users/nabinhait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabinhait/subscriptions","organizations_url":"https://api.github.com/users/nabinhait/orgs","repos_url":"https://api.github.com/users/nabinhait/repos","events_url":"https://api.github.com/users/nabinhait/events{/privacy}","received_events_url":"https://api.github.com/users/nabinhait/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/frappe/erpnext/milestones/26","html_url":"https://github.com/frappe/erpnext/milestones/ERPNext%207","labels_url":"https://api.github.com/repos/frappe/erpnext/milestones/26/labels","id":1455410,"number":26,"title":"ERPNext 7","description":"","creator":{"login":"rmehta","id":140076,"avatar_url":"https://avatars.githubusercontent.com/u/140076?v=3","gravatar_id":"","url":"https://api.github.com/users/rmehta","html_url":"https://github.com/rmehta","followers_url":"https://api.github.com/users/rmehta/followers","following_url":"https://api.github.com/users/rmehta/following{/other_user}","gists_url":"https://api.github.com/users/rmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/rmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmehta/subscriptions","organizations_url":"https://api.github.com/users/rmehta/orgs","repos_url":"https://api.github.com/users/rmehta/repos","events_url":"https://api.github.com/users/rmehta/events{/privacy}","received_events_url":"https://api.github.com/users/rmehta/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":5,"state":"open","created_at":"2015-12-11T04:56:46Z","updated_at":"2016-06-15T06:00:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-06-13T07:19:27Z","updated_at":"2016-06-15T06:26:10Z","closed_at":null,"body":"Following are the observations with the stock calculations when 'submitting' invoices directly through Rest API.\r\n\r\nThe value of particular stock item (which is set as 'product bundle' to anther item) remains 0 hence the balance qty in stock ledger remains as it is, thus misrepresenting stock balances.\r\n\r\nIt seems the 'product bundle' assigned to each item are not getting triggered when submitting an invoice directly via Rest API. \r\n\r\nWe observed while creating draft invoices via Rest API is perfect and the stock trigger for 'product bundle' is applied perfectly when submitting that invoice from erpnext.com\r\n\r\nThus making the process for creating invoices via Rest API mute. Please help.\r\n\r\nHere's the link to the discussion topic for the same\r\nhttps://discuss.erpnext.com/t/inventory-balance-quantity-problem/12995/4\r\n\r\nThanks! :)"},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/226099015","html_url":"https://github.com/frappe/erpnext/issues/5469#issuecomment-226099015","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/5469","id":226099015,"user":{"login":"nabinhait","id":836784,"avatar_url":"https://avatars.githubusercontent.com/u/836784?v=3","gravatar_id":"","url":"https://api.github.com/users/nabinhait","html_url":"https://github.com/nabinhait","followers_url":"https://api.github.com/users/nabinhait/followers","following_url":"https://api.github.com/users/nabinhait/following{/other_user}","gists_url":"https://api.github.com/users/nabinhait/gists{/gist_id}","starred_url":"https://api.github.com/users/nabinhait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nabinhait/subscriptions","organizations_url":"https://api.github.com/users/nabinhait/orgs","repos_url":"https://api.github.com/users/nabinhait/repos","events_url":"https://api.github.com/users/nabinhait/events{/privacy}","received_events_url":"https://api.github.com/users/nabinhait/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T06:26:10Z","updated_at":"2016-06-15T06:26:10Z","body":"@dhav-d I have checked the code related to product bundle, but could not found any issue which can lead to the problem. Can you please share the input data (json) of the Sales Invoice?"}}
{"actor":{"display_login":"nabinhait"}}