mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-26 20:54:21 +01:00
(bug) wrong namespace for task fix:cart_operator
This commit is contained in:
parent
fbe59a3aac
commit
65a7c5c73b
@ -3,6 +3,8 @@
|
||||
- Improved upgrade script
|
||||
- Fix a bug: empty advanced accounting code is not defaulted to the general setting
|
||||
- Fix a bug: invalid style in accounting codes settings
|
||||
- Fix a bug: wrong namespace for task cart_operator
|
||||
- [TODO DEPLOY] `rails fablab:fix:cart_operator`
|
||||
- [TODO DEPLOY] `rails fablab:setup:build_accounting_lines`
|
||||
|
||||
## v5.8.1 2023 March 03
|
||||
|
@ -294,9 +294,8 @@ namespace :fablab do
|
||||
Fablab::Application.load_tasks if Rake::Task.tasks.empty?
|
||||
Rake::Task['fablab:chain:invoices_items'].invoke
|
||||
end
|
||||
end
|
||||
|
||||
desc '[release 5.7] fix operator of self-bought carts'
|
||||
desc '[release 5.6] fix operator of self-bought carts'
|
||||
task cart_operator: :environment do |_task, _args|
|
||||
Order.where.not(statistic_profile_id: nil).find_each do |order|
|
||||
order.update(operator_profile_id: order.user&.invoicing_profile&.id)
|
||||
@ -306,3 +305,4 @@ namespace :fablab do
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user