Clean up Adjustment class
Clean up Adjustment class

  - Removes info about attribute locked

    It was removed in 43a3cca49180b1572e41bc3638d3ca0f0e9116d9 in favor
    of an event machine.

  - Removes invalid block doc adjustment#update!

    adjustment#amount is actually saved when adjustment#update! is called as
    can be confirmed by update_adjustment in the CalculatedAdjustments
    module

  - Turn ruby class methods into Rails scope

    any reason to not keep these method as Rails scopes?

Fixes #2393

odk211/spree,mleglise/spree,miyazawatomoka/spree,ayb/spree,Migweld/spree,progsri/spree,NerdsvilleCEO/spree,woboinc/spree,Nevensoft/spree,hoanghiep90/spree,quentinuys/spree,Arpsara/solidus,knuepwebdev/FloatTubeRodHolders,vinsol/spree,piousbox/spree,dotandbo/spree,Antdesk/karpal-spree,joanblake/spree,PhoenixTeam/spree_phoenix,jeffboulet/spree,imella/spree,Engeltj/spree,lsirivong/solidus,Senjai/spree,vulk/spree,karlitxo/spree,jordan-brough/spree,yomishra/pce,camelmasa/spree,rajeevriitm/spree,builtbybuffalo/spree,jspizziri/spree,orenf/spree,reidblomquist/spree,alvinjean/spree,tailic/spree,TimurTarasenko/spree,maybii/spree,firman/spree,vinsol/spree,TimurTarasenko/spree,surfdome/spree,calvinl/spree,miyazawatomoka/spree,project-eutopia/spree,jsurdilla/solidus,maybii/spree,odk211/spree,grzlus/spree,grzlus/spree,progsri/spree,NerdsvilleCEO/spree,jspizziri/spree,gregoryrikson/spree-sample,Engeltj/spree,raow/spree,ramkumar-kr/spree,lsirivong/solidus,lsirivong/solidus,jsurdilla/solidus,Ropeney/spree,edgward/spree,builtbybuffalo/spree,LBRapid/spree,PhoenixTeam/spree_phoenix,assembledbrands/spree,NerdsvilleCEO/spree,brchristian/spree,Migweld/spree,orenf/spree,grzlus/solidus,keatonrow/spree,bonobos/solidus,miyazawatomoka/spree,trigrass2/spree,AgilTec/spree,nooysters/spree,vinayvinsol/spree,yiqing95/spree,hifly/spree,woboinc/spree,abhishekjain16/spree,Senjai/solidus,njerrywerry/spree,vcavallo/spree,dafontaine/spree,jparr/spree,lsirivong/spree,tancnle/spree,archSeer/spree,ckk-scratch/solidus,wolfieorama/spree,CiscoCloud/spree,jhawthorn/spree,CiscoCloud/spree,devilcoders/solidus,raow/spree,alepore/spree,FadliKun/spree,shioyama/spree,richardnuno/solidus,StemboltHQ/spree,Senjai/spree,softr8/spree,cutefrank/spree,lsirivong/spree,Machpowersystems/spree_mach,vcavallo/spree,DarkoP/spree,keatonrow/spree,alejandromangione/spree,Ropeney/spree,vmatekole/spree,softr8/spree,fahidnasir/spree,CJMrozek/spree,volpejoaquin/spree,thogg4/spree,freerunningtech/spree,sfcgeorge/spree,surfdome/spree,vulk/spree,fahidnasir/spree,SadTreeFriends/spree,thogg4/spree,jaspreet21anand/spree,lsirivong/solidus,Antdesk/karpal-spree,tesserakt/clean_spree,vmatekole/spree,bonobos/solidus,tomash/spree,patdec/spree,kewaunited/spree,net2b/spree,rakibulislam/spree,rbngzlv/spree,yushine/spree,Boomkat/spree,wolfieorama/spree,hoanghiep90/spree,progsri/spree,joanblake/spree,Ropeney/spree,pjmj777/spree,patdec/spree,thogg4/spree,trigrass2/spree,jparr/spree,alejandromangione/spree,jordan-brough/solidus,HealthWave/spree,abhishekjain16/spree,ckk-scratch/solidus,berkes/spree,tomash/spree,NerdsvilleCEO/spree,JDutil/spree,scottcrawford03/solidus,alepore/spree,dandanwei/spree,sliaquat/spree,pulkit21/spree,progsri/spree,hoanghiep90/spree,sliaquat/spree,RatioClothing/spree,reinaris/spree,athal7/solidus,derekluo/spree,reidblomquist/spree,athal7/solidus,shioyama/spree,odk211/spree,orenf/spree,project-eutopia/spree,xuewenfei/solidus,TimurTarasenko/spree,groundctrl/spree,sunny2601/spree,derekluo/spree,cutefrank/spree,Boomkat/spree,vinsol/spree,robodisco/spree,APohio/spree,pjmj777/spree,sideci-sample/sideci-sample-spree,moneyspyder/spree,welitonfreitas/spree,Ropeney/spree,jhawthorn/spree,net2b/spree,JDutil/spree,forkata/solidus,ujai/spree,RatioClothing/spree,sliaquat/spree,pervino/spree,siddharth28/spree,siddharth28/spree,imella/spree,codesavvy/sandbox,xuewenfei/solidus,locomotivapro/spree,maybii/spree,SadTreeFriends/spree,jimblesm/spree,useiichi/spree,HealthWave/spree,gautamsawhney/spree,zaeznet/spree,bonobos/solidus,net2b/spree,beni55/spree,welitonfreitas/spree,APohio/spree,keatonrow/spree,kitwalker12/spree,CJMrozek/spree,carlesjove/spree,mindvolt/spree,Nevensoft/spree,Hawaiideveloper/shoppingcart,Arpsara/solidus,archSeer/spree,pervino/spree,agient/agientstorefront,bjornlinder/Spree,bonobos/solidus,keatonrow/spree,Mayvenn/spree,lsirivong/spree,forkata/solidus,scottcrawford03/solidus,vinayvinsol/spree,radarseesradar/spree,JuandGirald/spree,jasonfb/spree,jimblesm/spree,zaeznet/spree,patdec/spree,yomishra/pce,sunny2601/spree,moneyspyder/spree,agient/agientstorefront,richardnuno/solidus,HealthWave/spree,calvinl/spree,jaspreet21anand/spree,radarseesradar/spree,caiqinghua/spree,jasonfb/spree,camelmasa/spree,alepore/spree,hifly/spree,ckk-scratch/solidus,urimikhli/spree,urimikhli/spree,rajeevriitm/spree,piousbox/spree,nooysters/spree,athal7/solidus,mindvolt/spree,lyzxsc/spree,adaddeo/spree,shaywood2/spree,azranel/spree,pervino/solidus,surfdome/spree,jhawthorn/spree,welitonfreitas/spree,odk211/spree,priyank-gupta/spree,derekluo/spree,codesavvy/sandbox,jeffboulet/spree,Hawaiideveloper/shoppingcart,agient/agientstorefront,Hates/spree,sideci-sample/sideci-sample-spree,azranel/spree,mleglise/spree,tancnle/spree,yiqing95/spree,robodisco/spree,wolfieorama/spree,gregoryrikson/spree-sample,biagidp/spree,trigrass2/spree,abhishekjain16/spree,xuewenfei/solidus,Lostmyname/spree,quentinuys/spree,shaywood2/spree,zamiang/spree,bjornlinder/Spree,shekibobo/spree,jasonfb/spree,tesserakt/clean_spree,forkata/solidus,firman/spree,rakibulislam/spree,quentinuys/spree,pulkit21/spree,reinaris/spree,groundctrl/spree,TrialGuides/spree,tesserakt/clean_spree,AgilTec/spree,quentinuys/spree,useiichi/spree,gautamsawhney/spree,zamiang/spree,devilcoders/solidus,useiichi/spree,Hates/spree,grzlus/solidus,piousbox/spree,shekibobo/spree,groundctrl/spree,KMikhaylovCTG/spree,jimblesm/spree,richardnuno/solidus,locomotivapro/spree,azclick/spree,dandanwei/spree,pulkit21/spree,delphsoft/spree-store-ballchair,trigrass2/spree,TimurTarasenko/spree,locomotivapro/spree,yushine/spree,codesavvy/sandbox,Lostmyname/spree,raow/spree,pervino/solidus,sfcgeorge/spree,JDutil/spree,adaddeo/spree,Engeltj/spree,Kagetsuki/spree,dafontaine/spree,jeffboulet/spree,archSeer/spree,hifly/spree,forkata/solidus,Lostmyname/spree,priyank-gupta/spree,calvinl/spree,degica/spree,DynamoMTL/spree,vulk/spree,Arpsara/solidus,Lostmyname/spree,zamiang/spree,alejandromangione/spree,berkes/spree,dotandbo/spree,kitwalker12/spree,orenf/spree,richardnuno/solidus,miyazawatomoka/spree,woboinc/spree,rbngzlv/spree,ahmetabdi/spree,jeffboulet/spree,shaywood2/spree,vinayvinsol/spree,yushine/spree,SadTreeFriends/spree,ayb/spree,derekluo/spree,delphsoft/spree-store-ballchair,shaywood2/spree,vinsol/spree,softr8/spree,JDutil/spree,Senjai/solidus,vmatekole/spree,assembledbrands/spree,camelmasa/spree,gregoryrikson/spree-sample,dotandbo/spree,useiichi/spree,biagidp/spree,njerrywerry/spree,brchristian/spree,reidblomquist/spree,hifly/spree,yiqing95/spree,tancnle/spree,vcavallo/spree,scottcrawford03/solidus,net2b/spree,omarsar/spree,omarsar/spree,reinaris/spree,zamiang/spree,Nevensoft/spree,thogg4/spree,calvinl/spree,edgward/spree,watg/spree,yomishra/pce,karlitxo/spree,DarkoP/spree,APohio/spree,assembledbrands/spree,JuandGirald/spree,adaddeo/spree,joanblake/spree,shioyama/spree,cutefrank/spree,Kagetsuki/spree,bricesanchez/spree,grzlus/solidus,sfcgeorge/spree,DynamoMTL/spree,Senjai/solidus,CiscoCloud/spree,edgward/spree,ujai/spree,Senjai/solidus,njerrywerry/spree,project-eutopia/spree,devilcoders/solidus,RatioClothing/spree,APohio/spree,builtbybuffalo/spree,pulkit21/spree,mleglise/spree,reinaris/spree,tomash/spree,jordan-brough/solidus,softr8/spree,wolfieorama/spree,omarsar/spree,kewaunited/spree,beni55/spree,freerunningtech/spree,Mayvenn/spree,locomotivapro/spree,Mayvenn/spree,edgward/spree,robodisco/spree,ramkumar-kr/spree,tailic/spree,brchristian/spree,fahidnasir/spree,rakibulislam/spree,priyank-gupta/spree,pjmj777/spree,rbngzlv/spree,lyzxsc/spree,reidblomquist/spree,jaspreet21anand/spree,caiqinghua/spree,Machpowersystems/spree_mach,freerunningtech/spree,LBRapid/spree,dafontaine/spree,moneyspyder/spree,ayb/spree,CJMrozek/spree,gautamsawhney/spree,berkes/spree,volpejoaquin/spree,lyzxsc/spree,sfcgeorge/spree,agient/agientstorefront,radarseesradar/spree,shekibobo/spree,Arpsara/solidus,Hates/spree,sliaquat/spree,degica/spree,beni55/spree,siddharth28/spree,ramkumar-kr/spree,mleglise/spree,Boomkat/spree,ckk-scratch/solidus,welitonfreitas/spree,JuandGirald/spree,delphsoft/spree-store-ballchair,ramkumar-kr/spree,Mayvenn/spree,gautamsawhney/spree,alvinjean/spree,devilcoders/solidus,StemboltHQ/spree,yushine/spree,jaspreet21anand/spree,tailic/spree,urimikhli/spree,DarkoP/spree,piousbox/spree,kewaunited/spree,joanblake/spree,watg/spree,carlesjove/spree,moneyspyder/spree,sideci-sample/sideci-sample-spree,Kagetsuki/spree,raow/spree,jparr/spree,Hawaiideveloper/shoppingcart,volpejoaquin/spree,caiqinghua/spree,groundctrl/spree,carlesjove/spree,adaddeo/spree,project-eutopia/spree,TrialGuides/spree,AgilTec/spree,Hates/spree,Boomkat/spree,Nevensoft/spree,njerrywerry/spree,AgilTec/spree,maybii/spree,jordan-brough/solidus,zaeznet/spree,Hawaiideveloper/shoppingcart,siddharth28/spree,cutefrank/spree,vinayvinsol/spree,ayb/spree,azranel/spree,CiscoCloud/spree,dandanwei/spree,brchristian/spree,alejandromangione/spree,sunny2601/spree,rajeevriitm/spree,TrialGuides/spree,LBRapid/spree,KMikhaylovCTG/spree,codesavvy/sandbox,azclick/spree,Migweld/spree,shekibobo/spree,jimblesm/spree,jspizziri/spree,rakibulislam/spree,FadliKun/spree,dandanwei/spree,omarsar/spree,bricesanchez/spree,dafontaine/spree,azclick/spree,bricesanchez/spree,gregoryrikson/spree-sample,karlitxo/spree,carlesjove/spree,Migweld/spree,surfdome/spree,jspizziri/spree,vulk/spree,watg/spree,knuepwebdev/FloatTubeRodHolders,FadliKun/spree,bjornlinder/Spree,beni55/spree,hoanghiep90/spree,jasonfb/spree,berkes/spree,degica/spree,StemboltHQ/spree,rbngzlv/spree,archSeer/spree,lsirivong/spree,vcavallo/spree,KMikhaylovCTG/spree,PhoenixTeam/spree_phoenix,KMikhaylovCTG/spree,mindvolt/spree,ahmetabdi/spree,PhoenixTeam/spree_phoenix,biagidp/spree,nooysters/spree,DynamoMTL/spree,jparr/spree,dotandbo/spree,grzlus/solidus,tancnle/spree,Antdesk/karpal-spree,builtbybuffalo/spree,ujai/spree,jordan-brough/spree,Senjai/spree,pervino/solidus,CJMrozek/spree,karlitxo/spree,firman/spree,JuandGirald/spree,madetech/spree,grzlus/spree,abhishekjain16/spree,alvinjean/spree,azclick/spree,pervino/spree,jordan-brough/solidus,delphsoft/spree-store-ballchair,caiqinghua/spree,radarseesradar/spree,rajeevriitm/spree,kewaunited/spree,madetech/spree,azranel/spree,madetech/spree,Engeltj/spree,sunny2601/spree,ahmetabdi/spree,robodisco/spree,ahmetabdi/spree,alvinjean/spree,pervino/spree,DarkoP/spree,volpejoaquin/spree,jordan-brough/spree,pervino/solidus,priyank-gupta/spree,fahidnasir/spree,Machpowersystems/spree_mach,DynamoMTL/spree,patdec/spree,kitwalker12/spree,scottcrawford03/solidus,madetech/spree,SadTreeFriends/spree,yiqing95/spree,imella/spree,TrialGuides/spree,knuepwebdev/FloatTubeRodHolders,athal7/solidus,tesserakt/clean_spree,nooysters/spree,camelmasa/spree,jsurdilla/solidus,xuewenfei/solidus,grzlus/spree,firman/spree,zaeznet/spree,vmatekole/spree,mindvolt/spree,FadliKun/spree,Kagetsuki/spree,jsurdilla/solidus,tomash/spree,lyzxsc/spree