{"action":"created","comment":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments/43137779","id":43137779,"diff_hunk":"@@ -116,11 +118,12 @@ angular.module('bhima.services')\n \t\treturn JSON.stringify(result, null, 2);\n \t}\n \n-\tfunction builder(preData, fileName, fileFormat) {\n+\tfunction builder(preData, fileName, fileFormat, genDate) {\n \t\tvar e,\n \t\t\t\ttoday = new Date(),\n-    \t\tdate = today.toISOString().slice(0, 19).replace('T', '-').replace(':', '-').replace(':', '-'),\n-    \t\tpath = fileName + '-' + date + '.' + fileFormat;\n+    \t\tdate = today.toISOString().slice(0, 19).replace('T', '-').replace(':', '-').replace(':', '-');","path":"client/src/js/services/exportFile.js","position":72,"original_position":72,"commit_id":"a42ca9fe7f3d950261373e511371b99fda46ee33","original_commit_id":"a42ca9fe7f3d950261373e511371b99fda46ee33","user":{"login":"DedrickEnc","id":5418919,"avatar_url":"https://avatars.githubusercontent.com/u/5418919?v=3","gravatar_id":"","url":"https://api.github.com/users/DedrickEnc","html_url":"https://github.com/DedrickEnc","followers_url":"https://api.github.com/users/DedrickEnc/followers","following_url":"https://api.github.com/users/DedrickEnc/following{/other_user}","gists_url":"https://api.github.com/users/DedrickEnc/gists{/gist_id}","starred_url":"https://api.github.com/users/DedrickEnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DedrickEnc/subscriptions","organizations_url":"https://api.github.com/users/DedrickEnc/orgs","repos_url":"https://api.github.com/users/DedrickEnc/repos","events_url":"https://api.github.com/users/DedrickEnc/events{/privacy}","received_events_url":"https://api.github.com/users/DedrickEnc/received_events","type":"User","site_admin":false},"body":"```today.toISOString().slice(0, 19).replace('T', '-').replace(':', '-').replace(':', '-')``` cette ligne est correcte? on dirait que les deux derniers replace ne sert pas a grand chose.","created_at":"2015-10-27T15:28:59Z","updated_at":"2015-10-27T15:28:59Z","html_url":"https://github.com/IMA-WorldHealth/bhima/pull/863#discussion_r43137779","pull_request_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863","_links":{"self":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments/43137779"},"html":{"href":"https://github.com/IMA-WorldHealth/bhima/pull/863#discussion_r43137779"},"pull_request":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863"}}},"pull_request":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863","id":48878999,"html_url":"https://github.com/IMA-WorldHealth/bhima/pull/863","diff_url":"https://github.com/IMA-WorldHealth/bhima/pull/863.diff","patch_url":"https://github.com/IMA-WorldHealth/bhima/pull/863.patch","issue_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/863","number":863,"state":"open","locked":false,"title":"Csv button and budget fixation","user":{"login":"mbayopanda","id":5445251,"avatar_url":"https://avatars.githubusercontent.com/u/5445251?v=3","gravatar_id":"","url":"https://api.github.com/users/mbayopanda","html_url":"https://github.com/mbayopanda","followers_url":"https://api.github.com/users/mbayopanda/followers","following_url":"https://api.github.com/users/mbayopanda/following{/other_user}","gists_url":"https://api.github.com/users/mbayopanda/gists{/gist_id}","starred_url":"https://api.github.com/users/mbayopanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbayopanda/subscriptions","organizations_url":"https://api.github.com/users/mbayopanda/orgs","repos_url":"https://api.github.com/users/mbayopanda/repos","events_url":"https://api.github.com/users/mbayopanda/events{/privacy}","received_events_url":"https://api.github.com/users/mbayopanda/received_events","type":"User","site_admin":false},"body":"In PR, we have : \r\n- Add csv button for `operating account` and `balance mensuelle` \r\n- Removing consideration of period zero in Budget Module \r\n- Aliasing Operating account, balance mensuelle and budget ","created_at":"2015-10-27T14:37:47Z","updated_at":"2015-10-27T15:28:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"352f7dfce3539f38b47931521bf58c7d24eeae84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863/commits","review_comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863/comments","review_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/863/comments","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/a42ca9fe7f3d950261373e511371b99fda46ee33","head":{"label":"mbayopanda:csv_report","ref":"csv_report","sha":"a42ca9fe7f3d950261373e511371b99fda46ee33","user":{"login":"mbayopanda","id":5445251,"avatar_url":"https://avatars.githubusercontent.com/u/5445251?v=3","gravatar_id":"","url":"https://api.github.com/users/mbayopanda","html_url":"https://github.com/mbayopanda","followers_url":"https://api.github.com/users/mbayopanda/followers","following_url":"https://api.github.com/users/mbayopanda/following{/other_user}","gists_url":"https://api.github.com/users/mbayopanda/gists{/gist_id}","starred_url":"https://api.github.com/users/mbayopanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbayopanda/subscriptions","organizations_url":"https://api.github.com/users/mbayopanda/orgs","repos_url":"https://api.github.com/users/mbayopanda/repos","events_url":"https://api.github.com/users/mbayopanda/events{/privacy}","received_events_url":"https://api.github.com/users/mbayopanda/received_events","type":"User","site_admin":false},"repo":{"id":22832403,"name":"bhima","full_name":"mbayopanda/bhima","owner":{"login":"mbayopanda","id":5445251,"avatar_url":"https://avatars.githubusercontent.com/u/5445251?v=3","gravatar_id":"","url":"https://api.github.com/users/mbayopanda","html_url":"https://github.com/mbayopanda","followers_url":"https://api.github.com/users/mbayopanda/followers","following_url":"https://api.github.com/users/mbayopanda/following{/other_user}","gists_url":"https://api.github.com/users/mbayopanda/gists{/gist_id}","starred_url":"https://api.github.com/users/mbayopanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbayopanda/subscriptions","organizations_url":"https://api.github.com/users/mbayopanda/orgs","repos_url":"https://api.github.com/users/mbayopanda/repos","events_url":"https://api.github.com/users/mbayopanda/events{/privacy}","received_events_url":"https://api.github.com/users/mbayopanda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbayopanda/bhima","description":"Continuation of the Bika HIS project with an Angular core.","fork":true,"url":"https://api.github.com/repos/mbayopanda/bhima","forks_url":"https://api.github.com/repos/mbayopanda/bhima/forks","keys_url":"https://api.github.com/repos/mbayopanda/bhima/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbayopanda/bhima/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbayopanda/bhima/teams","hooks_url":"https://api.github.com/repos/mbayopanda/bhima/hooks","issue_events_url":"https://api.github.com/repos/mbayopanda/bhima/issues/events{/number}","events_url":"https://api.github.com/repos/mbayopanda/bhima/events","assignees_url":"https://api.github.com/repos/mbayopanda/bhima/assignees{/user}","branches_url":"https://api.github.com/repos/mbayopanda/bhima/branches{/branch}","tags_url":"https://api.github.com/repos/mbayopanda/bhima/tags","blobs_url":"https://api.github.com/repos/mbayopanda/bhima/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbayopanda/bhima/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbayopanda/bhima/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbayopanda/bhima/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbayopanda/bhima/statuses/{sha}","languages_url":"https://api.github.com/repos/mbayopanda/bhima/languages","stargazers_url":"https://api.github.com/repos/mbayopanda/bhima/stargazers","contributors_url":"https://api.github.com/repos/mbayopanda/bhima/contributors","subscribers_url":"https://api.github.com/repos/mbayopanda/bhima/subscribers","subscription_url":"https://api.github.com/repos/mbayopanda/bhima/subscription","commits_url":"https://api.github.com/repos/mbayopanda/bhima/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbayopanda/bhima/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbayopanda/bhima/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbayopanda/bhima/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbayopanda/bhima/contents/{+path}","compare_url":"https://api.github.com/repos/mbayopanda/bhima/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbayopanda/bhima/merges","archive_url":"https://api.github.com/repos/mbayopanda/bhima/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbayopanda/bhima/downloads","issues_url":"https://api.github.com/repos/mbayopanda/bhima/issues{/number}","pulls_url":"https://api.github.com/repos/mbayopanda/bhima/pulls{/number}","milestones_url":"https://api.github.com/repos/mbayopanda/bhima/milestones{/number}","notifications_url":"https://api.github.com/repos/mbayopanda/bhima/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbayopanda/bhima/labels{/name}","releases_url":"https://api.github.com/repos/mbayopanda/bhima/releases{/id}","created_at":"2014-08-11T08:40:29Z","updated_at":"2015-03-26T15:23:36Z","pushed_at":"2015-10-27T14:33:56Z","git_url":"git://github.com/mbayopanda/bhima.git","ssh_url":"git@github.com:mbayopanda/bhima.git","clone_url":"https://github.com/mbayopanda/bhima.git","svn_url":"https://github.com/mbayopanda/bhima","homepage":null,"size":101865,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"IMA-WorldHealth:development","ref":"development","sha":"da1d5968bebb1bcd8a5ba1a1b11f8fb838c1869d","user":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars.githubusercontent.com/u/5330583?v=3","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"repo":{"id":15043926,"name":"bhima","full_name":"IMA-WorldHealth/bhima","owner":{"login":"IMA-WorldHealth","id":5330583,"avatar_url":"https://avatars.githubusercontent.com/u/5330583?v=3","gravatar_id":"","url":"https://api.github.com/users/IMA-WorldHealth","html_url":"https://github.com/IMA-WorldHealth","followers_url":"https://api.github.com/users/IMA-WorldHealth/followers","following_url":"https://api.github.com/users/IMA-WorldHealth/following{/other_user}","gists_url":"https://api.github.com/users/IMA-WorldHealth/gists{/gist_id}","starred_url":"https://api.github.com/users/IMA-WorldHealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IMA-WorldHealth/subscriptions","organizations_url":"https://api.github.com/users/IMA-WorldHealth/orgs","repos_url":"https://api.github.com/users/IMA-WorldHealth/repos","events_url":"https://api.github.com/users/IMA-WorldHealth/events{/privacy}","received_events_url":"https://api.github.com/users/IMA-WorldHealth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IMA-WorldHealth/bhima","description":"A hospital information system for developing countries.","fork":false,"url":"https://api.github.com/repos/IMA-WorldHealth/bhima","forks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/forks","keys_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/teams","hooks_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/hooks","issue_events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/events{/number}","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/events","assignees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/assignees{/user}","branches_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/branches{/branch}","tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/tags","blobs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/refs{/sha}","trees_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/{sha}","languages_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/languages","stargazers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/stargazers","contributors_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/contributors","subscribers_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/subscribers","subscription_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/subscription","commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/commits{/sha}","git_commits_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/git/commits{/sha}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/comments{/number}","issue_comment_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/comments{/number}","contents_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/contents/{+path}","compare_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/merges","archive_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/downloads","issues_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues{/number}","pulls_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls{/number}","milestones_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/milestones{/number}","notifications_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/labels{/name}","releases_url":"https://api.github.com/repos/IMA-WorldHealth/bhima/releases{/id}","created_at":"2013-12-09T10:07:16Z","updated_at":"2015-08-26T12:16:26Z","pushed_at":"2015-10-27T15:27:01Z","git_url":"git://github.com/IMA-WorldHealth/bhima.git","ssh_url":"git@github.com:IMA-WorldHealth/bhima.git","clone_url":"https://github.com/IMA-WorldHealth/bhima.git","svn_url":"https://github.com/IMA-WorldHealth/bhima","homepage":"","size":105411,"stargazers_count":6,"watchers_count":6,"language":"Groff","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":85,"forks":10,"open_issues":85,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863"},"html":{"href":"https://github.com/IMA-WorldHealth/bhima/pull/863"},"issue":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/863"},"comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/issues/863/comments"},"review_comments":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863/comments"},"review_comment":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/pulls/863/commits"},"statuses":{"href":"https://api.github.com/repos/IMA-WorldHealth/bhima/statuses/a42ca9fe7f3d950261373e511371b99fda46ee33"}}}}