{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/12631","repository_url":"https://api.github.com/repos/frappe/erpnext","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/12631/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/12631/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/12631/events","html_url":"https://github.com/frappe/erpnext/pull/12631","id":291152718,"number":12631,"title":"Loyalty Program","user":{"login":"manassolanki","id":20757311,"avatar_url":"https://avatars0.githubusercontent.com/u/20757311?v=4","gravatar_id":"","url":"https://api.github.com/users/manassolanki","html_url":"https://github.com/manassolanki","followers_url":"https://api.github.com/users/manassolanki/followers","following_url":"https://api.github.com/users/manassolanki/following{/other_user}","gists_url":"https://api.github.com/users/manassolanki/gists{/gist_id}","starred_url":"https://api.github.com/users/manassolanki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manassolanki/subscriptions","organizations_url":"https://api.github.com/users/manassolanki/orgs","repos_url":"https://api.github.com/users/manassolanki/repos","events_url":"https://api.github.com/users/manassolanki/events{/privacy}","received_events_url":"https://api.github.com/users/manassolanki/received_events","type":"User","site_admin":false},"labels":[{"id":593924029,"url":"https://api.github.com/repos/frappe/erpnext/labels/CRM","name":"CRM","color":"fbca04","default":false},{"id":467539099,"url":"https://api.github.com/repos/frappe/erpnext/labels/accounts","name":"accounts","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"nabinhait","id":836784,"avatar_url":"https://avatars2.githubusercontent.com/u/836784?v=4","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},"assignees":[{"login":"nabinhait","id":836784,"avatar_url":"https://avatars2.githubusercontent.com/u/836784?v=4","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":null,"comments":18,"created_at":"2018-01-24T10:15:42Z","updated_at":"2018-04-13T23:33:31Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/frappe/erpnext/pulls/12631","html_url":"https://github.com/frappe/erpnext/pull/12631","diff_url":"https://github.com/frappe/erpnext/pull/12631.diff","patch_url":"https://github.com/frappe/erpnext/pull/12631.patch"},"body":"### Note:\r\n- There can be multiple Loyalty Programs.\r\n- All the related customers can be auto opt-in for the program or can also be done manually from the customer doctype. \r\n- The collection factor can be flat or tiered on the basis of the total spent done by the customer.\r\n- All the loyalty points will be stored in the simple ledger after booking the income (via sales invoice only).\r\n- All the loyalty points earned has expiry date calculated as per the loyalty program.\r\n- Loyalty points will be deleted after canceling the invoice.\r\n- Redemption will be done via the Coupon/Gift Card (WIP) (Depends on https://github.com/frappe/erpnext/pull/12559)\r\n\r\n#### Loyalty Program\r\n![loyalty program](https://user-images.githubusercontent.com/20757311/35326700-735b345e-011d-11e8-802b-2849649914fc.png)\r\n\r\n\r\n#### Loyalty Point Entry/Ledger\r\n![image](https://user-images.githubusercontent.com/20757311/35326551-0e3fe470-011d-11e8-97af-cc3b38d18f5d.png)\r\n\r\n\r\n#### Loyalty Point in Customer record\r\n![image](https://user-images.githubusercontent.com/20757311/35326530-f5122206-011c-11e8-94c3-e07d144c5274.png)\r\n\r\nFixes https://github.com/frappe/erpnext/issues/12322\r\nFixes https://github.com/frappe/erpnext/issues/12790"},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/381284197","html_url":"https://github.com/frappe/erpnext/pull/12631#issuecomment-381284197","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/12631","id":381284197,"user":{"login":"Olawale1","id":9269337,"avatar_url":"https://avatars1.githubusercontent.com/u/9269337?v=4","gravatar_id":"","url":"https://api.github.com/users/Olawale1","html_url":"https://github.com/Olawale1","followers_url":"https://api.github.com/users/Olawale1/followers","following_url":"https://api.github.com/users/Olawale1/following{/other_user}","gists_url":"https://api.github.com/users/Olawale1/gists{/gist_id}","starred_url":"https://api.github.com/users/Olawale1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Olawale1/subscriptions","organizations_url":"https://api.github.com/users/Olawale1/orgs","repos_url":"https://api.github.com/users/Olawale1/repos","events_url":"https://api.github.com/users/Olawale1/events{/privacy}","received_events_url":"https://api.github.com/users/Olawale1/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T23:33:31Z","updated_at":"2018-04-13T23:33:31Z","author_association":"NONE","body":"Hi @manassolanki \r\n\r\nThanks for this great work. It was almost heart-breaking to hear this will not be available for offline POS at inception after waiting for so long! Could you please clarify the reason why? As far as I see, the parameters are set in documents which are anyway created by transactions in Offline POS (Customer Master, Sales Invoice) so I thought the points would accrue automatically regardless of which channel the transactions are generated from\r\n\r\nPlease confirm\r\n\r\nThanks"}}
{"actor":{"display_login":"Olawale1"}}