Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. class API::V1::ReceptionController < API::V1::APIController
  2. before_filter :ensure_document_exists
  3.  
  4. def produto
  5. jid = ProdutoWorker.perform_async params[:document]
  6. render json: {jid: jid}, :status => 200
  7. end
  8.  
  9. def cliente
  10. jid = ClienteFornecedorWorker.perform_async params[:document]
  11. render json: {jid: jid}, :status => 200
  12. end
  13.  
  14. def nota_fiscal
  15. jid = NotaFiscalWorker.perform_async params[:document]
  16. render json: {jid: jid}, :status => 200
  17. end
  18.  
  19. def venda
  20. jid = VendaWorker.perform_async params[:document]
  21. render json: {jid: jid}, :status => 200
  22. end
  23.  
  24. def reducaoz
  25. jid = ReducaoZWorker.perform_async params[:document]
  26. render json: {jid: jid}, :status => 200
  27. end
  28.  
  29. def impressora_fiscal
  30. jid = ImpressoraFiscalWorker.perform_async params[:document]
  31. render json: {jid: jid}, :status => 200
  32. end
  33. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement