{"action":"created","issue":{"url":"https://api.github.com/repos/huerlisi/bookyt/issues/69","labels_url":"https://api.github.com/repos/huerlisi/bookyt/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/huerlisi/bookyt/issues/69/comments","events_url":"https://api.github.com/repos/huerlisi/bookyt/issues/69/events","html_url":"https://github.com/huerlisi/bookyt/issues/69","id":109091239,"number":69,"title":"Issues with Salary Line Items","user":{"login":"silvermind","id":125677,"avatar_url":"https://avatars.githubusercontent.com/u/125677?v=3","gravatar_id":"","url":"https://api.github.com/users/silvermind","html_url":"https://github.com/silvermind","followers_url":"https://api.github.com/users/silvermind/followers","following_url":"https://api.github.com/users/silvermind/following{/other_user}","gists_url":"https://api.github.com/users/silvermind/gists{/gist_id}","starred_url":"https://api.github.com/users/silvermind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silvermind/subscriptions","organizations_url":"https://api.github.com/users/silvermind/orgs","repos_url":"https://api.github.com/users/silvermind/repos","events_url":"https://api.github.com/users/silvermind/events{/privacy}","received_events_url":"https://api.github.com/users/silvermind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-30T13:44:32Z","updated_at":"2015-10-03T22:07:16Z","closed_at":null,"body":"hi @huerlisi  I've ran into an issue with the salary system in the current bookyt version, which is critical for now, as we need to pay salaries tomorrow ;)). When I add a new Salary. it can't be saved, no error is shows. What is maybe related is: When I add a new \"Position\" to the new salary form I get a server side error:\r\n \r\n> NoMethodError in SalariesController#new_line_item\r\nundefined method `credit_account' for #<Class:0x007fd9c50d2a40>\r\napp/controllers/invoices_controller.rb:29:in `new_line_item'\r\n\r\nIn the InvoiceController https://github.com/huerlisi/bookyt/blob/master/app/controllers/invoices_controller.rb#L29 the Class is used (should be a Salary with Invoice Type), the Code itself has a default_credit_account and default_debit_account method, but not credit_account method\r\nhttps://github.com/huerlisi/bookyt_salary/blob/master/app/models/salary.rb\r\n\r\nIt seems the code have not been changed in recent times.. do you have an idea?"},"comment":{"url":"https://api.github.com/repos/huerlisi/bookyt/issues/comments/145293924","html_url":"https://github.com/huerlisi/bookyt/issues/69#issuecomment-145293924","issue_url":"https://api.github.com/repos/huerlisi/bookyt/issues/69","id":145293924,"user":{"login":"huerlisi","id":11375,"avatar_url":"https://avatars.githubusercontent.com/u/11375?v=3","gravatar_id":"","url":"https://api.github.com/users/huerlisi","html_url":"https://github.com/huerlisi","followers_url":"https://api.github.com/users/huerlisi/followers","following_url":"https://api.github.com/users/huerlisi/following{/other_user}","gists_url":"https://api.github.com/users/huerlisi/gists{/gist_id}","starred_url":"https://api.github.com/users/huerlisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huerlisi/subscriptions","organizations_url":"https://api.github.com/users/huerlisi/orgs","repos_url":"https://api.github.com/users/huerlisi/repos","events_url":"https://api.github.com/users/huerlisi/events{/privacy}","received_events_url":"https://api.github.com/users/huerlisi/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T22:07:16Z","updated_at":"2015-10-03T22:07:16Z","body":"@silvermind very nice, thanks for the fix! Will take a look and integrate."}}