Buy and Sales ROR4, AngularJS app