Skip to content
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

Controle de produção #26

Merged
merged 1,369 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1369 commits
Select commit Hold shift + click to select a range
717f747
fix order.rb: task #396
Pauloparakleto Nov 20, 2023
a9a3968
feat production.rb, development.rb: task #396
Pauloparakleto Nov 20, 2023
5de88ec
refactor bling_order_item_creator_base_job.rb: task #396
Pauloparakleto Nov 20, 2023
7338f8a
fix order_spec.rb: task #396
Pauloparakleto Nov 20, 2023
46947d7
Add specs for sessions/new.html.erb
gscarv13 Nov 21, 2023
d404997
Merge pull request #363 from gscarv13/feat/signin-failure-notification
Pauloparakleto Nov 21, 2023
00f2eef
Merge pull request #399 from Purple-Stock/feat/396-pending-job-perfor…
Pauloparakleto Nov 21, 2023
74af5a1
update shein orders to use account_id
puppe1990 Nov 21, 2023
8a3b01a
Merge pull request #401 from Purple-Stock/staging
puppe1990 Nov 21, 2023
24af92e
remove byebug
puppe1990 Nov 21, 2023
59eaa5f
Merge pull request #403 from Purple-Stock/staging
puppe1990 Nov 21, 2023
da19a68
feat bling_order_item_spec.rb, bling_order_items.rb, bling_order_item…
Pauloparakleto Nov 21, 2023
f1bc708
test pending_order_items_job_spec.rb: task #security
Pauloparakleto Nov 21, 2023
13e7cab
feat bling_order_item_creator_base_job.rb: task #security
Pauloparakleto Nov 21, 2023
7a86331
feat home_controller.rb: task #security
Pauloparakleto Nov 21, 2023
f3d4006
feat bling_order_item_histories_spec.rb: task #security
Pauloparakleto Nov 21, 2023
e52fcc2
fix bling_order_item_histories_spec.rb: task #security
Pauloparakleto Nov 21, 2023
133945a
fix home_controller.rb: task #security
Pauloparakleto Nov 21, 2023
b5153e0
fix home_controller.rb: task #security
Pauloparakleto Nov 21, 2023
832b80d
fix spec/factories/bling_order_items.rb: task #security
Pauloparakleto Nov 21, 2023
8898ce4
fix migration: task #security
Pauloparakleto Nov 21, 2023
4cd249f
fix bling_order_item.rb: task #security
Pauloparakleto Nov 21, 2023
bbc45b3
fix bling_order_item_spec.rb: task #security
Pauloparakleto Nov 21, 2023
d789014
Merge pull request #402 from Purple-Stock/fix/security
Pauloparakleto Nov 21, 2023
71be0b1
create api route to find orders
puppe1990 Nov 22, 2023
a93040c
Merge pull request #406 from Purple-Stock/staging
puppe1990 Nov 22, 2023
29cbc87
add tenant
puppe1990 Nov 22, 2023
15c4d0b
Merge pull request #407 from Purple-Stock/staging
puppe1990 Nov 22, 2023
1995dd9
open the endpoint
puppe1990 Nov 22, 2023
5077306
Merge pull request #408 from Purple-Stock/staging
puppe1990 Nov 22, 2023
b30a1be
feat development.rb, production.rb: task #409
Pauloparakleto Nov 23, 2023
25e21e8
feat services/bling/order.rb: task #409
Pauloparakleto Nov 23, 2023
3c4fcfd
Merge pull request #414 from Purple-Stock/feat/409-general-pending-st…
Pauloparakleto Nov 23, 2023
92c32f1
Merge branch 'main' into staging
Pauloparakleto Nov 23, 2023
e964325
Merge pull request #415 from Purple-Stock/staging
Pauloparakleto Nov 23, 2023
a090552
change the threads of the goodjob
puppe1990 Nov 23, 2023
3631b95
Merge pull request #416 from Purple-Stock/staging
puppe1990 Nov 23, 2023
f12cbdb
test home_spec.rb: task #417
Pauloparakleto Nov 23, 2023
bbd6076
feat home_controller.rb: task #417
Pauloparakleto Nov 23, 2023
84988ca
feat home/index.html.erb: task #417
Pauloparakleto Nov 23, 2023
3662dc8
fix home_spec.rb: task #417
Pauloparakleto Nov 23, 2023
9008d04
feat home/_order_items.html.erb: task #417 and #413
Pauloparakleto Nov 23, 2023
1c288c4
feat home/_order_items.html.erb: task #417 and #413
Pauloparakleto Nov 23, 2023
edfdc31
refactor home/_order_items.html.erb: task #417 and #413
Pauloparakleto Nov 23, 2023
e5fb8c6
refactor home/_order_items.html.erb: task #417 and #413
Pauloparakleto Nov 24, 2023
1dc1933
refactor home/_order_items.html.erb: task #417 and #413
Pauloparakleto Nov 24, 2023
ed32a56
Merge pull request #418 from Purple-Stock/feat/417-canceled-orders-co…
Pauloparakleto Nov 24, 2023
b3258b0
fix canceled_bling_order_item_job_spec.rb: task #security
Pauloparakleto Nov 21, 2023
5e99a65
chore spec_helper.rb: task #security
Pauloparakleto Nov 21, 2023
77de457
chore spec_helper.rb: task #security
Pauloparakleto Nov 21, 2023
bd7da97
refactor checked_bling_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
0ff8b2e
fix checked_bling_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
cb92de8
chore spec_helper.rb: task #security
Pauloparakleto Nov 22, 2023
4db2047
fix bling_order_item_creator_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
31446bc
chore current_done_bling_order_item_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
5ebe766
chore in_progress_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
4a2bc77
chore pending_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
bdf9075
chore printed_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
b292e30
chore verified_bling_order_items_job_spec.rb: task #security
Pauloparakleto Nov 22, 2023
dbc9479
chore jobs/*.rb: task #security
Pauloparakleto Nov 22, 2023
1b5ad60
chore order_spec.rb: task #security
Pauloparakleto Nov 22, 2023
2cbfb2b
Merge pull request #420 from Purple-Stock/staging
Pauloparakleto Nov 24, 2023
c880da4
fix home/index.html.erb: task #421
Pauloparakleto Nov 24, 2023
75aee6d
Merge pull request #422 from Purple-Stock/fix/421-remover-metas-cance…
Pauloparakleto Nov 24, 2023
85a4b00
Merge pull request #423 from Purple-Stock/staging
Pauloparakleto Nov 24, 2023
3b58f69
fix canceled_bling_order_item_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
90d0612
chore all_canceled_order_items.yml: task security
Pauloparakleto Nov 24, 2023
d1c966f
fix bling_order_item_creator_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
13fafb4
chore all_situations_bling_order_items.yml: task security
Pauloparakleto Nov 24, 2023
e83225c
fix checked_bling_order_items_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
396fd84
chore all_checked_order_items.yml: task security
Pauloparakleto Nov 24, 2023
52a6685
fix current_done_bling_order_item_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
e0ff06f
chore verified_checked_order_items_situation.yml: task security
Pauloparakleto Nov 24, 2023
5c67197
fix all_in_progress_order_items.rb: task security
Pauloparakleto Nov 24, 2023
463446e
chore all_in_progress_order_items.yml: task security
Pauloparakleto Nov 24, 2023
54ba43a
fix pending_order_items_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
d81d524
chore all_pending_order_items.yml, all_pending_order_items_date_range…
Pauloparakleto Nov 24, 2023
f98b3b5
fix printed_order_items_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
789eb0b
chore all_printed_order_items.yml: task security
Pauloparakleto Nov 24, 2023
91ab298
fix printed_order_items_job_spec.rb: task security
Pauloparakleto Nov 24, 2023
573a9a6
chore all_verified_order_items.yml: task security
Pauloparakleto Nov 24, 2023
ef36163
fix services/bling/order_spec.rb.rb: task security
Pauloparakleto Nov 24, 2023
4ca3728
chore bling_order_items_max_pages.yml, bling_order_current_day.yml, b…
Pauloparakleto Nov 24, 2023
03530a2
Merge pull request #1 from Pauloparakleto/feat/vcr-security-users-data
Pauloparakleto Nov 24, 2023
986c788
Merge pull request #426 from Purple-Stock/staging
Pauloparakleto Nov 24, 2023
848b952
fix new status for shein order
puppe1990 Nov 27, 2023
eea3e90
Merge pull request #427 from Purple-Stock/staging
puppe1990 Nov 27, 2023
fbeb692
fix name of shein sheet header
puppe1990 Nov 27, 2023
d86534e
Merge pull request #429 from Purple-Stock/staging
puppe1990 Nov 27, 2023
97f9a8f
change the counter to use distinct
puppe1990 Nov 27, 2023
8dd6514
Merge pull request #430 from Purple-Stock/staging
puppe1990 Nov 27, 2023
fe29ffd
jobs and scripts
puppe1990 Nov 29, 2023
5d46d8c
fix
puppe1990 Nov 29, 2023
77648c1
Merge pull request #431 from Purple-Stock/staging
puppe1990 Nov 29, 2023
e58335f
add new fileld to bling order items
puppe1990 Nov 29, 2023
2d9f437
Merge pull request #432 from Purple-Stock/staging
puppe1990 Nov 29, 2023
b6e873c
fix development.rb, production.rb: #434
Pauloparakleto Dec 1, 2023
d891554
fix development.rb, production.rb: #434
Pauloparakleto Dec 1, 2023
0857721
test checked_bling_order_items_job_spec.rb: #434
Pauloparakleto Dec 1, 2023
e2015a9
feat checked_bling_order_items_job.rb: #434
Pauloparakleto Dec 1, 2023
d89522b
feat development.rb, production.rb: #434
Pauloparakleto Dec 1, 2023
828076a
Merge pull request #435 from Purple-Stock/feat/434-weekly-pending-cou…
Pauloparakleto Dec 2, 2023
0eace84
fix bling_order_items/index.html.erb: task #404
Pauloparakleto Nov 27, 2023
d68a50b
test monthly_revenue_presenter_spec.rb: task #404
Pauloparakleto Nov 27, 2023
4d60f2e
test monthly_revenue_presenter_spec.rb: task #404
Pauloparakleto Nov 28, 2023
3d9dc9f
test monthly_revenue_presenter_spec.rb: task #404
Pauloparakleto Nov 28, 2023
b9453d2
feat 20231127200218_add_value_to_bling_order_item.rb: task #404
Pauloparakleto Nov 28, 2023
0269845
fix monthly_revenue_presenter_spec.rb: #404 update result with correc…
Pauloparakleto Nov 28, 2023
c631e20
feat monthly_revenue_presenter.rb: #404
Pauloparakleto Nov 28, 2023
16d5d02
feat monthly_revenue_presenter.rb: #404
Pauloparakleto Nov 28, 2023
aed1ebd
refactor monthly_revenue_presenter.rb: #404
Pauloparakleto Nov 28, 2023
bc1909e
test monthly_revenue_presenter_spec.rb: #404
Pauloparakleto Nov 28, 2023
cc1c521
fix monthly_revenue_presenter.rb: #404
Pauloparakleto Nov 28, 2023
0ec7907
test bling_order_item_spec.rb: #404
Pauloparakleto Nov 28, 2023
a70cd7b
chore factories/bling_order_items.rb: #404
Pauloparakleto Nov 28, 2023
8eaa5ec
fix bling_order_item.rb: #404
Pauloparakleto Nov 28, 2023
d0322f1
feat bling_order_item.rb: #404
Pauloparakleto Nov 28, 2023
d5b16a5
feat bling_order_item_creator_base_job.rb: #404
Pauloparakleto Nov 28, 2023
bdca1ff
test requests/bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 28, 2023
92e6fae
feat bling_order_item_histories_controller.rb: #404
Pauloparakleto Nov 28, 2023
1604a1d
chore factories/bling_order_items.rb: #404
Pauloparakleto Nov 28, 2023
9c9040d
feat routes.rb: #404
Pauloparakleto Nov 28, 2023
29438fa
feat index.html.erb: #404
Pauloparakleto Nov 28, 2023
232806a
fix bling_order_item_histories_controller.rb: #404
Pauloparakleto Nov 28, 2023
703af13
test daily_revenue_presenter_spec.rb: #404
Pauloparakleto Nov 29, 2023
92351cf
feat application.css: #404
Pauloparakleto Nov 29, 2023
c154040
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 29, 2023
edbdabd
test daily_revenue_presenter_spec.rb: #404
Pauloparakleto Nov 29, 2023
7cc0709
feat daily_revenue_presenter.rb: #404
Pauloparakleto Nov 29, 2023
6b72bcf
test daily_revenue_presenter_spec.rb: #404
Pauloparakleto Nov 29, 2023
ae89ccc
feat daily_revenue_presenter.rb: #404
Pauloparakleto Nov 29, 2023
aec3f7d
feat daily_revenue_presenter.rb: #404
Pauloparakleto Nov 30, 2023
7ef3b7f
test bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 30, 2023
76e43e9
feat bling_order_item_histories_controller.rb: #404
Pauloparakleto Nov 30, 2023
e6caf80
feat routes.rb: #404
Pauloparakleto Nov 30, 2023
7b0ba52
test daily_revenue_presenter_spec.rb: #404
Pauloparakleto Nov 30, 2023
7b4b011
feat daily_revenue_presenter.rb: #404
Pauloparakleto Nov 30, 2023
183f4c6
test bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 30, 2023
b75fdb4
test bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 30, 2023
665399a
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
8b02f7f
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
c8bf17d
refactor bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 30, 2023
c1a8db1
refactor bling_order_item_histories_controller.rb: #404
Pauloparakleto Nov 30, 2023
cba06b1
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
098d503
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
18bdc77
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
c305b1e
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
df64aac
refactor bling_order_item_histories_spec.rb: #404
Pauloparakleto Nov 30, 2023
946a236
refactor bling_order_item_histories_controller.rb: #404
Pauloparakleto Nov 30, 2023
9623aaa
feat bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
6a8c3a2
chore routes.rb: #404
Pauloparakleto Nov 30, 2023
4e4e3bc
refactor bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
dbea8eb
fix bling_order_item_histories/index.html.erb: #404
Pauloparakleto Nov 30, 2023
bac92d3
refactor daily_revenue_report.rb, daily_revenue_report_spec.rb: #404
Pauloparakleto Nov 30, 2023
f4de89a
chore checked_bling_order_items_job_spec.rb: #404
Pauloparakleto Nov 30, 2023
adb3f75
fix bling_order_item_spec.rb: #404
Pauloparakleto Dec 1, 2023
efddae3
fix bling_order_item_histories_controller.rb: #404
Pauloparakleto Dec 1, 2023
3876f7b
fix bling_order_item_histories/index.html.erb: #404
Pauloparakleto Dec 1, 2023
30dfe0b
chore monthly_revenue_presenter.rb, monthly_revenue_presenter_spec.rb…
Pauloparakleto Dec 1, 2023
f3da7cc
fix daily_revenue_report_spec.rb: #434
Pauloparakleto Dec 1, 2023
228c0e1
fix daily_revenue_report.rb: #434
Pauloparakleto Dec 1, 2023
c4e9923
Merge pull request #433 from Purple-Stock/feat/404-monthly-revenue
Pauloparakleto Dec 2, 2023
591d028
test canceled_bling_order_item_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
9918f09
test current_done_bling_order_item_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
73076a7
test in_progress_order_items_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
9a29501
test pending_order_items_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
4e5ec98
test printed_order_items_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
d80e24e
feat bling_order_item_creator_base_job.rb: #437
Pauloparakleto Dec 2, 2023
0ded2df
refactor bling_order_item_creator_base_job.rb: #437
Pauloparakleto Dec 2, 2023
75466ea
test current_done_bling_order_item_job_spec.rb: #437
Pauloparakleto Dec 2, 2023
a539bc3
fix bling_order_item_creator_base_job.rb: #437
Pauloparakleto Dec 2, 2023
9f9d1dc
Merge pull request #438 from Purple-Stock/feat/437-add-values-orders
Pauloparakleto Dec 4, 2023
dfd1d1a
chore development.rb, production.rb: #439
Pauloparakleto Dec 4, 2023
0227bce
Merge pull request #441 from Purple-Stock/feat/439-increase-pending-j…
Pauloparakleto Dec 4, 2023
384a334
chore development.rb, production.rb: #439
Pauloparakleto Dec 5, 2023
b856377
Merge pull request #443 from Purple-Stock/feat/442-decrease-canceled-…
Pauloparakleto Dec 5, 2023
c2c3f12
test bling_order_item_spec.rb: #444
Pauloparakleto Dec 5, 2023
502960f
feat bling_order_item.rb: #444
Pauloparakleto Dec 5, 2023
7a6980a
feat lib/tasks/update_value_situation_bling_order_items.rake: #444
Pauloparakleto Dec 5, 2023
441915f
chore find_checked_order.yml: #444
Pauloparakleto Dec 5, 2023
78318cf
refactor bling_order_item_spec.rb: #444
Pauloparakleto Dec 5, 2023
c2bc75e
fix bling_order_item.rb: #444
Pauloparakleto Dec 5, 2023
261df74
chore find_checked_order.yml.rb: #444
Pauloparakleto Dec 5, 2023
e8071d6
chore find_checked_order.yml: #444
Pauloparakleto Dec 5, 2023
711e3e6
fix bling_order_item_spec.rb: #444
Pauloparakleto Dec 5, 2023
a00cb83
Merge pull request #445 from Purple-Stock/feat/444-update-yourself-bl…
Pauloparakleto Dec 5, 2023
fc86240
refactor bling_order_item.rb, bling_order_job_updater.rb: #444
Pauloparakleto Dec 5, 2023
4e74a42
fix bling_order_job_updater.rb: #444
Pauloparakleto Dec 5, 2023
07ea550
Merge pull request #446 from Purple-Stock/feat/444-update-yourself-bl…
Pauloparakleto Dec 5, 2023
1b6062f
test bling_order_item_spec.rb: #447
Pauloparakleto Dec 6, 2023
d356307
feat bling_order_job_updater.rb: #447
Pauloparakleto Dec 6, 2023
de7a953
chore find_checked_order.yml: #447
Pauloparakleto Dec 6, 2023
4d48506
chore find_checked_order_with_error_too_many_requests.yml: #447
Pauloparakleto Dec 6, 2023
4406ca6
test pending_order_items_job_spec.rb: #447
Pauloparakleto Dec 6, 2023
790615b
feat pending_order_items_job.rb: #447
Pauloparakleto Dec 6, 2023
e62a390
feat services/bling/order.rb: #447
Pauloparakleto Dec 6, 2023
8d86057
chore bling_order_item_creator_base_job.rb: #447
Pauloparakleto Dec 6, 2023
f772e97
test all_pending_order_items_with_errors.yml: #447
Pauloparakleto Dec 6, 2023
5c82923
fix order_spec.rb: #447
Pauloparakleto Dec 6, 2023
1f064a0
fix pending_order_items_job_spec.rb: #447
Pauloparakleto Dec 6, 2023
545e941
feat pending_order_items_job.rb: #447
Pauloparakleto Dec 6, 2023
3c7d82a
feat services/bling/order.rb: #447
Pauloparakleto Dec 6, 2023
5e485e9
feat bling_order_item_creator_base_job.rb: #447
Pauloparakleto Dec 6, 2023
4d42789
feat canceled_bling_order_items_job.rb, checked_bling_order_items_job…
Pauloparakleto Dec 6, 2023
f13e71d
fix all_verified_order_items.yml: #447
Pauloparakleto Dec 6, 2023
3942b3b
Merge pull request #449 from Purple-Stock/feat/447-retry-on-error-upd…
Pauloparakleto Dec 6, 2023
cf486e3
test weekly_canceled_order_items_job_spec.rb: #450
Pauloparakleto Dec 7, 2023
aaf7f03
feat weekly_canceled_order_items_job.rb: #450
Pauloparakleto Dec 7, 2023
0668b92
test all_canceled_order_items_date_range.yml: #450
Pauloparakleto Dec 7, 2023
57c89ba
feat development.rb, production.rb: #450
Pauloparakleto Dec 7, 2023
7f46e41
Merge pull request #452 from Purple-Stock/feat/450-cancelados-too-man…
Pauloparakleto Dec 7, 2023
f68c726
services/bling/order.rb: #450
Pauloparakleto Dec 7, 2023
4835608
pending_order_items_job_spec.rb: #450
Pauloparakleto Dec 7, 2023
6ca168a
Merge pull request #453 from Purple-Stock/feat/450-cancelados-too-man…
Pauloparakleto Dec 7, 2023
0e9c523
refactor bling_order_item_creator_base_job.rb: #450
Pauloparakleto Dec 7, 2023
b553b38
chore canceled_bling_order_item_job_spec.rb, current_done_bling_order…
Pauloparakleto Dec 7, 2023
f74449c
Merge pull request #454 from Purple-Stock/feat/refactor-base-job
Pauloparakleto Dec 7, 2023
b934626
chore development.rb, production.rb: #456
Pauloparakleto Dec 8, 2023
457ba2f
chore services/bling/order.rb: #456
Pauloparakleto Dec 8, 2023
98f7c7a
Merge pull request #457 from Purple-Stock/feat/456-canceled-before-cu…
Pauloparakleto Dec 8, 2023
48b3a95
update layout
puppe1990 Dec 8, 2023
ae08652
Merge pull request #458 from Purple-Stock/staging
puppe1990 Dec 8, 2023
ea02440
feat Gemfile and Gemfile.lock: #
Pauloparakleto Dec 11, 2023
0d7e926
feat sentry.rb: #
Pauloparakleto Dec 11, 2023
7955e7a
feat bling_order_item_creator_base_job.rb: #
Pauloparakleto Dec 11, 2023
525ee3c
Merge pull request #459 from Purple-Stock/feat/debugger-sentry
Pauloparakleto Dec 11, 2023
b2f77ba
feat development.rb, production.rb: #460
Pauloparakleto Dec 12, 2023
9700e81
Merge pull request #461 from Purple-Stock/feat/460-pending-weekly-job
Pauloparakleto Dec 12, 2023
212f771
refactor daily_revenue_chart.js: #428
Pauloparakleto Dec 12, 2023
f2b83ac
refactor quantity_revenue_chart.js: #428
Pauloparakleto Dec 12, 2023
8dbd80b
refactor bling_order_item_histories/index.html.erb: #428
Pauloparakleto Dec 12, 2023
fe6afd7
refactor application.js: #428
Pauloparakleto Dec 12, 2023
07c1afb
feat bling_order_item_histories/index.html.erb: #428
Pauloparakleto Dec 12, 2023
9063de2
feat bling_order_item_histories_controller.rb: #428
Pauloparakleto Dec 12, 2023
3568564
feat canceled_revenue_chart.js: #428
Pauloparakleto Dec 12, 2023
99e3b87
feat application.js: #428
Pauloparakleto Dec 12, 2023
b68b823
fix chart-container.css: #428
Pauloparakleto Dec 12, 2023
9a6bc28
chore application.css: #428
Pauloparakleto Dec 12, 2023
6a29cc7
chore bling_order_item_histories/index.html.erb: #428
Pauloparakleto Dec 12, 2023
210e20f
Merge pull request #463 from Purple-Stock/feat/428-canceled-estimate-…
Pauloparakleto Dec 12, 2023
3b641c1
create a filter for pending products
puppe1990 Dec 15, 2023
e9c7daf
fix name
puppe1990 Dec 15, 2023
93d0bc2
Merge pull request #15 from Purple-Stock/feat/filter-pending-products
puppe1990 Dec 15, 2023
81e8336
add csv option
puppe1990 Dec 16, 2023
cdc4397
inital commit
puppe1990 Dec 24, 2023
92895b8
clean
puppe1990 Dec 24, 2023
0839790
Merge branch 'main' into feat/control-clothing-manufacturing
puppe1990 Dec 26, 2023
45627bf
Merge branch 'staging' into feat/control-clothing-manufacturing
puppe1990 May 9, 2024
67c332c
xit tests
puppe1990 May 11, 2024
5537e04
remove
puppe1990 May 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Você pode testar o Open Erp com um clique no Heroku:

Este projeto existe graças a todas as pessoas que contribuem. Fique a vontade para contribuir! Essas aqui são boas [issues](https://github.com/Purple-Stock/open-erp/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) para começar! Se tiver dúvidas ou interesse em utilizar em algum negócio entre em contato em matheus.puppe@purplestock.com.br


## Contribuidores

Esse projeto existe graças ao esforço e dedicação dessas pessoas:
Expand All @@ -128,3 +129,4 @@ Esse projeto existe graças ao esforço e dedicação dessas pessoas:
## Licença

[MIT](https://github.com/Purple-Stock/open-erp/blob/master/LICENSE)

64 changes: 64 additions & 0 deletions app/controllers/productions_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
class ProductionsController < ApplicationController
before_action :set_production, only: [:show, :edit, :update, :destroy]
before_action :set_tailor_options, only: [:new, :edit, :create, :update]

def index
@productions = Production.all
end

def show
end

def new
@production = Production.new
@production.production_products.build
end

def edit
end

def create
@production = Production.new(production_params)
if @production.save
redirect_to @production, notice: 'Production was successfully created.'
else
render :new
end
end

def update
if @production.update(production_params)
redirect_to @production, notice: 'Production was successfully updated.'
else
render :edit
end
end

def destroy
begin
ProductionProduct.where(production_id: @production.id).destroy_all
@production.destroy
respond_to do |format|
format.html { redirect_to productions_path, notice: 'Produção deletado.' }
format.turbo_stream { render turbo_stream: turbo_stream.remove(dom_id(@production)) }
end
rescue ActiveRecord::InvalidForeignKey
# Handle invalid foreign key by raising a custom error message
raise "Can't delete production because it has associated records"
end
end

private

def set_production
@production = Production.find(params[:id])
end

def production_params
params.require(:production).permit(:cut_date, :deliver_date, :quantity, :tailor_id, :consider, production_products_attributes: [:id, :product_id, :quantity, :_destroy])
end

def set_tailor_options
@tailors = Tailor.all
end
end
49 changes: 49 additions & 0 deletions app/controllers/tailors_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
class TailorsController < ApplicationController
before_action :set_tailor, only: [:show, :edit, :update, :destroy]

def index
@tailors = Tailor.all
end

def show
end

def new
@tailor = Tailor.new
end

def edit
end

def create
@tailor = Tailor.new(tailor_params)
if @tailor.save
redirect_to @tailor, notice: 'Costureiro Criado com sucesso.'
else
render :new
end
end

def update
if @tailor.update(tailor_params)
redirect_to @tailor, notice: 'Costureiro Atualizado com sucesso.'
else
render :edit
end
end

def destroy
@tailor.destroy
redirect_to tailors_url, notice: 'Costureiro Removido com sucesso.'
end

private

def set_tailor
@tailor = Tailor.find(params[:id])
end

def tailor_params
params.require(:tailor).permit(:name, :production_id)
end
end
2 changes: 2 additions & 0 deletions app/helpers/productions_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module ProductionsHelper
end
2 changes: 2 additions & 0 deletions app/helpers/tailors_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module TailorsHelper
end
5 changes: 5 additions & 0 deletions app/models/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ class Product < ApplicationRecord
has_many :purchase_products
has_many :sale_products
has_many :group_products
has_many :production_products
has_many :productions, through: :production_products
has_one_attached :image

has_one_attached :image do |attachable|
attachable.variant :thumb, resize_to_limit: [50, 50]
end

has_many :simplo_items
has_one :store
has_one :stock, dependent: :destroy
Expand Down
31 changes: 31 additions & 0 deletions app/models/production.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# == Schema Information
#
# Table name: productions
#
# id :bigint not null, primary key
# consider :boolean default(FALSE)
# cut_date :datetime
# deliver_date :datetime
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer
# tailor_id :bigint
#
# Indexes
#
# index_productions_on_account_id (account_id)
# index_productions_on_tailor_id (tailor_id)
#
# Foreign Keys
#
# fk_rails_... (tailor_id => tailors.id)
#
class Production < ApplicationRecord
acts_as_tenant :account
has_many :production_products
has_many :products, through: :production_products

accepts_nested_attributes_for :production_products, allow_destroy: true

belongs_to :tailor, optional: true
end
27 changes: 27 additions & 0 deletions app/models/production_product.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# == Schema Information
#
# Table name: production_products
#
# id :bigint not null, primary key
# quantity :integer
# created_at :datetime not null
# updated_at :datetime not null
# product_id :bigint not null
# production_id :bigint not null
#
# Indexes
#
# index_production_products_on_product_id (product_id)
# index_production_products_on_production_id (production_id)
#
# Foreign Keys
#
# fk_rails_... (product_id => products.id)
# fk_rails_... (production_id => productions.id)
#
class ProductionProduct < ApplicationRecord
belongs_to :product
belongs_to :production

validates :quantity, presence: true, numericality: { greater_than_or_equal_to: 0 }
end
3 changes: 0 additions & 3 deletions app/models/revenue_estimation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# created_at :datetime not null
# updated_at :datetime not null
#
# RevenueEstimation exists to answer a question:
# How much Order Items to sale in order to achieve the average ticket
# for the given month?
class RevenueEstimation < ApplicationRecord
attr_accessor :month

Expand Down
2 changes: 1 addition & 1 deletion app/models/shein_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Indexes
#
# index_shein_orders_on_account_id (account_id)
#

require 'zip'

class SheinOrder < ApplicationRecord
Expand Down
18 changes: 18 additions & 0 deletions app/models/tailor.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# == Schema Information
#
# Table name: tailors
#
# id :bigint not null, primary key
# name :string
# created_at :datetime not null
# updated_at :datetime not null
# account_id :integer
#
# Indexes
#
# index_tailors_on_account_id (account_id)
#
class Tailor < ApplicationRecord
acts_as_tenant :account
has_many :productions
end
22 changes: 22 additions & 0 deletions app/views/productions/_form.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<%= form_with(model: production, local: true) do |form| %>

<!-- Fields for production -->

<div class="form-group">
<%= form.label :tailor_id, 'Select Tailor' %>
<%= form.collection_select :tailor_id, Tailor.all, :id, :name, include_blank: true %>
</div>

<h3>Products</h3>
<div id="products">
<%= form.fields_for :products do |product_form| %>
<%= render 'product_fields', f: product_form %>
<% end %>

<div class="links">
<%= link_to_add_association 'Add Product', form, :products %>
</div>
</div>

<%= form.submit %>
<% end %>
9 changes: 9 additions & 0 deletions app/views/productions/_product_fields.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- app/views/productions/_product_fields.html.erb -->
<div class="nested-fields">
<%= f.label :name %>
<%= f.text_field :name %>

<!-- other product fields -->

<%= link_to_remove_association "Remove Product", f %>
</div>
17 changes: 17 additions & 0 deletions app/views/productions/_production.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="<%= dom_id production %>">
<p>
<strong>Quantity:</strong>
<%= production.quantity %>
</p>

<p>
<strong>Cut date:</strong>
<%= production.cut_date %>
</p>

<p>
<strong>Deliver date:</strong>
<%= production.deliver_date %>
</p>

</div>
2 changes: 2 additions & 0 deletions app/views/productions/_production.json.jbuilder
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
json.extract! production, :id, :quantity, :cut_date, :deliver_date, :created_at, :updated_at
json.url production_url(production, format: :json)
22 changes: 22 additions & 0 deletions app/views/productions/_production_product_fields.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div class="nested-fields">
<div class="col-md-12">
<div class="row mb-3">
<!-- Product Select Dropdown -->
<div class="col-md-6">
<%= f.label :product_id, t('activerecord.attributes.production_product.product_id') %>
<%= f.collection_select :product_id, Product.all, :id, :name, { include_blank: true }, { class: 'form-control' } %>
</div>

<!-- Quantity Input -->
<div class="col-md-2">
<%= f.label :quantity, t('activerecord.attributes.production_product.quantity') %>
<%= f.number_field :quantity, class: 'form-control' %>
</div>

<!-- Remove Button -->
<div class="col-md-2 d-flex align-items-end">
<%= link_to_remove_association t('actions.remove_product'), f, class: 'btn btn-danger' %>
</div>
</div>
</div>
</div>
44 changes: 44 additions & 0 deletions app/views/productions/edit.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<br><br>
<%= form_with(model: @production, local: true, html: { class: 'needs-validation', novalidate: '' }) do |form| %>

<!-- Row 1: Tailor Selection -->
<div class="row mb-3">
<div class="col-3">
<%= form.label :tailor_id, t('productions.form.tailor_selection'), class: 'form-label' %>
<%= form.collection_select :tailor_id, @tailors, :id, :name, { include_blank: true }, { class: 'form-control' } %>
</div>
</div>

<!-- Row 2: Dates -->
<div class="row mb-3">
<div class="col-md-6">
<%= form.label :cut_date, t('productions.form.cut_date'), class: 'form-label' %>
<%= form.date_field :cut_date, class: 'form-control' %>
</div>
<div class="col-md-6">
<%= form.label :deliver_date, t('productions.form.deliver_date'), class: 'form-label' %>
<%= form.date_field :deliver_date, class: 'form-control' %>
</div>
</div>

<!-- Row 3: Production Products -->
<div class="mb-3">
<%= form.fields_for :production_products do |pp_form| %>
<%= render 'production_product_fields', f: pp_form %>
<% end %>
<%= link_to_add_association t('productions.form.add_product'), form, :production_products, class: 'btn btn-primary' %>
</div>

<div class="row mb-3 form-check">
<%= form.check_box :consider, class: 'form-check-input' %>
<%= form.label :consider, t('productions.form.consider'), class: 'form-check-label' %>
</div>

<!-- Submit Button -->
<div class="row">
<div class="col">
<%= form.submit @production.new_record? ? t('helpers.submit.create') : t('helpers.submit.update'), class: 'btn btn-success' %>
</div>
</div>

<% end %>
Loading
Loading