{"action":"opened","number":285,"pull_request":{"url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285","id":184390561,"html_url":"https://github.com/DigiThinkIT/awesome_cart/pull/285","diff_url":"https://github.com/DigiThinkIT/awesome_cart/pull/285.diff","patch_url":"https://github.com/DigiThinkIT/awesome_cart/pull/285.patch","issue_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/285","number":285,"state":"open","locked":false,"title":"Adds a global page body trigger to make power user settings and quotation information available to other scripts.","user":{"login":"forellana-digithinkit","id":1656249,"avatar_url":"https://avatars2.githubusercontent.com/u/1656249?v=4","gravatar_id":"","url":"https://api.github.com/users/forellana-digithinkit","html_url":"https://github.com/forellana-digithinkit","followers_url":"https://api.github.com/users/forellana-digithinkit/followers","following_url":"https://api.github.com/users/forellana-digithinkit/following{/other_user}","gists_url":"https://api.github.com/users/forellana-digithinkit/gists{/gist_id}","starred_url":"https://api.github.com/users/forellana-digithinkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forellana-digithinkit/subscriptions","organizations_url":"https://api.github.com/users/forellana-digithinkit/orgs","repos_url":"https://api.github.com/users/forellana-digithinkit/repos","events_url":"https://api.github.com/users/forellana-digithinkit/events{/privacy}","received_events_url":"https://api.github.com/users/forellana-digithinkit/received_events","type":"User","site_admin":false},"body":" - added an \"awc-poweruser-settings\" event added with the format:\r\n\r\n```json\r\n{ \r\n   \"customers\": [\r\n    {\r\n      \"customer_name\": \"<customer name id>\",\r\n      \"label\": \"<customer name as it should be displayed>\",\r\n      \"image\": \"<customer thumbnail image url>\"\r\n    }\r\n  ],\r\n  \"message\": \"Power User\" or \"Not a Power User\",\r\n  \"selected_customer\": \"<customer name selected as power user or null if none>\",\r\n  \"selected_customer_image\": \"<customer thumbnail image>\",\r\n  \"session_quotation\": {\r\n    \"customer\": \"<customer name as it appears on quotation\",\r\n    \"quotation\": \"<quotation name id>\"\r\n  }\r\n}\r\n```\r\n\r\nKept sushant's session quotation field names so his code in jhaudio_customizations doesn't break.\r\n\r\nYou can get this data by subscribing to body:\r\n\r\n```javascript\r\n$('body').on('awc-power-user-settings', (e, data) => {\r\n  // all data\r\n  console.log('power user data: ', data);\r\n\r\n  // just quotation info\r\n  console.log('session_quotation', data.session_quotation);\r\n});\r\n```","created_at":"2018-04-26T16:06:50Z","updated_at":"2018-04-26T16:06:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"forellana-digithinkit","id":1656249,"avatar_url":"https://avatars2.githubusercontent.com/u/1656249?v=4","gravatar_id":"","url":"https://api.github.com/users/forellana-digithinkit","html_url":"https://github.com/forellana-digithinkit","followers_url":"https://api.github.com/users/forellana-digithinkit/followers","following_url":"https://api.github.com/users/forellana-digithinkit/following{/other_user}","gists_url":"https://api.github.com/users/forellana-digithinkit/gists{/gist_id}","starred_url":"https://api.github.com/users/forellana-digithinkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forellana-digithinkit/subscriptions","organizations_url":"https://api.github.com/users/forellana-digithinkit/orgs","repos_url":"https://api.github.com/users/forellana-digithinkit/repos","events_url":"https://api.github.com/users/forellana-digithinkit/events{/privacy}","received_events_url":"https://api.github.com/users/forellana-digithinkit/received_events","type":"User","site_admin":false},"assignees":[{"login":"forellana-digithinkit","id":1656249,"avatar_url":"https://avatars2.githubusercontent.com/u/1656249?v=4","gravatar_id":"","url":"https://api.github.com/users/forellana-digithinkit","html_url":"https://github.com/forellana-digithinkit","followers_url":"https://api.github.com/users/forellana-digithinkit/followers","following_url":"https://api.github.com/users/forellana-digithinkit/following{/other_user}","gists_url":"https://api.github.com/users/forellana-digithinkit/gists{/gist_id}","starred_url":"https://api.github.com/users/forellana-digithinkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forellana-digithinkit/subscriptions","organizations_url":"https://api.github.com/users/forellana-digithinkit/orgs","repos_url":"https://api.github.com/users/forellana-digithinkit/repos","events_url":"https://api.github.com/users/forellana-digithinkit/events{/privacy}","received_events_url":"https://api.github.com/users/forellana-digithinkit/received_events","type":"User","site_admin":false},{"login":"vjFaLk","id":6697133,"avatar_url":"https://avatars3.githubusercontent.com/u/6697133?v=4","gravatar_id":"","url":"https://api.github.com/users/vjFaLk","html_url":"https://github.com/vjFaLk","followers_url":"https://api.github.com/users/vjFaLk/followers","following_url":"https://api.github.com/users/vjFaLk/following{/other_user}","gists_url":"https://api.github.com/users/vjFaLk/gists{/gist_id}","starred_url":"https://api.github.com/users/vjFaLk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjFaLk/subscriptions","organizations_url":"https://api.github.com/users/vjFaLk/orgs","repos_url":"https://api.github.com/users/vjFaLk/repos","events_url":"https://api.github.com/users/vjFaLk/events{/privacy}","received_events_url":"https://api.github.com/users/vjFaLk/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285/commits","review_comments_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285/comments","review_comment_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/285/comments","statuses_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/statuses/baae76aa7c720773e3f0a65cd4328218578e5949","head":{"label":"forellana-digithinkit:dev-poweruser-passing-quotation-info","ref":"dev-poweruser-passing-quotation-info","sha":"baae76aa7c720773e3f0a65cd4328218578e5949","user":{"login":"forellana-digithinkit","id":1656249,"avatar_url":"https://avatars2.githubusercontent.com/u/1656249?v=4","gravatar_id":"","url":"https://api.github.com/users/forellana-digithinkit","html_url":"https://github.com/forellana-digithinkit","followers_url":"https://api.github.com/users/forellana-digithinkit/followers","following_url":"https://api.github.com/users/forellana-digithinkit/following{/other_user}","gists_url":"https://api.github.com/users/forellana-digithinkit/gists{/gist_id}","starred_url":"https://api.github.com/users/forellana-digithinkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forellana-digithinkit/subscriptions","organizations_url":"https://api.github.com/users/forellana-digithinkit/orgs","repos_url":"https://api.github.com/users/forellana-digithinkit/repos","events_url":"https://api.github.com/users/forellana-digithinkit/events{/privacy}","received_events_url":"https://api.github.com/users/forellana-digithinkit/received_events","type":"User","site_admin":false},"repo":{"id":113204625,"name":"awesome_cart","full_name":"forellana-digithinkit/awesome_cart","owner":{"login":"forellana-digithinkit","id":1656249,"avatar_url":"https://avatars2.githubusercontent.com/u/1656249?v=4","gravatar_id":"","url":"https://api.github.com/users/forellana-digithinkit","html_url":"https://github.com/forellana-digithinkit","followers_url":"https://api.github.com/users/forellana-digithinkit/followers","following_url":"https://api.github.com/users/forellana-digithinkit/following{/other_user}","gists_url":"https://api.github.com/users/forellana-digithinkit/gists{/gist_id}","starred_url":"https://api.github.com/users/forellana-digithinkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forellana-digithinkit/subscriptions","organizations_url":"https://api.github.com/users/forellana-digithinkit/orgs","repos_url":"https://api.github.com/users/forellana-digithinkit/repos","events_url":"https://api.github.com/users/forellana-digithinkit/events{/privacy}","received_events_url":"https://api.github.com/users/forellana-digithinkit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/forellana-digithinkit/awesome_cart","description":"Awesome cart is an extension to erpnext's Shopping cart. It adds guest management and a single page cart/checkout experience.","fork":true,"url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart","forks_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/forks","keys_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/teams","hooks_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/hooks","issue_events_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/issues/events{/number}","events_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/events","assignees_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/assignees{/user}","branches_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/branches{/branch}","tags_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/tags","blobs_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/git/refs{/sha}","trees_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/statuses/{sha}","languages_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/languages","stargazers_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/stargazers","contributors_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/contributors","subscribers_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/subscribers","subscription_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/subscription","commits_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/commits{/sha}","git_commits_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/git/commits{/sha}","comments_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/comments{/number}","issue_comment_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/issues/comments{/number}","contents_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/contents/{+path}","compare_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/merges","archive_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/downloads","issues_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/issues{/number}","pulls_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/pulls{/number}","milestones_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/milestones{/number}","notifications_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/labels{/name}","releases_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/releases{/id}","deployments_url":"https://api.github.com/repos/forellana-digithinkit/awesome_cart/deployments","created_at":"2017-12-05T16:13:24Z","updated_at":"2017-12-05T16:13:26Z","pushed_at":"2018-04-26T15:57:31Z","git_url":"git://github.com/forellana-digithinkit/awesome_cart.git","ssh_url":"git@github.com:forellana-digithinkit/awesome_cart.git","clone_url":"https://github.com/forellana-digithinkit/awesome_cart.git","svn_url":"https://github.com/forellana-digithinkit/awesome_cart","homepage":null,"size":8413,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DigiThinkIT:hotfix","ref":"hotfix","sha":"4cf201bf583b843abf65758aa478994da11755ae","user":{"login":"DigiThinkIT","id":1655928,"avatar_url":"https://avatars2.githubusercontent.com/u/1655928?v=4","gravatar_id":"","url":"https://api.github.com/users/DigiThinkIT","html_url":"https://github.com/DigiThinkIT","followers_url":"https://api.github.com/users/DigiThinkIT/followers","following_url":"https://api.github.com/users/DigiThinkIT/following{/other_user}","gists_url":"https://api.github.com/users/DigiThinkIT/gists{/gist_id}","starred_url":"https://api.github.com/users/DigiThinkIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigiThinkIT/subscriptions","organizations_url":"https://api.github.com/users/DigiThinkIT/orgs","repos_url":"https://api.github.com/users/DigiThinkIT/repos","events_url":"https://api.github.com/users/DigiThinkIT/events{/privacy}","received_events_url":"https://api.github.com/users/DigiThinkIT/received_events","type":"Organization","site_admin":false},"repo":{"id":62819206,"name":"awesome_cart","full_name":"DigiThinkIT/awesome_cart","owner":{"login":"DigiThinkIT","id":1655928,"avatar_url":"https://avatars2.githubusercontent.com/u/1655928?v=4","gravatar_id":"","url":"https://api.github.com/users/DigiThinkIT","html_url":"https://github.com/DigiThinkIT","followers_url":"https://api.github.com/users/DigiThinkIT/followers","following_url":"https://api.github.com/users/DigiThinkIT/following{/other_user}","gists_url":"https://api.github.com/users/DigiThinkIT/gists{/gist_id}","starred_url":"https://api.github.com/users/DigiThinkIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigiThinkIT/subscriptions","organizations_url":"https://api.github.com/users/DigiThinkIT/orgs","repos_url":"https://api.github.com/users/DigiThinkIT/repos","events_url":"https://api.github.com/users/DigiThinkIT/events{/privacy}","received_events_url":"https://api.github.com/users/DigiThinkIT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DigiThinkIT/awesome_cart","description":"Awesome cart is an extension to erpnext's Shopping cart. It adds guest management and a single page cart/checkout experience.","fork":false,"url":"https://api.github.com/repos/DigiThinkIT/awesome_cart","forks_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/forks","keys_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/teams","hooks_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/hooks","issue_events_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/events{/number}","events_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/events","assignees_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/assignees{/user}","branches_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/branches{/branch}","tags_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/tags","blobs_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/git/refs{/sha}","trees_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/statuses/{sha}","languages_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/languages","stargazers_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/stargazers","contributors_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/contributors","subscribers_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/subscribers","subscription_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/subscription","commits_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/commits{/sha}","git_commits_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/git/commits{/sha}","comments_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/comments{/number}","issue_comment_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/comments{/number}","contents_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/contents/{+path}","compare_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/merges","archive_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/downloads","issues_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues{/number}","pulls_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls{/number}","milestones_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/milestones{/number}","notifications_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/labels{/name}","releases_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/releases{/id}","deployments_url":"https://api.github.com/repos/DigiThinkIT/awesome_cart/deployments","created_at":"2016-07-07T15:48:56Z","updated_at":"2018-04-18T15:17:06Z","pushed_at":"2018-04-24T10:39:31Z","git_url":"git://github.com/DigiThinkIT/awesome_cart.git","ssh_url":"git@github.com:DigiThinkIT/awesome_cart.git","clone_url":"https://github.com/DigiThinkIT/awesome_cart.git","svn_url":"https://github.com/DigiThinkIT/awesome_cart","homepage":null,"size":8434,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":11,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285"},"html":{"href":"https://github.com/DigiThinkIT/awesome_cart/pull/285"},"issue":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/285"},"comments":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/DigiThinkIT/awesome_cart/statuses/baae76aa7c720773e3f0a65cd4328218578e5949"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":11,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"forellana-digithinkit"}}