-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bulk upload store credit button added #1
base: master
Are you sure you want to change the base?
Conversation
a01fd7e
to
253d1a8
Compare
create_store_credit_updater | ||
redirect_to admin_users_path, notice: Spree.t(:email_sent, filename: @store_credit_updater.data_file_file_name) | ||
rescue | ||
redirect_to admin_users_path, notice: "Invalid CSV file format." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this error to en.yml
@row = row | ||
@user = find_user | ||
if @user | ||
update_stocks_with_csv_values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which stocks are being updated?
end | ||
|
||
def error_message | ||
@error ? @error : 'Successfully Updated' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en.yml
class CreateSpreeBulkStoreCreditUpdater < ActiveRecord::Migration[4.2] | ||
def change | ||
create_table :spree_bulk_store_credit_updaters do |t| | ||
t.boolean :job_executed, default: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nil: false
a71eaab
to
2b7af47
Compare
2b7af47
to
f5bc1ec
Compare
b4c1802
to
38aa649
Compare
Added the link to the Youtube video.
Update README.md
No description provided.