{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments/114526276","pull_request_review_id":35998332,"id":114526276,"diff_hunk":"@@ -0,0 +1,192 @@\n+var global = require('../../global');\n+\n+module.exports = function (expeditions) {\n+\n+    var locale = global.config.locale;\n+\n+    var moment = require('moment');\n+    moment.locale(locale.name);\n+\n+    var header = { text: \"BON PENGELUARAN BARANG\", style: ['size20', 'bold', 'headerMargin', {}], alignment: 'center' };\n+\n+    var table1 = [\n+        {\n+            columns: [\n+                { width: '40%', text: \"No Bon\", style: ['size12', 'bold'], alignment: 'left' },\n+                { width: '60%', text: expeditions.code, style: ['size12'], alignment: 'left' }\n+            ]\n+        },\n+        {\n+            columns: [\n+                { width: '40%', text: \"Tanggal\", style: ['size12', 'bold'], alignment: 'left' },\n+                { width: '60%', text: `${moment(expeditions._createdDate).format(locale.date.format)}`, style: ['size12'], alignment: 'left' }\n+            ]\n+        }\n+    ]\n+\n+    var table2 = [\n+        {\n+            columns: [\n+                { width: '40%', text: \"Tujuan\", style: ['size12', 'bold'] },\n+                { width: '60%', text: expeditions.spkDocuments[0].destination.name || \"\", style: ['size12'] }\n+            ]\n+        },\n+        {\n+            columns: [\n+                { width: '40%', text: \"Ekspedisi\", style: ['size12', 'bold'] },\n+                { width: '60%', text: expeditions.expedition.name || expeditions.expedition, style: ['size12'] }\n+            ]\n+        },\n+        {\n+            columns: [\n+                { width: '40%', text: \"Total Berat (Kg)\", style: ['size12', 'bold'] },\n+                { width: '60%', text: expeditions.weight, style: ['size12'] }\n+            ]\n+        }\n+    ];\n+\n+    var subHeader = {\n+        columns: [\n+            {\n+                width: \"50%\",\n+                stack: [\n+                    { text: \"PT EFRATA RETAILINDO\", style: ['size12', 'bold'] },\n+                    {\n+                        text: \"Kel. Banaran, Kec. Grogol, Kab.Sukoharjo 57193 Jawa Tengah, Indonesia\",\n+                        style: ['size12']\n+                    }\n+                ]\n+            },\n+            {\n+                width: \"50%\",\n+                columns: [\n+                    {\n+                        width: '30%',\n+                        text: ''\n+                    },\n+                    {\n+                        width: '70%',\n+                        stack: table1,\n+                    }\n+                ],\n+                alignment: 'right'\n+            }\n+        ],\n+        style: ['marginTop20']\n+    };\n+\n+    var thead = [\n+        { text: \"No\", style: 'tableHeader' },\n+        { text: \"Packing List\", style: 'tableHeader' },\n+        { text: \"Beart (Kg)\", style: 'tableHeader' },\n+        { text: \"Total Barang\", style: 'tableHeader' }\n+    ]","path":"src/pdf/definitions/efr-kb-exp.js","position":83,"original_position":83,"commit_id":"dc60fb471c6ef97b89713e89fb90c4eb0f07dc43","original_commit_id":"dc60fb471c6ef97b89713e89fb90c4eb0f07dc43","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2017-05-03T11:57:14Z","updated_at":"2017-05-03T11:57:15Z","html_url":"https://github.com/danliris/bateeq-module/pull/206#discussion_r114526276","pull_request_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/206","_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments/114526276"},"html":{"href":"https://github.com/danliris/bateeq-module/pull/206#discussion_r114526276"},"pull_request":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/206"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/bateeq-module/pulls/206","id":118744565,"html_url":"https://github.com/danliris/bateeq-module/pull/206","diff_url":"https://github.com/danliris/bateeq-module/pull/206.diff","patch_url":"https://github.com/danliris/bateeq-module/pull/206.patch","issue_url":"https://api.github.com/repos/danliris/bateeq-module/issues/206","number":206,"state":"open","locked":false,"title":"add manager for pdf","user":{"login":"danielmoonlay","id":13761378,"avatar_url":"https://avatars0.githubusercontent.com/u/13761378?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmoonlay","html_url":"https://github.com/danielmoonlay","followers_url":"https://api.github.com/users/danielmoonlay/followers","following_url":"https://api.github.com/users/danielmoonlay/following{/other_user}","gists_url":"https://api.github.com/users/danielmoonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmoonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmoonlay/subscriptions","organizations_url":"https://api.github.com/users/danielmoonlay/orgs","repos_url":"https://api.github.com/users/danielmoonlay/repos","events_url":"https://api.github.com/users/danielmoonlay/events{/privacy}","received_events_url":"https://api.github.com/users/danielmoonlay/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-05-03T11:57:02Z","updated_at":"2017-05-03T11:57:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e44042f031a3a7612a97c098b7a412d84e6e3906","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/206/commits","review_comments_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/206/comments","review_comment_url":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/bateeq-module/issues/206/comments","statuses_url":"https://api.github.com/repos/danliris/bateeq-module/statuses/dc60fb471c6ef97b89713e89fb90c4eb0f07dc43","head":{"label":"danielmoonlay:dev","ref":"dev","sha":"dc60fb471c6ef97b89713e89fb90c4eb0f07dc43","user":{"login":"danielmoonlay","id":13761378,"avatar_url":"https://avatars0.githubusercontent.com/u/13761378?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmoonlay","html_url":"https://github.com/danielmoonlay","followers_url":"https://api.github.com/users/danielmoonlay/followers","following_url":"https://api.github.com/users/danielmoonlay/following{/other_user}","gists_url":"https://api.github.com/users/danielmoonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmoonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmoonlay/subscriptions","organizations_url":"https://api.github.com/users/danielmoonlay/orgs","repos_url":"https://api.github.com/users/danielmoonlay/repos","events_url":"https://api.github.com/users/danielmoonlay/events{/privacy}","received_events_url":"https://api.github.com/users/danielmoonlay/received_events","type":"User","site_admin":false},"repo":{"id":77123686,"name":"bateeq-module","full_name":"danielmoonlay/bateeq-module","owner":{"login":"danielmoonlay","id":13761378,"avatar_url":"https://avatars0.githubusercontent.com/u/13761378?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmoonlay","html_url":"https://github.com/danielmoonlay","followers_url":"https://api.github.com/users/danielmoonlay/followers","following_url":"https://api.github.com/users/danielmoonlay/following{/other_user}","gists_url":"https://api.github.com/users/danielmoonlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmoonlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmoonlay/subscriptions","organizations_url":"https://api.github.com/users/danielmoonlay/orgs","repos_url":"https://api.github.com/users/danielmoonlay/repos","events_url":"https://api.github.com/users/danielmoonlay/events{/privacy}","received_events_url":"https://api.github.com/users/danielmoonlay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danielmoonlay/bateeq-module","description":"bateeq module","fork":true,"url":"https://api.github.com/repos/danielmoonlay/bateeq-module","forks_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/forks","keys_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/teams","hooks_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/hooks","issue_events_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/issues/events{/number}","events_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/events","assignees_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/assignees{/user}","branches_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/branches{/branch}","tags_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/tags","blobs_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/statuses/{sha}","languages_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/languages","stargazers_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/stargazers","contributors_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/contributors","subscribers_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/subscribers","subscription_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/subscription","commits_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/contents/{+path}","compare_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/merges","archive_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/downloads","issues_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/issues{/number}","pulls_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/pulls{/number}","milestones_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/milestones{/number}","notifications_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/labels{/name}","releases_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/releases{/id}","deployments_url":"https://api.github.com/repos/danielmoonlay/bateeq-module/deployments","created_at":"2016-12-22T07:43:15Z","updated_at":"2016-12-22T07:43:19Z","pushed_at":"2017-05-03T11:56:58Z","git_url":"git://github.com/danielmoonlay/bateeq-module.git","ssh_url":"git@github.com:danielmoonlay/bateeq-module.git","clone_url":"https://github.com/danielmoonlay/bateeq-module.git","svn_url":"https://github.com/danielmoonlay/bateeq-module","homepage":null,"size":918,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"danliris:dev","ref":"dev","sha":"66accd12306c6cef7b2cb81a8e29d3293bf273a0","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars3.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"repo":{"id":61858352,"name":"bateeq-module","full_name":"danliris/bateeq-module","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars3.githubusercontent.com/u/20855729?v=3","gravatar_id":"","url":"https://api.github.com/users/danliris","html_url":"https://github.com/danliris","followers_url":"https://api.github.com/users/danliris/followers","following_url":"https://api.github.com/users/danliris/following{/other_user}","gists_url":"https://api.github.com/users/danliris/gists{/gist_id}","starred_url":"https://api.github.com/users/danliris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliris/subscriptions","organizations_url":"https://api.github.com/users/danliris/orgs","repos_url":"https://api.github.com/users/danliris/repos","events_url":"https://api.github.com/users/danliris/events{/privacy}","received_events_url":"https://api.github.com/users/danliris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danliris/bateeq-module","description":"bateeq module","fork":false,"url":"https://api.github.com/repos/danliris/bateeq-module","forks_url":"https://api.github.com/repos/danliris/bateeq-module/forks","keys_url":"https://api.github.com/repos/danliris/bateeq-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/bateeq-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/bateeq-module/teams","hooks_url":"https://api.github.com/repos/danliris/bateeq-module/hooks","issue_events_url":"https://api.github.com/repos/danliris/bateeq-module/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/bateeq-module/events","assignees_url":"https://api.github.com/repos/danliris/bateeq-module/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/bateeq-module/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/bateeq-module/tags","blobs_url":"https://api.github.com/repos/danliris/bateeq-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/bateeq-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/bateeq-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/bateeq-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/bateeq-module/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/bateeq-module/languages","stargazers_url":"https://api.github.com/repos/danliris/bateeq-module/stargazers","contributors_url":"https://api.github.com/repos/danliris/bateeq-module/contributors","subscribers_url":"https://api.github.com/repos/danliris/bateeq-module/subscribers","subscription_url":"https://api.github.com/repos/danliris/bateeq-module/subscription","commits_url":"https://api.github.com/repos/danliris/bateeq-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/bateeq-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/bateeq-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/bateeq-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/bateeq-module/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/bateeq-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/bateeq-module/merges","archive_url":"https://api.github.com/repos/danliris/bateeq-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/bateeq-module/downloads","issues_url":"https://api.github.com/repos/danliris/bateeq-module/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/bateeq-module/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/bateeq-module/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/bateeq-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/bateeq-module/labels{/name}","releases_url":"https://api.github.com/repos/danliris/bateeq-module/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/bateeq-module/deployments","created_at":"2016-06-24T05:10:07Z","updated_at":"2016-08-08T03:26:08Z","pushed_at":"2017-05-03T11:57:03Z","git_url":"git://github.com/danliris/bateeq-module.git","ssh_url":"git@github.com:danliris/bateeq-module.git","clone_url":"https://github.com/danliris/bateeq-module.git","svn_url":"https://github.com/danliris/bateeq-module","homepage":null,"size":923,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/206"},"html":{"href":"https://github.com/danliris/bateeq-module/pull/206"},"issue":{"href":"https://api.github.com/repos/danliris/bateeq-module/issues/206"},"comments":{"href":"https://api.github.com/repos/danliris/bateeq-module/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/bateeq-module/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/bateeq-module/statuses/dc60fb471c6ef97b89713e89fb90c4eb0f07dc43"}}}}
{"actor":{"display_login":"houndci-bot"}}