{"action":"created","comment":{"url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/comments/23636701","id":23636701,"diff_hunk":"@@ -44,6 +44,54 @@ Billing* BillingDatabase::getBilling(const int pId) {\n     return billing;\n }\n \n+QStandardItemModel *BillingDatabase::getBillingsTable(const int idProject)\n+throw(DbException*)\n+{\n+    QSqlQuery q;\n+    QStandardItemModel* retour = new QStandardItemModel();\n+\n+    retour->setColumnCount(5);\n+    retour->setHorizontalHeaderLabels(\n+                QStringList()\n+                << (\"Id\")\n+                << (\"Titre\")\n+                << (\"Numéro\")\n+                << (\"Facture/Devis\")\n+                << (\"Date\")\n+                );\n+\n+\n+    q.prepare(\n+             \"SELECT b.idBilling,title,number,isBilling,date \"\n+             \"FROM Billing b, BillingProject bp \"\n+             \"WHERE idProject = :idproject \"\n+             \"AND b.idBilling = bp.idBilling\");\n+\n+    q.bindValue(\":idproject\",idProject);\n+\n+    if(!q.exec()) {\n+        throw new DbException(\n+            \"Impossible de récupérer les Billing\",\n+            \"BddCustomer::getBillingsTable\",\n+            lastError(q),\n+            1.3);\n+    }\n+\n+    while(q.next()) {\n+        QList<QStandardItem*> ligne;\n+\n+        ligne << new QStandardItem(value(q,\"idBilling\").toString());\n+        ligne << new QStandardItem(value(q,\"title\").toString());\n+        ligne << new QStandardItem(value(q,\"number\").toString());","path":"src/database/billingdatabase.cpp","position":42,"original_position":42,"commit_id":"142c1b0a1ed7f3ceb22ff6319ef85b243f5fa82e","original_commit_id":"142c1b0a1ed7f3ceb22ff6319ef85b243f5fa82e","user":{"login":"manantsoa","id":9723625,"avatar_url":"https://avatars.githubusercontent.com/u/9723625?v=3","gravatar_id":"","url":"https://api.github.com/users/manantsoa","html_url":"https://github.com/manantsoa","followers_url":"https://api.github.com/users/manantsoa/followers","following_url":"https://api.github.com/users/manantsoa/following{/other_user}","gists_url":"https://api.github.com/users/manantsoa/gists{/gist_id}","starred_url":"https://api.github.com/users/manantsoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manantsoa/subscriptions","organizations_url":"https://api.github.com/users/manantsoa/orgs","repos_url":"https://api.github.com/users/manantsoa/repos","events_url":"https://api.github.com/users/manantsoa/events{/privacy}","received_events_url":"https://api.github.com/users/manantsoa/received_events","type":"User","site_admin":false},"body":"Effectivement t'as raison c'est très étrange ^^ J'ai fait un select directement dans la BD mais ça donne la même chose donc je sais pas XP","created_at":"2015-01-27T19:47:49Z","updated_at":"2015-01-27T19:47:49Z","html_url":"https://github.com/FACT-Team/FactDev/pull/75#discussion_r23636701","pull_request_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/comments/23636701"},"html":{"href":"https://github.com/FACT-Team/FactDev/pull/75#discussion_r23636701"},"pull_request":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75","id":28125139,"html_url":"https://github.com/FACT-Team/FactDev/pull/75","diff_url":"https://github.com/FACT-Team/FactDev/pull/75.diff","patch_url":"https://github.com/FACT-Team/FactDev/pull/75.patch","issue_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/75","number":75,"state":"open","locked":false,"title":"Sprint2/30 quotes listing","user":{"login":"manantsoa","id":9723625,"avatar_url":"https://avatars.githubusercontent.com/u/9723625?v=3","gravatar_id":"","url":"https://api.github.com/users/manantsoa","html_url":"https://github.com/manantsoa","followers_url":"https://api.github.com/users/manantsoa/followers","following_url":"https://api.github.com/users/manantsoa/following{/other_user}","gists_url":"https://api.github.com/users/manantsoa/gists{/gist_id}","starred_url":"https://api.github.com/users/manantsoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manantsoa/subscriptions","organizations_url":"https://api.github.com/users/manantsoa/orgs","repos_url":"https://api.github.com/users/manantsoa/repos","events_url":"https://api.github.com/users/manantsoa/events{/privacy}","received_events_url":"https://api.github.com/users/manantsoa/received_events","type":"User","site_admin":false},"body":"- Affichage des devis correspondants à un projet \r\n- Accès via l'arbre des clients ou par le tableau des projets\r\n- Ajout d'un label affichant le nom du client au dessus du tableau des projets lorsqu'on y accède\r\n- Ajout d'un label affichant le nom du projet au dessus du tableau des devis/factures lorsqu'on y accède","created_at":"2015-01-27T16:58:48Z","updated_at":"2015-01-27T19:47:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":{"url":"https://api.github.com/repos/FACT-Team/FactDev/milestones/3","labels_url":"https://api.github.com/repos/FACT-Team/FactDev/milestones/3/labels","id":928551,"number":3,"title":"Sprint 2 : Devis","description":"","creator":{"login":"aroquemaurel","id":2221668,"avatar_url":"https://avatars.githubusercontent.com/u/2221668?v=3","gravatar_id":"","url":"https://api.github.com/users/aroquemaurel","html_url":"https://github.com/aroquemaurel","followers_url":"https://api.github.com/users/aroquemaurel/followers","following_url":"https://api.github.com/users/aroquemaurel/following{/other_user}","gists_url":"https://api.github.com/users/aroquemaurel/gists{/gist_id}","starred_url":"https://api.github.com/users/aroquemaurel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aroquemaurel/subscriptions","organizations_url":"https://api.github.com/users/aroquemaurel/orgs","repos_url":"https://api.github.com/users/aroquemaurel/repos","events_url":"https://api.github.com/users/aroquemaurel/events{/privacy}","received_events_url":"https://api.github.com/users/aroquemaurel/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":26,"state":"open","created_at":"2015-01-09T12:55:39Z","updated_at":"2015-01-27T18:58:02Z","due_on":"2015-02-04T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75/commits","review_comments_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75/comments","review_comment_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/75/comments","statuses_url":"https://api.github.com/repos/FACT-Team/FactDev/statuses/142c1b0a1ed7f3ceb22ff6319ef85b243f5fa82e","head":{"label":"FACT-Team:sprint2/30-quotesListing","ref":"sprint2/30-quotesListing","sha":"142c1b0a1ed7f3ceb22ff6319ef85b243f5fa82e","user":{"login":"FACT-Team","id":10131121,"avatar_url":"https://avatars.githubusercontent.com/u/10131121?v=3","gravatar_id":"","url":"https://api.github.com/users/FACT-Team","html_url":"https://github.com/FACT-Team","followers_url":"https://api.github.com/users/FACT-Team/followers","following_url":"https://api.github.com/users/FACT-Team/following{/other_user}","gists_url":"https://api.github.com/users/FACT-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/FACT-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FACT-Team/subscriptions","organizations_url":"https://api.github.com/users/FACT-Team/orgs","repos_url":"https://api.github.com/users/FACT-Team/repos","events_url":"https://api.github.com/users/FACT-Team/events{/privacy}","received_events_url":"https://api.github.com/users/FACT-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":27772265,"name":"FactDev","full_name":"FACT-Team/FactDev","owner":{"login":"FACT-Team","id":10131121,"avatar_url":"https://avatars.githubusercontent.com/u/10131121?v=3","gravatar_id":"","url":"https://api.github.com/users/FACT-Team","html_url":"https://github.com/FACT-Team","followers_url":"https://api.github.com/users/FACT-Team/followers","following_url":"https://api.github.com/users/FACT-Team/following{/other_user}","gists_url":"https://api.github.com/users/FACT-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/FACT-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FACT-Team/subscriptions","organizations_url":"https://api.github.com/users/FACT-Team/orgs","repos_url":"https://api.github.com/users/FACT-Team/repos","events_url":"https://api.github.com/users/FACT-Team/events{/privacy}","received_events_url":"https://api.github.com/users/FACT-Team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FACT-Team/FactDev","description":"Billings and cost estimation","fork":false,"url":"https://api.github.com/repos/FACT-Team/FactDev","forks_url":"https://api.github.com/repos/FACT-Team/FactDev/forks","keys_url":"https://api.github.com/repos/FACT-Team/FactDev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FACT-Team/FactDev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FACT-Team/FactDev/teams","hooks_url":"https://api.github.com/repos/FACT-Team/FactDev/hooks","issue_events_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/events{/number}","events_url":"https://api.github.com/repos/FACT-Team/FactDev/events","assignees_url":"https://api.github.com/repos/FACT-Team/FactDev/assignees{/user}","branches_url":"https://api.github.com/repos/FACT-Team/FactDev/branches{/branch}","tags_url":"https://api.github.com/repos/FACT-Team/FactDev/tags","blobs_url":"https://api.github.com/repos/FACT-Team/FactDev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FACT-Team/FactDev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FACT-Team/FactDev/git/refs{/sha}","trees_url":"https://api.github.com/repos/FACT-Team/FactDev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FACT-Team/FactDev/statuses/{sha}","languages_url":"https://api.github.com/repos/FACT-Team/FactDev/languages","stargazers_url":"https://api.github.com/repos/FACT-Team/FactDev/stargazers","contributors_url":"https://api.github.com/repos/FACT-Team/FactDev/contributors","subscribers_url":"https://api.github.com/repos/FACT-Team/FactDev/subscribers","subscription_url":"https://api.github.com/repos/FACT-Team/FactDev/subscription","commits_url":"https://api.github.com/repos/FACT-Team/FactDev/commits{/sha}","git_commits_url":"https://api.github.com/repos/FACT-Team/FactDev/git/commits{/sha}","comments_url":"https://api.github.com/repos/FACT-Team/FactDev/comments{/number}","issue_comment_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/comments/{number}","contents_url":"https://api.github.com/repos/FACT-Team/FactDev/contents/{+path}","compare_url":"https://api.github.com/repos/FACT-Team/FactDev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FACT-Team/FactDev/merges","archive_url":"https://api.github.com/repos/FACT-Team/FactDev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FACT-Team/FactDev/downloads","issues_url":"https://api.github.com/repos/FACT-Team/FactDev/issues{/number}","pulls_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls{/number}","milestones_url":"https://api.github.com/repos/FACT-Team/FactDev/milestones{/number}","notifications_url":"https://api.github.com/repos/FACT-Team/FactDev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FACT-Team/FactDev/labels{/name}","releases_url":"https://api.github.com/repos/FACT-Team/FactDev/releases{/id}","created_at":"2014-12-09T15:13:31Z","updated_at":"2015-01-27T08:54:59Z","pushed_at":"2015-01-27T16:50:51Z","git_url":"git://github.com/FACT-Team/FactDev.git","ssh_url":"git@github.com:FACT-Team/FactDev.git","clone_url":"https://github.com/FACT-Team/FactDev.git","svn_url":"https://github.com/FACT-Team/FactDev","homepage":"","size":3419,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":1,"default_branch":"master"}},"base":{"label":"FACT-Team:master","ref":"master","sha":"e27b6199f9847c542cde258c83b8d147b4e91d5c","user":{"login":"FACT-Team","id":10131121,"avatar_url":"https://avatars.githubusercontent.com/u/10131121?v=3","gravatar_id":"","url":"https://api.github.com/users/FACT-Team","html_url":"https://github.com/FACT-Team","followers_url":"https://api.github.com/users/FACT-Team/followers","following_url":"https://api.github.com/users/FACT-Team/following{/other_user}","gists_url":"https://api.github.com/users/FACT-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/FACT-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FACT-Team/subscriptions","organizations_url":"https://api.github.com/users/FACT-Team/orgs","repos_url":"https://api.github.com/users/FACT-Team/repos","events_url":"https://api.github.com/users/FACT-Team/events{/privacy}","received_events_url":"https://api.github.com/users/FACT-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":27772265,"name":"FactDev","full_name":"FACT-Team/FactDev","owner":{"login":"FACT-Team","id":10131121,"avatar_url":"https://avatars.githubusercontent.com/u/10131121?v=3","gravatar_id":"","url":"https://api.github.com/users/FACT-Team","html_url":"https://github.com/FACT-Team","followers_url":"https://api.github.com/users/FACT-Team/followers","following_url":"https://api.github.com/users/FACT-Team/following{/other_user}","gists_url":"https://api.github.com/users/FACT-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/FACT-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FACT-Team/subscriptions","organizations_url":"https://api.github.com/users/FACT-Team/orgs","repos_url":"https://api.github.com/users/FACT-Team/repos","events_url":"https://api.github.com/users/FACT-Team/events{/privacy}","received_events_url":"https://api.github.com/users/FACT-Team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FACT-Team/FactDev","description":"Billings and cost estimation","fork":false,"url":"https://api.github.com/repos/FACT-Team/FactDev","forks_url":"https://api.github.com/repos/FACT-Team/FactDev/forks","keys_url":"https://api.github.com/repos/FACT-Team/FactDev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FACT-Team/FactDev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FACT-Team/FactDev/teams","hooks_url":"https://api.github.com/repos/FACT-Team/FactDev/hooks","issue_events_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/events{/number}","events_url":"https://api.github.com/repos/FACT-Team/FactDev/events","assignees_url":"https://api.github.com/repos/FACT-Team/FactDev/assignees{/user}","branches_url":"https://api.github.com/repos/FACT-Team/FactDev/branches{/branch}","tags_url":"https://api.github.com/repos/FACT-Team/FactDev/tags","blobs_url":"https://api.github.com/repos/FACT-Team/FactDev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FACT-Team/FactDev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FACT-Team/FactDev/git/refs{/sha}","trees_url":"https://api.github.com/repos/FACT-Team/FactDev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FACT-Team/FactDev/statuses/{sha}","languages_url":"https://api.github.com/repos/FACT-Team/FactDev/languages","stargazers_url":"https://api.github.com/repos/FACT-Team/FactDev/stargazers","contributors_url":"https://api.github.com/repos/FACT-Team/FactDev/contributors","subscribers_url":"https://api.github.com/repos/FACT-Team/FactDev/subscribers","subscription_url":"https://api.github.com/repos/FACT-Team/FactDev/subscription","commits_url":"https://api.github.com/repos/FACT-Team/FactDev/commits{/sha}","git_commits_url":"https://api.github.com/repos/FACT-Team/FactDev/git/commits{/sha}","comments_url":"https://api.github.com/repos/FACT-Team/FactDev/comments{/number}","issue_comment_url":"https://api.github.com/repos/FACT-Team/FactDev/issues/comments/{number}","contents_url":"https://api.github.com/repos/FACT-Team/FactDev/contents/{+path}","compare_url":"https://api.github.com/repos/FACT-Team/FactDev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FACT-Team/FactDev/merges","archive_url":"https://api.github.com/repos/FACT-Team/FactDev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FACT-Team/FactDev/downloads","issues_url":"https://api.github.com/repos/FACT-Team/FactDev/issues{/number}","pulls_url":"https://api.github.com/repos/FACT-Team/FactDev/pulls{/number}","milestones_url":"https://api.github.com/repos/FACT-Team/FactDev/milestones{/number}","notifications_url":"https://api.github.com/repos/FACT-Team/FactDev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FACT-Team/FactDev/labels{/name}","releases_url":"https://api.github.com/repos/FACT-Team/FactDev/releases{/id}","created_at":"2014-12-09T15:13:31Z","updated_at":"2015-01-27T08:54:59Z","pushed_at":"2015-01-27T16:50:51Z","git_url":"git://github.com/FACT-Team/FactDev.git","ssh_url":"git@github.com:FACT-Team/FactDev.git","clone_url":"https://github.com/FACT-Team/FactDev.git","svn_url":"https://github.com/FACT-Team/FactDev","homepage":"","size":3419,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":28,"forks":1,"open_issues":28,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75"},"html":{"href":"https://github.com/FACT-Team/FactDev/pull/75"},"issue":{"href":"https://api.github.com/repos/FACT-Team/FactDev/issues/75"},"comments":{"href":"https://api.github.com/repos/FACT-Team/FactDev/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FACT-Team/FactDev/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/FACT-Team/FactDev/statuses/142c1b0a1ed7f3ceb22ff6319ef85b243f5fa82e"}}}}