{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/4677","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/4677/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/4677/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/4677/events","html_url":"https://github.com/frappe/erpnext/pull/4677","id":128320966,"number":4677,"title":"[Feature] feature to add margin in Quotation Item and Sales Order Item","user":{"login":"mbauskar","id":11224291,"avatar_url":"https://avatars.githubusercontent.com/u/11224291?v=3","gravatar_id":"","url":"https://api.github.com/users/mbauskar","html_url":"https://github.com/mbauskar","followers_url":"https://api.github.com/users/mbauskar/followers","following_url":"https://api.github.com/users/mbauskar/following{/other_user}","gists_url":"https://api.github.com/users/mbauskar/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauskar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauskar/subscriptions","organizations_url":"https://api.github.com/users/mbauskar/orgs","repos_url":"https://api.github.com/users/mbauskar/repos","events_url":"https://api.github.com/users/mbauskar/events{/privacy}","received_events_url":"https://api.github.com/users/mbauskar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/frappe/erpnext/labels/needs-fixes","name":"needs-fixes","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-23T10:57:36Z","updated_at":"2016-02-29T11:43:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/4677","html_url":"https://github.com/frappe/erpnext/pull/4677","diff_url":"https://github.com/frappe/erpnext/pull/4677.diff","patch_url":"https://github.com/frappe/erpnext/pull/4677.patch"},"body":"Hi,\r\n\r\nUser Can apply the margin on Quotation Item and Sales Order Item using following two options.\r\n1)Price Rule: With the help of this method user can apply the margin on Quotation and Sales Order based on condition. We have added section margin on pricing rule where a user has to select the type of margin whether it is Percentage or Amount and rate or amount. The system will apply the margin on quotation item and sales order item if pricing rule is enabled.\r\n2) Apply margin direct on Item: If user wants to apply the margin without pricing rule, they can use this option. In Quotation Item and Sales Order Item, user can select the margin type and rate or amount. The system will calculate the margin and apply it on price list rate to calculate the rate of the product.\r\n\r\nRate will be calculated as follows:\r\nRate = Price List Rate + Margin Rate\r\n\r\nNote: We have applied the margin on price list rate not on the rate. So margin feature will get disabled if price list rate is not defined against the item.\r\n\r\nThanks,\r\nIndictrans Technologies Pvt Ltd"},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/190173692","html_url":"https://github.com/frappe/erpnext/pull/4677#issuecomment-190173692","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/4677","id":190173692,"user":{"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},"created_at":"2016-02-29T11:43:44Z","updated_at":"2016-02-29T11:43:44Z","body":"@mbauskar update?"}}