{"action":"created","comment":{"url":"https://api.github.com/repos/ua-eas/kfs/pulls/comments/91626564","pull_request_review_id":12137262,"id":91626564,"diff_hunk":"@@ -113,4 +172,111 @@ public KualiDecimal getGrandPreTaxTotalExcludingDiscount() {\n         String[] discountCode = new String[] { PurapConstants.ItemTypeCodes.ITEM_TYPE_PMT_TERMS_DISCOUNT_CODE };\n         return this.getTotalPreTaxDollarAmountWithExclusions(discountCode, true);\n     }\n+    \n+    // Tag and JSP for DV, PREQ and CM Documents\n+    @Override\n+    public List<CreditMemoIncomeType> getIncomeTypes() {\n+        if (incomeTypes == null) {\n+            incomeTypes = new ArrayList<CreditMemoIncomeType>();\n+        }\n+        return incomeTypes;\n+    }\n+\n+    public void setIncomeTypes(List<CreditMemoIncomeType> incomeTypes) {\n+        this.incomeTypes = incomeTypes;\n+    }\n+\n+    @Override\n+    public Integer getDocumentIdentifier() {\n+        return getPurapDocumentIdentifier();\n+    }\n+    \n+    @Override\n+    public String getPaidYear() {\n+        return getIncomeTypeHandler().getYearFromTimestamp(getCreditMemoPaidTimestamp());\n+    }\n+\n+    @Override\n+    public IncomeTypeHandler<CreditMemoIncomeType, Integer> getIncomeTypeHandler() {\n+        if (incomeTypeHandler == null) {\n+            incomeTypeHandler = new IncomeTypeHandler<CreditMemoIncomeType, Integer>(this, CreditMemoIncomeType.class) {};\n+        }\n+\n+        return incomeTypeHandler;\n+    }\n+\n+    @Override\n+    public VendorHeader getVendorHeader() {\n+        VendorHeader retval = getVendorDetail().getVendorHeader();\n+        \n+        if (retval == null) {\n+            retval = getIncomeTypeHandler().getVendorHeaderFromVendorNumber(getVendorNumber());\n+        }\n+        \n+        return retval;\n+    }\n+    \n+    @Override\n+    public boolean getReportable1099TransactionsFlag() {\n+        boolean retval = false;\n+\n+        if (getItems() != null) {\n+            Iterator <PurApItem> it = getItems().iterator();\n+            \n+            while (!retval && it.hasNext()) {\n+                List <PurApAccountingLine> acctlines = it.next().getBaselineSourceAccountingLines(); \n+                \n+                if (acctlines != null) {\n+                    for (PurApAccountingLine acctline : acctlines) {\n+                        if (LOG.isDebugEnabled()) {\n+                            LOG.debug(\"financial object code: \" + acctline.getFinancialObjectCode() + \", is reportable\" + getIncomeTypeHandler().is1099Reportable(acctline.getFinancialObjectCode()));","path":"kfs-purap/src/main/java/edu/arizona/kfs/module/purap/document/VendorCreditMemoDocument.java","position":173,"original_position":173,"commit_id":"c8cfee9a9b0b4bbf3e38401ddcd870dcae564838","original_commit_id":"c8cfee9a9b0b4bbf3e38401ddcd870dcae564838","user":{"login":"mmoen","id":10961054,"avatar_url":"https://avatars.githubusercontent.com/u/10961054?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoen","html_url":"https://github.com/mmoen","followers_url":"https://api.github.com/users/mmoen/followers","following_url":"https://api.github.com/users/mmoen/following{/other_user}","gists_url":"https://api.github.com/users/mmoen/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoen/subscriptions","organizations_url":"https://api.github.com/users/mmoen/orgs","repos_url":"https://api.github.com/users/mmoen/repos","events_url":"https://api.github.com/users/mmoen/events{/privacy}","received_events_url":"https://api.github.com/users/mmoen/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-12-08T22:56:37Z","updated_at":"2016-12-08T22:56:37Z","html_url":"https://github.com/ua-eas/kfs/pull/222#discussion_r91626564","pull_request_url":"https://api.github.com/repos/ua-eas/kfs/pulls/222","_links":{"self":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/comments/91626564"},"html":{"href":"https://github.com/ua-eas/kfs/pull/222#discussion_r91626564"},"pull_request":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/ua-eas/kfs/pulls/222","id":96833844,"html_url":"https://github.com/ua-eas/kfs/pull/222","diff_url":"https://github.com/ua-eas/kfs/pull/222.diff","patch_url":"https://github.com/ua-eas/kfs/pull/222.patch","issue_url":"https://api.github.com/repos/ua-eas/kfs/issues/222","number":222,"state":"open","locked":false,"title":"UAF-3586 1099 Reporting, 1099 Tab on CM & Custom Searches.","user":{"login":"mmoen","id":10961054,"avatar_url":"https://avatars.githubusercontent.com/u/10961054?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoen","html_url":"https://github.com/mmoen","followers_url":"https://api.github.com/users/mmoen/followers","following_url":"https://api.github.com/users/mmoen/following{/other_user}","gists_url":"https://api.github.com/users/mmoen/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoen/subscriptions","organizations_url":"https://api.github.com/users/mmoen/orgs","repos_url":"https://api.github.com/users/mmoen/repos","events_url":"https://api.github.com/users/mmoen/events{/privacy}","received_events_url":"https://api.github.com/users/mmoen/received_events","type":"User","site_admin":false},"body":"Modified tax-resources.properties to add an error message\r\nAdded a constant to PurapConstants.java for use in other files\r\nModified VendorCreditMemoDocument.java to include 1099\r\nModified VendorCreditMemoDocumentPresentationController.java so the 1099 tab will be visible\r\nAdded new file IncomeTypeTotalsValidation.java to validate Income Types (1099 Classification tab) total against document total\r\nAdded new file VendorCreditMemoAction.java to handle new income type, delete income type, and refresh income types from account lines\r\nModified VendorCreditMemoDocument.xml to include 1099\r\nModified VendorCreditMemoValidation.xml to include income type totals validation\r\nModified ojb-purap.xml to add paymentPaidYear and payment1099Indicator fields to the AP_CRDT_MEMO_T table. Added collection-descriptor for income types\r\nModified struts-config.xml to map to the correct jsp (VendorCreditMemo.jsp) and action (VendorCreditMemoAction)\r\nModified VendorCreditMemo.jsp to add the 1099 tab","created_at":"2016-12-07T00:10:26Z","updated_at":"2016-12-08T22:56:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c14025a3b9457c52dcf0369c022e78f7d01da297","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ua-eas/kfs/pulls/222/commits","review_comments_url":"https://api.github.com/repos/ua-eas/kfs/pulls/222/comments","review_comment_url":"https://api.github.com/repos/ua-eas/kfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ua-eas/kfs/issues/222/comments","statuses_url":"https://api.github.com/repos/ua-eas/kfs/statuses/c8cfee9a9b0b4bbf3e38401ddcd870dcae564838","head":{"label":"ua-eas:UAF-3586","ref":"UAF-3586","sha":"c8cfee9a9b0b4bbf3e38401ddcd870dcae564838","user":{"login":"ua-eas","id":3485494,"avatar_url":"https://avatars.githubusercontent.com/u/3485494?v=3","gravatar_id":"","url":"https://api.github.com/users/ua-eas","html_url":"https://github.com/ua-eas","followers_url":"https://api.github.com/users/ua-eas/followers","following_url":"https://api.github.com/users/ua-eas/following{/other_user}","gists_url":"https://api.github.com/users/ua-eas/gists{/gist_id}","starred_url":"https://api.github.com/users/ua-eas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ua-eas/subscriptions","organizations_url":"https://api.github.com/users/ua-eas/orgs","repos_url":"https://api.github.com/users/ua-eas/repos","events_url":"https://api.github.com/users/ua-eas/events{/privacy}","received_events_url":"https://api.github.com/users/ua-eas/received_events","type":"Organization","site_admin":false},"repo":{"id":39457535,"name":"kfs","full_name":"ua-eas/kfs","owner":{"login":"ua-eas","id":3485494,"avatar_url":"https://avatars.githubusercontent.com/u/3485494?v=3","gravatar_id":"","url":"https://api.github.com/users/ua-eas","html_url":"https://github.com/ua-eas","followers_url":"https://api.github.com/users/ua-eas/followers","following_url":"https://api.github.com/users/ua-eas/following{/other_user}","gists_url":"https://api.github.com/users/ua-eas/gists{/gist_id}","starred_url":"https://api.github.com/users/ua-eas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ua-eas/subscriptions","organizations_url":"https://api.github.com/users/ua-eas/orgs","repos_url":"https://api.github.com/users/ua-eas/repos","events_url":"https://api.github.com/users/ua-eas/events{/privacy}","received_events_url":"https://api.github.com/users/ua-eas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ua-eas/kfs","description":"Kuali Financial System","fork":true,"url":"https://api.github.com/repos/ua-eas/kfs","forks_url":"https://api.github.com/repos/ua-eas/kfs/forks","keys_url":"https://api.github.com/repos/ua-eas/kfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ua-eas/kfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ua-eas/kfs/teams","hooks_url":"https://api.github.com/repos/ua-eas/kfs/hooks","issue_events_url":"https://api.github.com/repos/ua-eas/kfs/issues/events{/number}","events_url":"https://api.github.com/repos/ua-eas/kfs/events","assignees_url":"https://api.github.com/repos/ua-eas/kfs/assignees{/user}","branches_url":"https://api.github.com/repos/ua-eas/kfs/branches{/branch}","tags_url":"https://api.github.com/repos/ua-eas/kfs/tags","blobs_url":"https://api.github.com/repos/ua-eas/kfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ua-eas/kfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ua-eas/kfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ua-eas/kfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ua-eas/kfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ua-eas/kfs/languages","stargazers_url":"https://api.github.com/repos/ua-eas/kfs/stargazers","contributors_url":"https://api.github.com/repos/ua-eas/kfs/contributors","subscribers_url":"https://api.github.com/repos/ua-eas/kfs/subscribers","subscription_url":"https://api.github.com/repos/ua-eas/kfs/subscription","commits_url":"https://api.github.com/repos/ua-eas/kfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ua-eas/kfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ua-eas/kfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ua-eas/kfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ua-eas/kfs/contents/{+path}","compare_url":"https://api.github.com/repos/ua-eas/kfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ua-eas/kfs/merges","archive_url":"https://api.github.com/repos/ua-eas/kfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ua-eas/kfs/downloads","issues_url":"https://api.github.com/repos/ua-eas/kfs/issues{/number}","pulls_url":"https://api.github.com/repos/ua-eas/kfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ua-eas/kfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ua-eas/kfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ua-eas/kfs/labels{/name}","releases_url":"https://api.github.com/repos/ua-eas/kfs/releases{/id}","deployments_url":"https://api.github.com/repos/ua-eas/kfs/deployments","created_at":"2015-07-21T16:41:24Z","updated_at":"2016-10-24T18:28:00Z","pushed_at":"2016-12-08T16:54:06Z","git_url":"git://github.com/ua-eas/kfs.git","ssh_url":"git@github.com:ua-eas/kfs.git","clone_url":"https://github.com/ua-eas/kfs.git","svn_url":"https://github.com/ua-eas/kfs","homepage":null,"size":442340,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":2,"default_branch":"ua-development"}},"base":{"label":"ua-eas:ua-development","ref":"ua-development","sha":"80080fa9ad82eec8d5060edef3e5dd965895234e","user":{"login":"ua-eas","id":3485494,"avatar_url":"https://avatars.githubusercontent.com/u/3485494?v=3","gravatar_id":"","url":"https://api.github.com/users/ua-eas","html_url":"https://github.com/ua-eas","followers_url":"https://api.github.com/users/ua-eas/followers","following_url":"https://api.github.com/users/ua-eas/following{/other_user}","gists_url":"https://api.github.com/users/ua-eas/gists{/gist_id}","starred_url":"https://api.github.com/users/ua-eas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ua-eas/subscriptions","organizations_url":"https://api.github.com/users/ua-eas/orgs","repos_url":"https://api.github.com/users/ua-eas/repos","events_url":"https://api.github.com/users/ua-eas/events{/privacy}","received_events_url":"https://api.github.com/users/ua-eas/received_events","type":"Organization","site_admin":false},"repo":{"id":39457535,"name":"kfs","full_name":"ua-eas/kfs","owner":{"login":"ua-eas","id":3485494,"avatar_url":"https://avatars.githubusercontent.com/u/3485494?v=3","gravatar_id":"","url":"https://api.github.com/users/ua-eas","html_url":"https://github.com/ua-eas","followers_url":"https://api.github.com/users/ua-eas/followers","following_url":"https://api.github.com/users/ua-eas/following{/other_user}","gists_url":"https://api.github.com/users/ua-eas/gists{/gist_id}","starred_url":"https://api.github.com/users/ua-eas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ua-eas/subscriptions","organizations_url":"https://api.github.com/users/ua-eas/orgs","repos_url":"https://api.github.com/users/ua-eas/repos","events_url":"https://api.github.com/users/ua-eas/events{/privacy}","received_events_url":"https://api.github.com/users/ua-eas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ua-eas/kfs","description":"Kuali Financial System","fork":true,"url":"https://api.github.com/repos/ua-eas/kfs","forks_url":"https://api.github.com/repos/ua-eas/kfs/forks","keys_url":"https://api.github.com/repos/ua-eas/kfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ua-eas/kfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ua-eas/kfs/teams","hooks_url":"https://api.github.com/repos/ua-eas/kfs/hooks","issue_events_url":"https://api.github.com/repos/ua-eas/kfs/issues/events{/number}","events_url":"https://api.github.com/repos/ua-eas/kfs/events","assignees_url":"https://api.github.com/repos/ua-eas/kfs/assignees{/user}","branches_url":"https://api.github.com/repos/ua-eas/kfs/branches{/branch}","tags_url":"https://api.github.com/repos/ua-eas/kfs/tags","blobs_url":"https://api.github.com/repos/ua-eas/kfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ua-eas/kfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ua-eas/kfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ua-eas/kfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ua-eas/kfs/statuses/{sha}","languages_url":"https://api.github.com/repos/ua-eas/kfs/languages","stargazers_url":"https://api.github.com/repos/ua-eas/kfs/stargazers","contributors_url":"https://api.github.com/repos/ua-eas/kfs/contributors","subscribers_url":"https://api.github.com/repos/ua-eas/kfs/subscribers","subscription_url":"https://api.github.com/repos/ua-eas/kfs/subscription","commits_url":"https://api.github.com/repos/ua-eas/kfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ua-eas/kfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ua-eas/kfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ua-eas/kfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ua-eas/kfs/contents/{+path}","compare_url":"https://api.github.com/repos/ua-eas/kfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ua-eas/kfs/merges","archive_url":"https://api.github.com/repos/ua-eas/kfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ua-eas/kfs/downloads","issues_url":"https://api.github.com/repos/ua-eas/kfs/issues{/number}","pulls_url":"https://api.github.com/repos/ua-eas/kfs/pulls{/number}","milestones_url":"https://api.github.com/repos/ua-eas/kfs/milestones{/number}","notifications_url":"https://api.github.com/repos/ua-eas/kfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ua-eas/kfs/labels{/name}","releases_url":"https://api.github.com/repos/ua-eas/kfs/releases{/id}","deployments_url":"https://api.github.com/repos/ua-eas/kfs/deployments","created_at":"2015-07-21T16:41:24Z","updated_at":"2016-10-24T18:28:00Z","pushed_at":"2016-12-08T16:54:06Z","git_url":"git://github.com/ua-eas/kfs.git","ssh_url":"git@github.com:ua-eas/kfs.git","clone_url":"https://github.com/ua-eas/kfs.git","svn_url":"https://github.com/ua-eas/kfs","homepage":null,"size":442340,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":2,"default_branch":"ua-development"}},"_links":{"self":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/222"},"html":{"href":"https://github.com/ua-eas/kfs/pull/222"},"issue":{"href":"https://api.github.com/repos/ua-eas/kfs/issues/222"},"comments":{"href":"https://api.github.com/repos/ua-eas/kfs/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ua-eas/kfs/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/ua-eas/kfs/statuses/c8cfee9a9b0b4bbf3e38401ddcd870dcae564838"}}}}
{"actor":{"display_login":"mmoen"}}