Filipe
6b00319e4a
Merge pull request #9191 from jibees/9186-inverse-hide-columns-UX-by-a-columns-to-show
...
Admin, Reports: Inverting logic from "Columns to hide" to "Columns to show"
2022-06-21 17:34:31 +01:00
François Turbelin
76ea7089d9
Implement suggestions
2022-06-21 10:08:12 +02:00
François Turbelin
bc9dcc7cbc
Block disabled users from logging in
2022-06-21 10:08:12 +02:00
Maikel
553046addb
Merge pull request #9255 from jibees/fix-admin-taxonomies-interface
...
Fix admin taxonomies interface
2022-06-21 09:41:55 +10:00
Filipe
8b7d474f4c
Merge pull request #9177 from jibees/9067-save-all-data-when-submitting-the-form
...
Admin, Create a new product: re-fill the form with fields values if any validation errors occurs when submitting
2022-06-13 14:54:02 +01:00
Jean-Baptiste Bellet
16babf8250
Don't modify params object, but use an intermediate variable
...
`@params_fields_to_show`
2022-06-13 14:39:12 +02:00
Filipe
9fee4f1554
Merge pull request #9203 from AgriculturaFamiliar/remove-closed-associated-adjustments-button
...
Remove closed associated adjustments button
2022-06-10 10:10:50 +01:00
Filipe
43888f7f3c
Merge pull request #9126 from mkllnk/active-storage
...
[Breaking] Replace Paperclip with Active Storage
2022-06-07 11:14:39 +01:00
Filipe
6ff2d4a9d5
Merge pull request #9109 from apricot12/8917-Link-to-enterprise-site
...
Adding a link to enterprise's own site from Order confirmation page.
2022-06-02 17:59:03 +01:00
Filipe
b3d81154e6
Merge pull request #9174 from georgethoppil/nan-items-subscription
...
Updating order cycle will ensure any $NaN subscription item prices to be recalculated
2022-06-02 17:28:54 +01:00
Jean-Baptiste Bellet
817b5f437f
Authorize :position params
2022-06-02 15:41:44 +02:00
Arthur
05c8414e0d
Merge branch 'openfoodfoundation:master' into remove-closed-associated-adjustments-button
2022-06-01 16:03:43 -03:00
Maikel Linke
b7efa1b018
Replace Paperclip on Spree::Image
2022-06-01 17:16:55 +10:00
Maikel Linke
4a0ed99919
Replace Paperclip on Enterprise model
...
We configured Paperclip to convert images to JPG in some cases but I
omitted that here because we don't need it. If an image is better
represented as PNG or another format then the user should be able to
choose that.
Some specs were also testing the generated URL but the Active Storage
URL doesn't contain a style name anymore and it's not helpful to test
the URL.
2022-06-01 17:16:55 +10:00
Maikel Linke
727eef3c4f
Replace Paperclippable ContentConfig
...
The old Paperclip configuration was very clever and easy to use but it
was also a complicated implementation building on the complicated Spree
preference system.
I simplified this with Active Storage, storing simple references to blob
ids and default URLs as backup.
2022-06-01 17:16:54 +10:00
Jean-Baptiste Bellet
78c2f76a3f
Introduce FeatureToggle for columns logic
...
relative to a46416a98
2022-05-31 15:57:39 +02:00
Maikel
f3d9b3d7ed
Merge pull request #9157 from jibees/SC-sort-shipping-methods-case-insenstive
...
Split Checkout: Sort shipping methods case insensitive
2022-05-31 10:54:43 +10:00
Jean-Baptiste Bellet
a46416a98e
Change UX to transform from fields_to_hide to fields_to_show
...
Fill `params[:fields_to_show]` with its default value
2022-05-30 15:34:08 +02:00
Jean-Baptiste Bellet
454e4a4100
Initialize on_demand checkbox value
2022-05-30 14:54:47 +02:00
Jean-Baptiste Bellet
70baccd76c
Create a method to handle redirect after save
...
and the get rid of rubocop linter error
2022-05-30 14:54:47 +02:00
Jean-Baptiste Bellet
c78e734dee
Initialize with submitted value on_hand
2022-05-30 14:54:47 +02:00
Arthur Vieira
95010fcd12
Remove the unlock condition in shipment controller
...
This assumes unlock is always true so the shipment's fee adjustments
always opens and closes.
2022-05-26 09:21:48 -03:00
georgethoppil
a37f54e4b3
Find subscriptions in schedule to recalculate nil estimate price
2022-05-17 20:58:25 -04:00
Sebastian Castro
0218f75f34
Packing Report: hide by default phone and price column to avoid breaking changes
2022-05-12 16:54:14 +02:00
Sebastian Castro
767afe1fba
Reports Renderer: whitelist report formats
2022-05-12 16:54:14 +02:00
Sebastian Castro
287e8f5845
Reports Refactor 3
...
Easily group and create header and summary row
Auto format cells when appropriate type (boolean, dates) and render_format (neither csv nor json)
2022-05-12 16:54:13 +02:00
Sebastian Castro
452a3fa933
Reports Refactor 2: Merge Spree::reports into Admin::Reports
2022-05-12 16:54:13 +02:00
Sebastian Castro
288a35f062
Reports Refactor 2: New templates abstract classes
2022-05-12 16:54:13 +02:00
Sebastian Castro
5f78fdce8b
Reports Refactor 2: Move all code to lib/reporting
2022-05-12 16:54:13 +02:00
Sebastian Castro
392166b57a
Reports Refactor 2: Simplify render_content? method
2022-05-12 16:54:13 +02:00
Sebastian Castro
2985d2af15
Report Refactor 1 Cleaning
...
clean no longer used methods
Remove no longer needed require
Delete files not used
Fix Linting
2022-05-12 16:54:13 +02:00
Sebastian Castro
e9513f6172
Report Refactor 1: Enterprise Fee Summary
...
Disable enterprise fee summary spec for now
Will need to write them again
2022-05-12 16:54:13 +02:00
Sebastian Castro
4a99a7d1de
Report Refactor 1: Xero Invoices
2022-05-12 16:54:13 +02:00
Sebastian Castro
41c11baa3f
Report Refactor 1: Users & Entreprises
2022-05-12 16:54:13 +02:00
Sebastian Castro
3d1b61ae6e
Report Refactor 1: Products & Inventory
2022-05-12 16:54:13 +02:00
Sebastian Castro
881a708ecf
Report Refactor 1: Payments
2022-05-12 16:54:13 +02:00
Sebastian Castro
9d943625a3
Report Refactor 1: Sales Tax
2022-05-12 16:54:13 +02:00
Sebastian Castro
e20c2e3ced
Report Refactor 1: Orders & Distributors
2022-05-12 16:54:13 +02:00
Sebastian Castro
01be6fb1f3
Report Refactor 1: Order Cycle Management
2022-05-12 16:54:13 +02:00
Sebastian Castro
1fee45035c
Report Refactor 1: Customers
2022-05-12 16:54:12 +02:00
Sebastian Castro
09247b21cd
Reports Refactor 1
...
Use code closer to the new packing report controller
Handle nil @report_subtypes
2022-05-12 16:54:12 +02:00
Sebastian Castro
213c0dd060
Packing Report: add price and reorder columns
...
Adds price column
last_name column first because it's used for ordering
2022-05-12 16:54:12 +02:00
Sebastian Castro
d53d38906a
Packing Report: Refactor view to be reusable by other reports
...
For now this view is used only in the context of packing, but later we would move all existing rpeort to use same view
2022-05-12 16:54:12 +02:00
georgethoppil
86a3f91ca2
When order cycle open/close times are updated, check to see if any subscription has line items that have price estimate as nil. Recalculate the price and save the column
2022-05-11 13:54:43 -04:00
Jean-Baptiste Bellet
61f8dfd809
Add order_token params to the redirect URL after checkout
2022-05-09 17:45:52 +02:00
Maikel
e59d753333
Merge pull request #9044 from georgethoppil/optional-restock-items
...
Optional restock items
2022-05-09 09:08:26 +10:00
GeorgeThoppil
8903496a1b
Optional restocking items
2022-05-06 10:55:24 -04:00
Jean-Baptiste Bellet
f2ac888f2c
Sort shipping methods case insensitive
2022-05-05 14:37:27 +02:00
Filipe
fb834d3143
Merge pull request #9138 from jibees/9137-order-shipping-methods-alphabetically
...
Split checkout: Order shipping methods by name
2022-05-05 12:41:12 +01:00
Jean-Baptiste Bellet
34fcb4a1f7
Order shipping methods by name
...
+ create spec
2022-04-27 16:37:37 +02:00