{"action":"created","issue":{"url":"https://api.github.com/repos/torbengb/bank2ynab/issues/161","repository_url":"https://api.github.com/repos/torbengb/bank2ynab","labels_url":"https://api.github.com/repos/torbengb/bank2ynab/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/torbengb/bank2ynab/issues/161/comments","events_url":"https://api.github.com/repos/torbengb/bank2ynab/issues/161/events","html_url":"https://github.com/torbengb/bank2ynab/issues/161","id":293563401,"number":161,"title":"Standard approach to using a credit-debit flag","user":{"login":"torbengb","id":810590,"avatar_url":"https://avatars3.githubusercontent.com/u/810590?v=4","gravatar_id":"","url":"https://api.github.com/users/torbengb","html_url":"https://github.com/torbengb","followers_url":"https://api.github.com/users/torbengb/followers","following_url":"https://api.github.com/users/torbengb/following{/other_user}","gists_url":"https://api.github.com/users/torbengb/gists{/gist_id}","starred_url":"https://api.github.com/users/torbengb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torbengb/subscriptions","organizations_url":"https://api.github.com/users/torbengb/orgs","repos_url":"https://api.github.com/users/torbengb/repos","events_url":"https://api.github.com/users/torbengb/events{/privacy}","received_events_url":"https://api.github.com/users/torbengb/received_events","type":"User","site_admin":false},"labels":[{"id":715366983,"url":"https://api.github.com/repos/torbengb/bank2ynab/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":745777087,"url":"https://api.github.com/repos/torbengb/bank2ynab/labels/help%20wanted","name":"help wanted","color":"bfcc4b","default":true},{"id":724573837,"url":"https://api.github.com/repos/torbengb/bank2ynab/labels/workaround%20exists","name":"workaround exists","color":"eab354","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-01T15:05:14Z","updated_at":"2018-02-01T17:54:57Z","closed_at":null,"author_association":"OWNER","body":"[Issue 91](https://github.com/torbengb/bank2ynab/issues/91#issuecomment-362253461) discussed that the credit-debit flag is coming up often enough that it warrants incorporation or a more general plugin. \r\n\r\nThe general issue here is that some banking formats don't have one inflow column and one outflow column, and they also don't have one amount column where outflows are represented using negative amounts. Instead, several banks use a format where one column contains an amount (always positive) and another column contains some value to indicate whether that amount is an inflow or outflow. \r\n\r\nThis issue is created as a task to figure out a solution to this instead of having to create a format-specific plugin _just_ for that common functionality. (Until then, format-specific plugins are a viable solution.)\r\n\r\nThis ticket needs to deal with two aspects:\r\n\r\n1. How should the \"amount\" column be referenced? -- We might just use the \"inflow\" here for simplicity, or invent a new \"amount\" parameter to clearly distinguish it from normal inflows.\r\n1. How should the \"c-d flag\" column be specified? -- We would need a config parameter to turn on this c-d handling in the first place. We also need parameters to specify the actual values that indicate credit and debit (because some formats helpfully use C and D but others cryptically use A and B, and other values are sure to pop up later)."},"comment":{"url":"https://api.github.com/repos/torbengb/bank2ynab/issues/comments/362348842","html_url":"https://github.com/torbengb/bank2ynab/issues/161#issuecomment-362348842","issue_url":"https://api.github.com/repos/torbengb/bank2ynab/issues/161","id":362348842,"user":{"login":"torbengb","id":810590,"avatar_url":"https://avatars3.githubusercontent.com/u/810590?v=4","gravatar_id":"","url":"https://api.github.com/users/torbengb","html_url":"https://github.com/torbengb","followers_url":"https://api.github.com/users/torbengb/followers","following_url":"https://api.github.com/users/torbengb/following{/other_user}","gists_url":"https://api.github.com/users/torbengb/gists{/gist_id}","starred_url":"https://api.github.com/users/torbengb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torbengb/subscriptions","organizations_url":"https://api.github.com/users/torbengb/orgs","repos_url":"https://api.github.com/users/torbengb/repos","events_url":"https://api.github.com/users/torbengb/events{/privacy}","received_events_url":"https://api.github.com/users/torbengb/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T17:54:57Z","updated_at":"2018-02-01T17:54:57Z","author_association":"OWNER","body":"I've now committed the fixed config to the branch. It works in Py3 but not in Py2!"}}
{"actor":{"display_login":"torbengb"}}