{"action":"created","comment":{"url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/comments/232993052","pull_request_review_id":174307742,"id":232993052,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjk5MzA1Mg==","diff_hunk":"@@ -948,6 +948,7 @@ function createFromClone($socid=0)\n \t\t$this->close_code         = '';\n \t\t$this->close_note         = '';\n \t\t$this->products = $this->lines;\t// Tant que products encore utilise\n+\t\t$this->entity = $conf->entity;","path":"htdocs/compta/facture/class/facture.class.php","position":13,"original_position":13,"commit_id":"218f3cd78b8000d3ceaf45234a1762bde419d428","original_commit_id":"218f3cd78b8000d3ceaf45234a1762bde419d428","user":{"login":"hregis","id":454387,"node_id":"MDQ6VXNlcjQ1NDM4Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/454387?v=4","gravatar_id":"","url":"https://api.github.com/users/hregis","html_url":"https://github.com/hregis","followers_url":"https://api.github.com/users/hregis/followers","following_url":"https://api.github.com/users/hregis/following{/other_user}","gists_url":"https://api.github.com/users/hregis/gists{/gist_id}","starred_url":"https://api.github.com/users/hregis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hregis/subscriptions","organizations_url":"https://api.github.com/users/hregis/orgs","repos_url":"https://api.github.com/users/hregis/repos","events_url":"https://api.github.com/users/hregis/events{/privacy}","received_events_url":"https://api.github.com/users/hregis/received_events","type":"User","site_admin":false},"body":"@atm-quentin \r\nif you share the invoices or others, an invoice of the entity 2 will be visible on the entity 1, if you clone an invoice of the entity 2 from the entity 1 it is necessary that the cloned invoice keeps the id of entity 2!","created_at":"2018-11-13T11:08:13Z","updated_at":"2018-11-13T11:08:13Z","html_url":"https://github.com/Dolibarr/dolibarr/pull/10008#discussion_r232993052","pull_request_url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/comments/232993052"},"html":{"href":"https://github.com/Dolibarr/dolibarr/pull/10008#discussion_r232993052"},"pull_request":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008"}},"in_reply_to_id":232985579},"pull_request":{"url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008","id":230420327,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDIwMzI3","html_url":"https://github.com/Dolibarr/dolibarr/pull/10008","diff_url":"https://github.com/Dolibarr/dolibarr/pull/10008.diff","patch_url":"https://github.com/Dolibarr/dolibarr/pull/10008.patch","issue_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/10008","number":10008,"state":"open","locked":false,"title":"Fix multicompany invoice ","user":{"login":"atm-quentin","id":21307529,"node_id":"MDQ6VXNlcjIxMzA3NTI5","avatar_url":"https://avatars0.githubusercontent.com/u/21307529?v=4","gravatar_id":"","url":"https://api.github.com/users/atm-quentin","html_url":"https://github.com/atm-quentin","followers_url":"https://api.github.com/users/atm-quentin/followers","following_url":"https://api.github.com/users/atm-quentin/following{/other_user}","gists_url":"https://api.github.com/users/atm-quentin/gists{/gist_id}","starred_url":"https://api.github.com/users/atm-quentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm-quentin/subscriptions","organizations_url":"https://api.github.com/users/atm-quentin/orgs","repos_url":"https://api.github.com/users/atm-quentin/repos","events_url":"https://api.github.com/users/atm-quentin/events{/privacy}","received_events_url":"https://api.github.com/users/atm-quentin/received_events","type":"User","site_admin":false},"body":"# Fix Manage multicompany for invoice\r\n\r\n\r\n","created_at":"2018-11-13T10:24:18Z","updated_at":"2018-11-13T11:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71e9701192d7fb64969590eb42244d1e93a6e997","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008/commits","review_comments_url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008/comments","review_comment_url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/10008/comments","statuses_url":"https://api.github.com/repos/Dolibarr/dolibarr/statuses/218f3cd78b8000d3ceaf45234a1762bde419d428","head":{"label":"atm-quentin:FIX_Multicompany_Invoice_","ref":"FIX_Multicompany_Invoice_","sha":"218f3cd78b8000d3ceaf45234a1762bde419d428","user":{"login":"atm-quentin","id":21307529,"node_id":"MDQ6VXNlcjIxMzA3NTI5","avatar_url":"https://avatars0.githubusercontent.com/u/21307529?v=4","gravatar_id":"","url":"https://api.github.com/users/atm-quentin","html_url":"https://github.com/atm-quentin","followers_url":"https://api.github.com/users/atm-quentin/followers","following_url":"https://api.github.com/users/atm-quentin/following{/other_user}","gists_url":"https://api.github.com/users/atm-quentin/gists{/gist_id}","starred_url":"https://api.github.com/users/atm-quentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm-quentin/subscriptions","organizations_url":"https://api.github.com/users/atm-quentin/orgs","repos_url":"https://api.github.com/users/atm-quentin/repos","events_url":"https://api.github.com/users/atm-quentin/events{/privacy}","received_events_url":"https://api.github.com/users/atm-quentin/received_events","type":"User","site_admin":false},"repo":{"id":68095898,"node_id":"MDEwOlJlcG9zaXRvcnk2ODA5NTg5OA==","name":"dolibarr","full_name":"atm-quentin/dolibarr","private":false,"owner":{"login":"atm-quentin","id":21307529,"node_id":"MDQ6VXNlcjIxMzA3NTI5","avatar_url":"https://avatars0.githubusercontent.com/u/21307529?v=4","gravatar_id":"","url":"https://api.github.com/users/atm-quentin","html_url":"https://github.com/atm-quentin","followers_url":"https://api.github.com/users/atm-quentin/followers","following_url":"https://api.github.com/users/atm-quentin/following{/other_user}","gists_url":"https://api.github.com/users/atm-quentin/gists{/gist_id}","starred_url":"https://api.github.com/users/atm-quentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atm-quentin/subscriptions","organizations_url":"https://api.github.com/users/atm-quentin/orgs","repos_url":"https://api.github.com/users/atm-quentin/repos","events_url":"https://api.github.com/users/atm-quentin/events{/privacy}","received_events_url":"https://api.github.com/users/atm-quentin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/atm-quentin/dolibarr","description":"Dolibarr ERP CRM is a modern software package to manage your company or foundation activity (contacts, suppliers, invoices, orders, stocks, agenda, ...).It's opensource software (wrote with PHP language) designed for small and medium companies, foundation and freelances. You can freely install, use and distribute it as a standalone application or as a web application to use it from every internet access and media.","fork":true,"url":"https://api.github.com/repos/atm-quentin/dolibarr","forks_url":"https://api.github.com/repos/atm-quentin/dolibarr/forks","keys_url":"https://api.github.com/repos/atm-quentin/dolibarr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atm-quentin/dolibarr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atm-quentin/dolibarr/teams","hooks_url":"https://api.github.com/repos/atm-quentin/dolibarr/hooks","issue_events_url":"https://api.github.com/repos/atm-quentin/dolibarr/issues/events{/number}","events_url":"https://api.github.com/repos/atm-quentin/dolibarr/events","assignees_url":"https://api.github.com/repos/atm-quentin/dolibarr/assignees{/user}","branches_url":"https://api.github.com/repos/atm-quentin/dolibarr/branches{/branch}","tags_url":"https://api.github.com/repos/atm-quentin/dolibarr/tags","blobs_url":"https://api.github.com/repos/atm-quentin/dolibarr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atm-quentin/dolibarr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atm-quentin/dolibarr/git/refs{/sha}","trees_url":"https://api.github.com/repos/atm-quentin/dolibarr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atm-quentin/dolibarr/statuses/{sha}","languages_url":"https://api.github.com/repos/atm-quentin/dolibarr/languages","stargazers_url":"https://api.github.com/repos/atm-quentin/dolibarr/stargazers","contributors_url":"https://api.github.com/repos/atm-quentin/dolibarr/contributors","subscribers_url":"https://api.github.com/repos/atm-quentin/dolibarr/subscribers","subscription_url":"https://api.github.com/repos/atm-quentin/dolibarr/subscription","commits_url":"https://api.github.com/repos/atm-quentin/dolibarr/commits{/sha}","git_commits_url":"https://api.github.com/repos/atm-quentin/dolibarr/git/commits{/sha}","comments_url":"https://api.github.com/repos/atm-quentin/dolibarr/comments{/number}","issue_comment_url":"https://api.github.com/repos/atm-quentin/dolibarr/issues/comments{/number}","contents_url":"https://api.github.com/repos/atm-quentin/dolibarr/contents/{+path}","compare_url":"https://api.github.com/repos/atm-quentin/dolibarr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atm-quentin/dolibarr/merges","archive_url":"https://api.github.com/repos/atm-quentin/dolibarr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atm-quentin/dolibarr/downloads","issues_url":"https://api.github.com/repos/atm-quentin/dolibarr/issues{/number}","pulls_url":"https://api.github.com/repos/atm-quentin/dolibarr/pulls{/number}","milestones_url":"https://api.github.com/repos/atm-quentin/dolibarr/milestones{/number}","notifications_url":"https://api.github.com/repos/atm-quentin/dolibarr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atm-quentin/dolibarr/labels{/name}","releases_url":"https://api.github.com/repos/atm-quentin/dolibarr/releases{/id}","deployments_url":"https://api.github.com/repos/atm-quentin/dolibarr/deployments","created_at":"2016-09-13T09:48:32Z","updated_at":"2018-05-03T08:53:44Z","pushed_at":"2018-11-13T10:21:39Z","git_url":"git://github.com/atm-quentin/dolibarr.git","ssh_url":"git@github.com:atm-quentin/dolibarr.git","clone_url":"https://github.com/atm-quentin/dolibarr.git","svn_url":"https://github.com/atm-quentin/dolibarr","homepage":"http://www.dolibarr.org","size":501662,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Dolibarr:8.0","ref":"8.0","sha":"9447e66da157894a72169bf896184c2c555bb267","user":{"login":"Dolibarr","id":877491,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3NzQ5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/877491?v=4","gravatar_id":"","url":"https://api.github.com/users/Dolibarr","html_url":"https://github.com/Dolibarr","followers_url":"https://api.github.com/users/Dolibarr/followers","following_url":"https://api.github.com/users/Dolibarr/following{/other_user}","gists_url":"https://api.github.com/users/Dolibarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Dolibarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dolibarr/subscriptions","organizations_url":"https://api.github.com/users/Dolibarr/orgs","repos_url":"https://api.github.com/users/Dolibarr/repos","events_url":"https://api.github.com/users/Dolibarr/events{/privacy}","received_events_url":"https://api.github.com/users/Dolibarr/received_events","type":"Organization","site_admin":false},"repo":{"id":1957456,"node_id":"MDEwOlJlcG9zaXRvcnkxOTU3NDU2","name":"dolibarr","full_name":"Dolibarr/dolibarr","private":false,"owner":{"login":"Dolibarr","id":877491,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3NzQ5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/877491?v=4","gravatar_id":"","url":"https://api.github.com/users/Dolibarr","html_url":"https://github.com/Dolibarr","followers_url":"https://api.github.com/users/Dolibarr/followers","following_url":"https://api.github.com/users/Dolibarr/following{/other_user}","gists_url":"https://api.github.com/users/Dolibarr/gists{/gist_id}","starred_url":"https://api.github.com/users/Dolibarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dolibarr/subscriptions","organizations_url":"https://api.github.com/users/Dolibarr/orgs","repos_url":"https://api.github.com/users/Dolibarr/repos","events_url":"https://api.github.com/users/Dolibarr/events{/privacy}","received_events_url":"https://api.github.com/users/Dolibarr/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Dolibarr/dolibarr","description":"Dolibarr ERP CRM is a modern software package to manage your company or foundation activity (contacts, suppliers, invoices, orders, stocks, agenda, ...).It's opensource software (wrote with PHP language) designed for small and medium companies, foundation and freelances. You can freely install, use and distribute it as a standalone application or as a web application to use it from every internet access and media.","fork":false,"url":"https://api.github.com/repos/Dolibarr/dolibarr","forks_url":"https://api.github.com/repos/Dolibarr/dolibarr/forks","keys_url":"https://api.github.com/repos/Dolibarr/dolibarr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dolibarr/dolibarr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dolibarr/dolibarr/teams","hooks_url":"https://api.github.com/repos/Dolibarr/dolibarr/hooks","issue_events_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/events{/number}","events_url":"https://api.github.com/repos/Dolibarr/dolibarr/events","assignees_url":"https://api.github.com/repos/Dolibarr/dolibarr/assignees{/user}","branches_url":"https://api.github.com/repos/Dolibarr/dolibarr/branches{/branch}","tags_url":"https://api.github.com/repos/Dolibarr/dolibarr/tags","blobs_url":"https://api.github.com/repos/Dolibarr/dolibarr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dolibarr/dolibarr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dolibarr/dolibarr/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dolibarr/dolibarr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dolibarr/dolibarr/statuses/{sha}","languages_url":"https://api.github.com/repos/Dolibarr/dolibarr/languages","stargazers_url":"https://api.github.com/repos/Dolibarr/dolibarr/stargazers","contributors_url":"https://api.github.com/repos/Dolibarr/dolibarr/contributors","subscribers_url":"https://api.github.com/repos/Dolibarr/dolibarr/subscribers","subscription_url":"https://api.github.com/repos/Dolibarr/dolibarr/subscription","commits_url":"https://api.github.com/repos/Dolibarr/dolibarr/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dolibarr/dolibarr/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dolibarr/dolibarr/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dolibarr/dolibarr/contents/{+path}","compare_url":"https://api.github.com/repos/Dolibarr/dolibarr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dolibarr/dolibarr/merges","archive_url":"https://api.github.com/repos/Dolibarr/dolibarr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dolibarr/dolibarr/downloads","issues_url":"https://api.github.com/repos/Dolibarr/dolibarr/issues{/number}","pulls_url":"https://api.github.com/repos/Dolibarr/dolibarr/pulls{/number}","milestones_url":"https://api.github.com/repos/Dolibarr/dolibarr/milestones{/number}","notifications_url":"https://api.github.com/repos/Dolibarr/dolibarr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dolibarr/dolibarr/labels{/name}","releases_url":"https://api.github.com/repos/Dolibarr/dolibarr/releases{/id}","deployments_url":"https://api.github.com/repos/Dolibarr/dolibarr/deployments","created_at":"2011-06-26T21:55:03Z","updated_at":"2018-11-13T10:37:57Z","pushed_at":"2018-11-13T10:37:04Z","git_url":"git://github.com/Dolibarr/dolibarr.git","ssh_url":"git@github.com:Dolibarr/dolibarr.git","clone_url":"https://github.com/Dolibarr/dolibarr.git","svn_url":"https://github.com/Dolibarr/dolibarr","homepage":"https://www.dolibarr.org","size":499518,"stargazers_count":1188,"watchers_count":1188,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":898,"mirror_url":null,"archived":false,"open_issues_count":996,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":898,"open_issues":996,"watchers":1188,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008"},"html":{"href":"https://github.com/Dolibarr/dolibarr/pull/10008"},"issue":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/issues/10008"},"comments":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/issues/10008/comments"},"review_comments":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008/comments"},"review_comment":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/pulls/10008/commits"},"statuses":{"href":"https://api.github.com/repos/Dolibarr/dolibarr/statuses/218f3cd78b8000d3ceaf45234a1762bde419d428"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hregis"}}