Skip to content

Instantly share code, notes, and snippets.

@andersondias
Last active May 21, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersondias/9ff316bcd9891b526147c2104d5889e1 to your computer and use it in GitHub Desktop.
Save andersondias/9ff316bcd9891b526147c2104d5889e1 to your computer and use it in GitHub Desktop.
Teste de NFs travadas
ids = %w(6675436 6675449 6675454 6675464 6675483 6675503 7114435 6675537 7114417 7115359 6675520 6675521 6675519 6675532 6675543 6675542 6675558 6675561 6675556 6675572 6675567 6675568 6675600 6675589 6675614 6675608 6675602 7114497 6675626 6675622 7114519 6675638 6675643 6675659 6675665 6675666 7114543 7114556 6675685 6675712 7114629 6675759 6675833 6675775 6675795 6675792 6675845 6675820 6675857 6675823 6675831 6675828 6675856 5090738 6675867 6675882 6675883 6675930 6675885 6675892 6675896 6675926 6675942 6675897 6675899 6675963 6675902 6675967 7114758 6675984 6676020 6675966 6676021 6675928 6675939 6675955 6675983 6675978 6675979 6675990 7114833 7114866 6676042 6676053 7114852 6676047 6676062 6676061 6676074 6676081 7114888 6676098 6676125 6676087 6676100 6676597 6676116 7114890 6676120 7114918); nil
Invoice.where(state: "waiting_order", id: ids).update_all(state: "title_integrated", provider_order_process_id: nil)
Setting.set(:send_invoice_to_mxm_worker_enabled, 'true')
ids.each do |id|
SendInvoiceToMxmWorker.new.perform(id)
end; nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment