{"action":"closed","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/3524","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/3524/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/3524/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/3524/events","html_url":"https://github.com/Sylius/Sylius/issues/3524","id":114828043,"number":3524,"title":"Calculate order total on each order modification","user":{"login":"michalmarcinkowski","id":7572437,"avatar_url":"https://avatars.githubusercontent.com/u/7572437?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmarcinkowski","html_url":"https://github.com/michalmarcinkowski","followers_url":"https://api.github.com/users/michalmarcinkowski/followers","following_url":"https://api.github.com/users/michalmarcinkowski/following{/other_user}","gists_url":"https://api.github.com/users/michalmarcinkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmarcinkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmarcinkowski/subscriptions","organizations_url":"https://api.github.com/users/michalmarcinkowski/orgs","repos_url":"https://api.github.com/users/michalmarcinkowski/repos","events_url":"https://api.github.com/users/michalmarcinkowski/events{/privacy}","received_events_url":"https://api.github.com/users/michalmarcinkowski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sylius/Sylius/labels/Easy%20Pick","name":"Easy Pick","color":"fbca04"},{"url":"https://api.github.com/repos/Sylius/Sylius/labels/Enhancement","name":"Enhancement","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-03T14:25:30Z","updated_at":"2016-01-19T10:28:30Z","closed_at":"2016-01-19T10:28:30Z","body":"On every operation that can influence the order total we should recalculate the total. It should be applied to all methods like add/removeAdjustment and add/removeItem.\r\n\r\nThen we should also make sure the relation is handled correctly and calling `setOrder` on `OrderItem` we should also make a call to `addItem` on this order to be sure that everything is recalculated. "}}