Matt-Yorkley
4dc2172dd2
Update deprecated #search method name
...
DEPRECATION WARNING: #search is deprecated and will be removed in 2.3, please use #ransack instead (called from search at /home/user/Github/openfoodnetwork/lib/open_food_network/sales_tax_report.rb:40)
2021-12-27 16:24:33 +00:00
Filipe
20c0195584
Merge pull request #8017 from cillian/hide-variants-with-no-stock
...
When creating backoffice orders hide variants with no stock by default
2021-12-23 21:34:06 +00:00
Filipe
b256696544
Merge pull request #8549 from mkllnk/deprecate-stripe-connect
...
Hide old "Stripe" (StripeConnect) payment method type, keep new Stripe SCA
2021-12-23 21:33:42 +00:00
Filipe
b786d89fe9
Merge pull request #8555 from jibees/8507-fix-product-search-order-
...
Searching variants should order results by variant display name
2021-12-23 17:41:01 +00:00
Filipe
4001fa985b
Merge pull request #8612 from Matt-Yorkley/packing-reports-filtering
...
Packing reports filtering
2021-12-22 13:03:17 +00:00
Luis Ramos
6c281e288c
Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)
2021-12-20 15:00:13 +11:00
Cillian O'Ruanaidh
9bc7922734
Only left join variant overrides belonging to the distributor when searching for in stock variants.
...
Before the :scope_to_distributor call was filtering out variants from other distributors anyway via the :exchange_variants table but it is clearer if we filter by distributor on the :variant_overrides left join too.
2021-12-17 15:25:55 +00:00
Jean-Baptiste Bellet
a33ebbdc85
Include and joins after the order seems in order to select fields...
...
...that are in the order by
2021-12-15 10:11:51 +01:00
Maikel Linke
0cc4e5728e
Reference product attributes for sorting correctly
...
The previous version failed in some cases as it relied on a table name
generated by Rails.
2021-12-15 15:23:52 +11:00
Matt-Yorkley
1efaa7e726
Switch search filters from orders to line_items
2021-12-12 13:23:56 +00:00
Matt-Yorkley
e3f9825696
Rename #scoped_orders_relation
2021-12-11 19:04:22 +00:00
Matt-Yorkley
6d2521bf5f
Remove Spree.user_class
...
This construct was previously used in Spree to switch out the user class with a dummy class during certain tests. We don't use this any more, so it's just mess.
🔥
2021-12-10 18:18:20 +00:00
Maikel Linke
faf0a3ab84
Remove unnecessary disabling of cop
2021-12-10 09:26:57 +11:00
Maikel Linke
207cc8908a
Remove useless assignments
...
Rubocop highlighted this. The todo list actually contains these files
but somehow the cop still runs and reports these as violations.
2021-12-10 09:26:57 +11:00
Jean-Baptiste Bellet
cad8d8316d
Improve variant order when searching
2021-12-07 11:37:39 +01:00
Jean-Baptiste Bellet
31cc2549ed
Order variant search by display_name
2021-12-07 11:18:20 +01:00
Adrien Chauve
051950e04c
Remove references to deprecated application.yml config file.
...
Point to .env and other .env.* config files.
2021-11-24 15:11:00 +01:00
Matt-Yorkley
378d3d5ab6
Merge pull request #8476 from Matt-Yorkley/reports-producers-visibility
...
Ensure line items are correctly scoped for producers
2021-11-17 15:07:37 +00:00
Maikel
c3076f0316
Merge pull request #8447 from Matt-Yorkley/keyword-args-deprecation
...
Fix keyword args deprecations
2021-11-17 17:09:15 +11:00
Matt-Yorkley
d0f572b051
Remove dead code: session[:guest_token]
...
This `session[:guest_token]` doesn't seem to ever be assigned anywhere in the codebase, and it doesn't seem to be read at any point either..? There are some various places where `current_order.token` is used and `session[:access_token]` is used, but not this.
As far as I can tell: it was part of an old version of Spree and related to the spree_auth_devise gem (which we no longer use).
2021-11-14 12:02:07 +00:00
Matt-Yorkley
0d8d4db41f
Fix keyword args deprecations
...
/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/core/delegate_belongs_to.rb:75: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/runner/work/openfoodnetwork/openfoodnetwork/lib/spree/i18n.rb:20: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
2021-11-11 14:16:37 +00:00
Matt-Yorkley
0683941f88
Ensure line items are correctly scoped for producers
2021-11-11 13:11:19 +00:00
Matt-Yorkley
0d7bb2ff90
Update sorting by name in supplier report
2021-11-04 22:08:27 +00:00
Matt-Yorkley
c6ef14e9ee
Update masking in supplier report
2021-11-04 22:08:10 +00:00
Matt-Yorkley
373fc2e22e
Update show_customer_names_to_suppliers check
2021-11-04 14:55:23 +00:00
Matt-Yorkley
924f6568d6
Replace data loading with new Reports::QueryInterface
2021-11-04 14:55:23 +00:00
Matt-Yorkley
817f0942dd
Pull in reports POC work replacing Packing reports
2021-11-04 14:55:23 +00:00
Luis Azcuaga
e8fd89a6d2
Run rubocop over existing todo
2021-10-25 21:28:28 -05:00
Cillian O'Ruanaidh
2462d71ab5
When creating backoffice orders hide variants with no stock by default
...
But let people include out of stock variants by checking a checkbox if they want.
Note, we only apply the variants in stock scope if a distributor is
present. I think this is because this search method is also used when
setting up subscriptions so I don't think we want to change the
behaviour there.
Co-authored-by: Maikel Linke <maikel@email.org.au >
2021-10-08 13:13:32 +01:00
Maikel
02a10ede15
Merge pull request #7938 from dacook/product-image-import
...
Add script to import product images from URL
2021-09-20 16:57:23 +10:00
Maikel
a3c31f7d86
Revert "Kill stripe connect"
2021-09-20 08:39:34 +10:00
Nihal M. Kelanthodika
9d216f0cea
Merge pull request #8160 from apricot12/8019-Delivery_report
...
Show order total in Delivery/Payment Method reports instead of first …
2021-09-15 13:11:43 +05:30
Nihal Mohammed
fa9f6432c3
Fix profile_storer.rb and profile_storer_spec
2021-09-10 14:43:34 +05:30
Nihal Mohammed
6ac835de2e
Fix response for payment_profile_id in profile_storer.rb
2021-09-10 14:43:34 +05:30
Luis Ramos
5434b51f75
Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)
2021-09-10 14:41:06 +05:30
Nihal
43e6d1b933
Show order total in Delivery/Payment Method reports instead of first payment
2021-09-10 13:08:00 +05:30
Maikel
9affc6a945
Merge pull request #8108 from Matt-Yorkley/andand
...
Remove `andand` gem
2021-09-10 15:06:00 +10:00
Andy Brett
f8486bcbf8
Merge pull request #7769 from Matt-Yorkley/payment-status-checking
...
Stripe: payment status debugging
2021-09-08 15:21:38 -07:00
Matt-Yorkley
1d5077061e
Remove andand
...
This old gem implemented some functionality for handling nils which is no longer needed, as it's provided natively by Ruby with the &. operator.
2021-09-08 14:28:31 +01:00
Matt-Yorkley
1d472d0dec
Add Rack Middleware for transitioning existing sessions
...
This checks if the current request has been submitted using the old session key (_session_id) and transparently migrates the session id to a new session cookie with the new settings and the new key (_ofn_session_id).
2021-08-22 15:57:43 +01:00
Matt-Yorkley
2a5675c526
Merge pull request #7746 from Matt-Yorkley/puma
...
Puma
2021-08-05 11:55:05 +02:00
Matt-Yorkley
5725989343
Fix deprecated syntax in old controller helper
...
This syntax for rendering a file isn't valid in Rails 6.x...
2021-07-31 13:11:10 +01:00
Jean-Baptiste Bellet
09491cfc6d
Only return order with the selected shipping rates is true
...
Same concept as
https://github.com/openfoodfoundation/openfoodnetwork/blob/master/app/services/search_orders.rb#L31
2021-07-28 17:05:50 +02:00
Matt-Yorkley
886e03af2f
Merge pull request #7805 from Matt-Yorkley/adjustments-admin
...
[Adjustments] Admin adjustments
2021-07-27 12:23:29 +02:00
Matt-Yorkley
9d4b34b35b
Merge pull request #7977 from Matt-Yorkley/tidy-up
...
Spree tidy-up
2021-07-27 11:52:22 +02:00
Luis Ramos
d1f1f62f9a
Add needed constant to class eval
2021-07-25 16:08:30 +01:00
Luis Ramos
02b4693068
Fix class name
2021-07-25 16:08:30 +01:00
Luis Ramos
4057445562
Replace setup_intents class from active merchat v1.i98 with a decorator that will adapt the version in v1.119
2021-07-25 16:06:49 +01:00
Matt-Yorkley
2d69810c5d
Convert CalculatedAdjustments into a proper Concern and remove class_eval
2021-07-24 21:28:13 +01:00
David Cook
c156d0c2e6
Add script to import product images from URL
...
With new ImageImporter.
Co-authored-by: Maikel <maikel@email.org.au >
2021-07-16 11:36:49 +10:00