Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Add missing JS routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 21, 2017
1 parent 31548e3 commit b8cf358
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//= require spree/backend/templates/stock_transfers/transfer_item
//= require spree/backend/stock_transfers/routes
//= require spree/backend/stock_transfers/count_update_forms
//= require spree/backend/stock_transfers/edit
//= require spree/backend/stock_transfers/receive
Expand Down
11 changes: 11 additions & 0 deletions app/assets/javascripts/spree/backend/stock_transfers/routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Spree.routes.receive_stock_transfer_api = function(stockTransferNumber) {
return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/receive')
}

Spree.routes.create_transfer_items_api = function(stockTransferNumber) {
return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/transfer_items')
}

Spree.routes.update_transfer_items_api = function(stockTransferNumber, itemId) {
return Spree.pathFor('api/stock_transfers/' + stockTransferNumber + '/transfer_items/' + itemId)
}

0 comments on commit b8cf358

Please sign in to comment.