{"action":"created","issue":{"url":"https://api.github.com/repos/cubecart/v6/issues/907","labels_url":"https://api.github.com/repos/cubecart/v6/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/cubecart/v6/issues/907/comments","events_url":"https://api.github.com/repos/cubecart/v6/issues/907/events","html_url":"https://github.com/cubecart/v6/issues/907","id":116173697,"number":907,"title":"Negative values added together","user":{"login":"briansandall","id":14335170,"avatar_url":"https://avatars.githubusercontent.com/u/14335170?v=3","gravatar_id":"","url":"https://api.github.com/users/briansandall","html_url":"https://github.com/briansandall","followers_url":"https://api.github.com/users/briansandall/followers","following_url":"https://api.github.com/users/briansandall/following{/other_user}","gists_url":"https://api.github.com/users/briansandall/gists{/gist_id}","starred_url":"https://api.github.com/users/briansandall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briansandall/subscriptions","organizations_url":"https://api.github.com/users/briansandall/orgs","repos_url":"https://api.github.com/users/briansandall/repos","events_url":"https://api.github.com/users/briansandall/events{/privacy}","received_events_url":"https://api.github.com/users/briansandall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-10T18:40:58Z","updated_at":"2015-11-11T17:54:27Z","closed_at":null,"body":"Another edge case for ya ;)\r\n\r\nEntering a negative value for weight in the Product Options screen works fine (e.g. the option weighs less than normal); however, if the value is already negative and you edit it to another negative value, the values are added together, instead of set to the value you entered.\r\n\r\nE.g. enter '-1.0', save and reload, enter '-1.0' again, save and reload. Expect to see '-1.0', observed value is '-2.0'.\r\n\r\nZero and positive values work as expected."},"comment":{"url":"https://api.github.com/repos/cubecart/v6/issues/comments/155860822","html_url":"https://github.com/cubecart/v6/issues/907#issuecomment-155860822","issue_url":"https://api.github.com/repos/cubecart/v6/issues/907","id":155860822,"user":{"login":"bhsmither","id":4073092,"avatar_url":"https://avatars.githubusercontent.com/u/4073092?v=3","gravatar_id":"","url":"https://api.github.com/users/bhsmither","html_url":"https://github.com/bhsmither","followers_url":"https://api.github.com/users/bhsmither/followers","following_url":"https://api.github.com/users/bhsmither/following{/other_user}","gists_url":"https://api.github.com/users/bhsmither/gists{/gist_id}","starred_url":"https://api.github.com/users/bhsmither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhsmither/subscriptions","organizations_url":"https://api.github.com/users/bhsmither/orgs","repos_url":"https://api.github.com/users/bhsmither/repos","events_url":"https://api.github.com/users/bhsmither/events{/privacy}","received_events_url":"https://api.github.com/users/bhsmither/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T17:54:27Z","updated_at":"2015-11-11T17:54:27Z","body":"The database class has been coded to add/subtract from the current value in the database table column for, like, since day one.\r\n\r\nI suppose it was one of those \"unrealized assumptions\" about certain properties having initially set negative values."}}