{"action":"created","issue":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/1498","repository_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X","labels_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/1498/labels{/name}","comments_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/1498/comments","events_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/1498/events","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/issues/1498","id":221236752,"number":1498,"title":"Validate Transaction ","user":{"login":"lomamech","id":8035588,"avatar_url":"https://avatars3.githubusercontent.com/u/8035588?v=3","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false},"labels":[{"id":346219463,"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/labels/refactor","name":"refactor","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"lomamech","id":8035588,"avatar_url":"https://avatars3.githubusercontent.com/u/8035588?v=3","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false},"assignees":[{"login":"lomamech","id":8035588,"avatar_url":"https://avatars3.githubusercontent.com/u/8035588?v=3","gravatar_id":"","url":"https://api.github.com/users/lomamech","html_url":"https://github.com/lomamech","followers_url":"https://api.github.com/users/lomamech/followers","following_url":"https://api.github.com/users/lomamech/following{/other_user}","gists_url":"https://api.github.com/users/lomamech/gists{/gist_id}","starred_url":"https://api.github.com/users/lomamech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lomamech/subscriptions","organizations_url":"https://api.github.com/users/lomamech/orgs","repos_url":"https://api.github.com/users/lomamech/repos","events_url":"https://api.github.com/users/lomamech/events{/privacy}","received_events_url":"https://api.github.com/users/lomamech/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-04-12T11:48:38Z","updated_at":"2017-04-12T15:51:40Z","closed_at":null,"body":"Allow the validate transaction function to check whether a transaction is valid, and that it will not generate any errors if it is to be inserted into the general ledger\r\n\r\n- Date in the wrong period\r\n- Debit and Credit should not be Zero\r\n- A transaction must have the same date\r\n- A transaction must not have a single row"},"comment":{"url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/comments/293622934","html_url":"https://github.com/IMA-WorldHealth/bhima-2.X/issues/1498#issuecomment-293622934","issue_url":"https://api.github.com/repos/IMA-WorldHealth/bhima-2.X/issues/1498","id":293622934,"user":{"login":"jniles","id":896472,"avatar_url":"https://avatars3.githubusercontent.com/u/896472?v=3","gravatar_id":"","url":"https://api.github.com/users/jniles","html_url":"https://github.com/jniles","followers_url":"https://api.github.com/users/jniles/followers","following_url":"https://api.github.com/users/jniles/following{/other_user}","gists_url":"https://api.github.com/users/jniles/gists{/gist_id}","starred_url":"https://api.github.com/users/jniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniles/subscriptions","organizations_url":"https://api.github.com/users/jniles/orgs","repos_url":"https://api.github.com/users/jniles/repos","events_url":"https://api.github.com/users/jniles/events{/privacy}","received_events_url":"https://api.github.com/users/jniles/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T15:51:40Z","updated_at":"2017-04-12T15:51:40Z","body":"Taking into account the feedback in #1499:\r\n\r\n 1. it seems that the debit/credit balance calculation needs to be reviewed.  See:\r\n> *Adding a line and dividing the CR amount 50% between the lines gave unbalanced txn error when it was balanced\r\n 2. \r\n> -*allowed me to change date of one row of txn w/out error. Best behavior would be to change all dates of txn when one is changed (w/ confirmation message)"}}
{"actor":{"display_login":"jniles"}}