{"action":"created","issue":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/2383","repository_url":"https://api.github.com/repos/snipe/snipe-it","labels_url":"https://api.github.com/repos/snipe/snipe-it/issues/2383/labels{/name}","comments_url":"https://api.github.com/repos/snipe/snipe-it/issues/2383/comments","events_url":"https://api.github.com/repos/snipe/snipe-it/issues/2383/events","html_url":"https://github.com/snipe/snipe-it/issues/2383","id":168877517,"number":2383,"title":"\"Purchase cost\" input is not interpreted correctly","user":{"login":"molldk","id":165660,"avatar_url":"https://avatars.githubusercontent.com/u/165660?v=3","gravatar_id":"","url":"https://api.github.com/users/molldk","html_url":"https://github.com/molldk","followers_url":"https://api.github.com/users/molldk/followers","following_url":"https://api.github.com/users/molldk/following{/other_user}","gists_url":"https://api.github.com/users/molldk/gists{/gist_id}","starred_url":"https://api.github.com/users/molldk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molldk/subscriptions","organizations_url":"https://api.github.com/users/molldk/orgs","repos_url":"https://api.github.com/users/molldk/repos","events_url":"https://api.github.com/users/molldk/events{/privacy}","received_events_url":"https://api.github.com/users/molldk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T12:52:35Z","updated_at":"2016-08-03T14:48:04Z","closed_at":"2016-08-02T16:54:52Z","body":"Hi,\r\n\r\nWhen editing an asset, the price will be formatted with comma (,) for thousand seperator and dot for decimals. When this is inputted, it should save it correctly in database, however it replaces the purchase cost with the leading integers. For example the price of 8,975.00 will be converted to 8.\r\n\r\nThe input works correctly when inputting the cost as integer, 8975 will result in correct behavior. Any assets thats is edited will contain the formatted number, hence be changed to a wrong value.\r\n\r\n- [X] I have enabled debug mode\r\n- [X] I have read [checked the Common Issues page](http://docs.snipeitapp.com/common-issues.html)\r\n\r\n-----\r\n#### Please provide answers to these questions before posting your bug report:\r\nVersion v3.1-84-g139325d\r\nCentOS 7, Apache, PHP5.6 from Remi repository, MariaDB\r\nManual installation with git clone\r\nNo error is shown, just wrong data\r\nHappens on /hardware/XXX/edit - possibly during clone and creation as well (not tested)\r\nSame thing happens on Snipe-IT Demo.\r\nI have not touched the database manually.\r\n\r\nSteps to reproduce problem:\r\n1. Edit asset\r\n2. Enter Purchase Cost 1500\r\n3. Save\r\n4. Edit same asset\r\n5. Change something else, or just save\r\n6. Price is now 1"},"comment":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/comments/237258584","html_url":"https://github.com/snipe/snipe-it/issues/2383#issuecomment-237258584","issue_url":"https://api.github.com/repos/snipe/snipe-it/issues/2383","id":237258584,"user":{"login":"laughtingman","id":17199634,"avatar_url":"https://avatars.githubusercontent.com/u/17199634?v=3","gravatar_id":"","url":"https://api.github.com/users/laughtingman","html_url":"https://github.com/laughtingman","followers_url":"https://api.github.com/users/laughtingman/followers","following_url":"https://api.github.com/users/laughtingman/following{/other_user}","gists_url":"https://api.github.com/users/laughtingman/gists{/gist_id}","starred_url":"https://api.github.com/users/laughtingman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughtingman/subscriptions","organizations_url":"https://api.github.com/users/laughtingman/orgs","repos_url":"https://api.github.com/users/laughtingman/repos","events_url":"https://api.github.com/users/laughtingman/events{/privacy}","received_events_url":"https://api.github.com/users/laughtingman/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T14:48:04Z","updated_at":"2016-08-03T14:48:04Z","body":"Snipe,\r\n\r\nlicenses, components, acessories and consumables has exactly the same bug."}}
{"actor":{"display_login":"laughtingman"}}