{"action":"created","comment":{"url":"https://api.github.com/repos/danliris/dl-module/pulls/comments/175992671","pull_request_review_id":105615853,"id":175992671,"diff_hunk":"@@ -0,0 +1,175 @@\n+'use strict';\n+\n+var helper = require(\"../../helper\");\n+var validator = require('dl-models').validator.master;\n+var validatorMasterPlan = require('dl-models').validator.garmentMasterPlan;\n+var BookingOrderManager = require(\"../../../src/managers/garment-master-plan/booking-order-manager\");\n+var bookingOrderManager = null;\n+var bookingOrderDataUtil = require(\"../../data-util/garment-master-plan/booking-order-data-util\");\n+var moment = require('moment');\n+var dateFrom=new Date(\"2018-01-02\")\n+var dateTo=new Date(\"2018-01-10\");\n+var comodity=\"comodity\";\n+var buyer=\"buyer\";\n+var code =\"code\";\n+var isconfirmState=\"Sudah Dikonfirmasi\";\n+var notconfirmState=\"Belum Dikonfirmasi\";\n+var bookingOrderBooking=\"Booking\";\n+var bookingOrderMasterPlan=\"Sudah Dibuat Master Plan\";\n+var bookingOrderCanceled=\"Booking Dibatalkan\";\n+var offset=7;\n+\n+require(\"should\");\n+\n+\n+before('#00. connect db', function (done) {\n+    helper.getDb()\n+        .then(db => {\n+            bookingOrderManager = new BookingOrderManager(db, {\n+                username: 'unit-test'\n+            });\n+            done();\n+        })\n+        .catch(e => {\n+            done(e);\n+        })\n+});\n+\n+it(\"#01. should success when get report with parameter code\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"code\" : code},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+\n+it(\"#02. should success when get report with parameter buyer\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"buyer\" : buyer},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+it(\"#03. should success when get report with parameter comodity\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"comodity\" : comodity},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+\n+it(\"#04. should success when get report with parameter isconfirmstate\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"confirmState\" : isconfirmState},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+it(\"#05. should success when get report with parameter notconfirmstate\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"confirmState\" : notconfirmState},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+it(\"#06. should success when get report with parameter booking order state :Booking\", function (done) {\n+    bookingOrderManager.getCanceledBookingOrderReport({\"bookingOrderState\" : bookingOrderBooking},offset)\n+        .then((data) => {\n+            data.should.instanceof(Array);\n+            done();\n+        })\n+        .catch((e) => {\n+            done(e);\n+        });\n+});\n+it(\"#07. should success when get report with parameter booking order state : Sudah dibuat Master Plan\", function (done) {","path":"test/garment-master-plan/booking-order/cancel-booking-report.js","position":100,"original_position":100,"commit_id":"78bae62c8b872d44b16038124fa2486ce08be7cf","original_commit_id":"78bae62c8b872d44b16038124fa2486ce08be7cf","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"'it' is not defined.<br>Too many errors. (56% scanned).","created_at":"2018-03-21T06:35:26Z","updated_at":"2018-03-21T06:35:28Z","html_url":"https://github.com/danliris/dl-module/pull/1711#discussion_r175992671","pull_request_url":"https://api.github.com/repos/danliris/dl-module/pulls/1711","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/comments/175992671"},"html":{"href":"https://github.com/danliris/dl-module/pull/1711#discussion_r175992671"},"pull_request":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/1711"}}},"pull_request":{"url":"https://api.github.com/repos/danliris/dl-module/pulls/1711","id":176391878,"html_url":"https://github.com/danliris/dl-module/pull/1711","diff_url":"https://github.com/danliris/dl-module/pull/1711.diff","patch_url":"https://github.com/danliris/dl-module/pull/1711.patch","issue_url":"https://api.github.com/repos/danliris/dl-module/issues/1711","number":1711,"state":"open","locked":false,"title":"Monitoring Canceled Booking Order","user":{"login":"kharissuryandaru","id":35208779,"avatar_url":"https://avatars1.githubusercontent.com/u/35208779?v=4","gravatar_id":"","url":"https://api.github.com/users/kharissuryandaru","html_url":"https://github.com/kharissuryandaru","followers_url":"https://api.github.com/users/kharissuryandaru/followers","following_url":"https://api.github.com/users/kharissuryandaru/following{/other_user}","gists_url":"https://api.github.com/users/kharissuryandaru/gists{/gist_id}","starred_url":"https://api.github.com/users/kharissuryandaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kharissuryandaru/subscriptions","organizations_url":"https://api.github.com/users/kharissuryandaru/orgs","repos_url":"https://api.github.com/users/kharissuryandaru/repos","events_url":"https://api.github.com/users/kharissuryandaru/events{/privacy}","received_events_url":"https://api.github.com/users/kharissuryandaru/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-21T06:35:21Z","updated_at":"2018-03-21T06:35:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6e1902061b68748bc5cb25a0544647829833fa1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/danliris/dl-module/pulls/1711/commits","review_comments_url":"https://api.github.com/repos/danliris/dl-module/pulls/1711/comments","review_comment_url":"https://api.github.com/repos/danliris/dl-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danliris/dl-module/issues/1711/comments","statuses_url":"https://api.github.com/repos/danliris/dl-module/statuses/78bae62c8b872d44b16038124fa2486ce08be7cf","head":{"label":"kharissuryandaru:dev","ref":"dev","sha":"78bae62c8b872d44b16038124fa2486ce08be7cf","user":{"login":"kharissuryandaru","id":35208779,"avatar_url":"https://avatars1.githubusercontent.com/u/35208779?v=4","gravatar_id":"","url":"https://api.github.com/users/kharissuryandaru","html_url":"https://github.com/kharissuryandaru","followers_url":"https://api.github.com/users/kharissuryandaru/followers","following_url":"https://api.github.com/users/kharissuryandaru/following{/other_user}","gists_url":"https://api.github.com/users/kharissuryandaru/gists{/gist_id}","starred_url":"https://api.github.com/users/kharissuryandaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kharissuryandaru/subscriptions","organizations_url":"https://api.github.com/users/kharissuryandaru/orgs","repos_url":"https://api.github.com/users/kharissuryandaru/repos","events_url":"https://api.github.com/users/kharissuryandaru/events{/privacy}","received_events_url":"https://api.github.com/users/kharissuryandaru/received_events","type":"User","site_admin":false},"repo":{"id":117806919,"name":"dl-module","full_name":"kharissuryandaru/dl-module","owner":{"login":"kharissuryandaru","id":35208779,"avatar_url":"https://avatars1.githubusercontent.com/u/35208779?v=4","gravatar_id":"","url":"https://api.github.com/users/kharissuryandaru","html_url":"https://github.com/kharissuryandaru","followers_url":"https://api.github.com/users/kharissuryandaru/followers","following_url":"https://api.github.com/users/kharissuryandaru/following{/other_user}","gists_url":"https://api.github.com/users/kharissuryandaru/gists{/gist_id}","starred_url":"https://api.github.com/users/kharissuryandaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kharissuryandaru/subscriptions","organizations_url":"https://api.github.com/users/kharissuryandaru/orgs","repos_url":"https://api.github.com/users/kharissuryandaru/repos","events_url":"https://api.github.com/users/kharissuryandaru/events{/privacy}","received_events_url":"https://api.github.com/users/kharissuryandaru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kharissuryandaru/dl-module","description":"Dan Liris Modules","fork":true,"url":"https://api.github.com/repos/kharissuryandaru/dl-module","forks_url":"https://api.github.com/repos/kharissuryandaru/dl-module/forks","keys_url":"https://api.github.com/repos/kharissuryandaru/dl-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kharissuryandaru/dl-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kharissuryandaru/dl-module/teams","hooks_url":"https://api.github.com/repos/kharissuryandaru/dl-module/hooks","issue_events_url":"https://api.github.com/repos/kharissuryandaru/dl-module/issues/events{/number}","events_url":"https://api.github.com/repos/kharissuryandaru/dl-module/events","assignees_url":"https://api.github.com/repos/kharissuryandaru/dl-module/assignees{/user}","branches_url":"https://api.github.com/repos/kharissuryandaru/dl-module/branches{/branch}","tags_url":"https://api.github.com/repos/kharissuryandaru/dl-module/tags","blobs_url":"https://api.github.com/repos/kharissuryandaru/dl-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kharissuryandaru/dl-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kharissuryandaru/dl-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/kharissuryandaru/dl-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kharissuryandaru/dl-module/statuses/{sha}","languages_url":"https://api.github.com/repos/kharissuryandaru/dl-module/languages","stargazers_url":"https://api.github.com/repos/kharissuryandaru/dl-module/stargazers","contributors_url":"https://api.github.com/repos/kharissuryandaru/dl-module/contributors","subscribers_url":"https://api.github.com/repos/kharissuryandaru/dl-module/subscribers","subscription_url":"https://api.github.com/repos/kharissuryandaru/dl-module/subscription","commits_url":"https://api.github.com/repos/kharissuryandaru/dl-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/kharissuryandaru/dl-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/kharissuryandaru/dl-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/kharissuryandaru/dl-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/kharissuryandaru/dl-module/contents/{+path}","compare_url":"https://api.github.com/repos/kharissuryandaru/dl-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kharissuryandaru/dl-module/merges","archive_url":"https://api.github.com/repos/kharissuryandaru/dl-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kharissuryandaru/dl-module/downloads","issues_url":"https://api.github.com/repos/kharissuryandaru/dl-module/issues{/number}","pulls_url":"https://api.github.com/repos/kharissuryandaru/dl-module/pulls{/number}","milestones_url":"https://api.github.com/repos/kharissuryandaru/dl-module/milestones{/number}","notifications_url":"https://api.github.com/repos/kharissuryandaru/dl-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kharissuryandaru/dl-module/labels{/name}","releases_url":"https://api.github.com/repos/kharissuryandaru/dl-module/releases{/id}","deployments_url":"https://api.github.com/repos/kharissuryandaru/dl-module/deployments","created_at":"2018-01-17T08:22:44Z","updated_at":"2018-01-17T08:22:47Z","pushed_at":"2018-03-21T05:05:00Z","git_url":"git://github.com/kharissuryandaru/dl-module.git","ssh_url":"git@github.com:kharissuryandaru/dl-module.git","clone_url":"https://github.com/kharissuryandaru/dl-module.git","svn_url":"https://github.com/kharissuryandaru/dl-module","homepage":null,"size":7214,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"danliris:dev","ref":"dev","sha":"330bdc1b58453dade409ea24927eeaa8b423537a","user":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","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":64628314,"name":"dl-module","full_name":"danliris/dl-module","owner":{"login":"danliris","id":20855729,"avatar_url":"https://avatars0.githubusercontent.com/u/20855729?v=4","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/dl-module","description":"Dan Liris Modules","fork":false,"url":"https://api.github.com/repos/danliris/dl-module","forks_url":"https://api.github.com/repos/danliris/dl-module/forks","keys_url":"https://api.github.com/repos/danliris/dl-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danliris/dl-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danliris/dl-module/teams","hooks_url":"https://api.github.com/repos/danliris/dl-module/hooks","issue_events_url":"https://api.github.com/repos/danliris/dl-module/issues/events{/number}","events_url":"https://api.github.com/repos/danliris/dl-module/events","assignees_url":"https://api.github.com/repos/danliris/dl-module/assignees{/user}","branches_url":"https://api.github.com/repos/danliris/dl-module/branches{/branch}","tags_url":"https://api.github.com/repos/danliris/dl-module/tags","blobs_url":"https://api.github.com/repos/danliris/dl-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danliris/dl-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danliris/dl-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/danliris/dl-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danliris/dl-module/statuses/{sha}","languages_url":"https://api.github.com/repos/danliris/dl-module/languages","stargazers_url":"https://api.github.com/repos/danliris/dl-module/stargazers","contributors_url":"https://api.github.com/repos/danliris/dl-module/contributors","subscribers_url":"https://api.github.com/repos/danliris/dl-module/subscribers","subscription_url":"https://api.github.com/repos/danliris/dl-module/subscription","commits_url":"https://api.github.com/repos/danliris/dl-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/danliris/dl-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/danliris/dl-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/danliris/dl-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/danliris/dl-module/contents/{+path}","compare_url":"https://api.github.com/repos/danliris/dl-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danliris/dl-module/merges","archive_url":"https://api.github.com/repos/danliris/dl-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danliris/dl-module/downloads","issues_url":"https://api.github.com/repos/danliris/dl-module/issues{/number}","pulls_url":"https://api.github.com/repos/danliris/dl-module/pulls{/number}","milestones_url":"https://api.github.com/repos/danliris/dl-module/milestones{/number}","notifications_url":"https://api.github.com/repos/danliris/dl-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danliris/dl-module/labels{/name}","releases_url":"https://api.github.com/repos/danliris/dl-module/releases{/id}","deployments_url":"https://api.github.com/repos/danliris/dl-module/deployments","created_at":"2016-08-01T02:15:05Z","updated_at":"2018-03-20T16:37:23Z","pushed_at":"2018-03-21T06:35:22Z","git_url":"git://github.com/danliris/dl-module.git","ssh_url":"git@github.com:danliris/dl-module.git","clone_url":"https://github.com/danliris/dl-module.git","svn_url":"https://github.com/danliris/dl-module","homepage":null,"size":7233,"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":31,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":31,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/1711"},"html":{"href":"https://github.com/danliris/dl-module/pull/1711"},"issue":{"href":"https://api.github.com/repos/danliris/dl-module/issues/1711"},"comments":{"href":"https://api.github.com/repos/danliris/dl-module/issues/1711/comments"},"review_comments":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/1711/comments"},"review_comment":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danliris/dl-module/pulls/1711/commits"},"statuses":{"href":"https://api.github.com/repos/danliris/dl-module/statuses/78bae62c8b872d44b16038124fa2486ce08be7cf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}