Konrad
cc8898e074
Merge pull request #11219 from abdellani/fix-tax-rates-rendering-when-invoice-enabled
...
fix Viewing an invoice with the instance's invoice setting set to alternative model leads to an error 500
2023-10-12 17:47:27 +02:00
Mohamed ABDELLANI
aa4798d35c
add adjustables to the list of objects to serialize when creating an invoice
2023-10-11 09:27:16 +01:00
Mohamed ABDELLANI
68a6fb132a
implement display_adjustment_tax_rates helper on the adjustment presenter
...
For every adjustment a list of tax rates will be created using TaxRateFinder.tax_rates_of.
This will prevent running the queries to find the tax rates during the invoice generation.
2023-10-11 09:26:50 +01:00
Mohamed ABDELLANI
33826631a3
reimplement the display_line_item_tax_rates helper on the line item presenter
...
1. reimplment the helper on the LintItem presenter
2. add the tax rate associated to the line items to the list of objects to serialize during the order serialization.
3. implement a presenter for the introducer tax rates.
2023-10-11 09:26:49 +01:00
David Cook
99205e435c
Show only the new products page in the menu
...
When the feature toggle is enabled, we don't want to see the old products page. It's a bit broken and causes confusion. But we still want to be able to access it by the URL for now.
2023-10-10 22:09:26 +11:00
Mohamed ABDELLANI
dce096a56e
check if invoices feature is enabled for the current user before showing invoices tab
2023-10-08 21:47:17 +02:00
David Cook
9a9be8dacd
Validate length of variant fields
2023-10-06 14:15:07 +02:00
David Cook
fee126d6e1
Style form error messages
...
With an icon, and sentence case (upcase_first is similar to humanize, but simpler (https://dev.to/junko911/rails-helper-methods-to-change-the-form-of-strings-1h9c#upcase-first ))
2023-10-06 14:15:07 +02:00
David Cook
3b19a19776
Show inline errors for product fields
...
The form helper () doesn't work for this case, but it seems we can call it directly like this instead. I'd like to fix the helper, but got stuck this time.
2023-10-06 14:15:07 +02:00
David Cook
5e478b8a76
Vertically align non-input content in table rows
2023-10-06 14:15:07 +02:00
David Cook
cd63ab63d8
Refactor form code
...
Co-authored-by: Maikel <maikel@email.org.au >
2023-10-04 13:40:36 +02:00
Jean-Baptiste Bellet
c134de850c
Add filter on completed_at of an order
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
4f332504af
Add new line at the end of file
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
9e295146cb
Remove supplier filter
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
baff4b5399
Rename 'distributor' to 'hub'
2023-09-22 16:44:33 +01:00
Rachel Arnould
a3ca7e9032
Merge pull request #11568 from jibees/11069-buu-fully-update-the-details-of-my-products-and-variants-1
...
🚧 [BUU] Add `Edit` link into a small menu on the last Actions column to the right of the table
2023-09-22 10:30:01 +02:00
Konrad
a55797d727
Merge pull request #11510 from rioug/11421-deactivate-voucher
...
[Vouchers] add activate/deactivate feature
2023-09-21 15:03:47 +02:00
Rachel Arnould
15137caed2
Merge pull request #11509 from dacook/buu-editing-part3-11059
...
[BUU] Bulk form editing features
2023-09-20 19:27:05 +02:00
Jean-Baptiste Bellet
2a98789571
Add vertical-ellipsis-menu as product/variant actions menu in products table
...
+ add specs
2023-09-19 16:08:27 +02:00
Jean-Baptiste Bellet
2c478f1d8e
Link to product/variant edit page
2023-09-19 14:26:14 +02:00
Jean-Baptiste Bellet
0847f6b0f6
Create a new column actions for each rows (product+variant)
2023-09-19 14:25:55 +02:00
Jean-Baptiste Bellet
5df211137e
Tweak stimulus pagination (used on orders) to be up to date
2023-09-15 10:47:43 +02:00
David Cook
99ac48a258
Discarding changes reloads from DB
...
But it also clears any search filters. To confirm exactly what behaviour is desired before fixing...
2023-09-15 15:46:02 +10:00
David Cook
8ff67aca41
Disable filters and sorting when form is modified
...
Stimulus controllers aren't supposed to reach outside their own element (so we can't do this with targets). Perhaps the controller should be bigger to encompass more, but I wanted to see if I could avoid making a mega component that does everything. For now it seems appropriate just to pass a selector in.
Another option is to publish events on other controllers using Outlets, but I don't know if we need to go there just yet.
2023-09-15 15:45:48 +10:00
David Cook
e047f49998
Make form actions float over sort controls.
2023-09-15 15:45:48 +10:00
David Cook
15f7a8299b
Show form actions only when modified
2023-09-15 15:45:48 +10:00
David Cook
daefada5a9
Show summary of modified records
...
I found myself trying to write Ruby in Javascript, and it's not nearly as pretty..
Javascript now has more advanced data structures like Map, but it's rather useless because it doesn't have the usual iterator methods (such as filter, map, reduce etc).
Also for the spec I wasn't sure of the best approach, so will gladly recieve feedback.
2023-09-15 15:45:48 +10:00
David Cook
18e40bebd0
Mark modified fields
2023-09-15 15:45:45 +10:00
David Cook
0966864589
Merge pull request #11511 from dacook/fix-update-button-11349
...
Fix Update button sizing
2023-09-14 13:37:19 +10:00
David Cook
2e6e083667
[fixup] Fix Update button sizing
...
By disabling line wrap we can consistently predict how it will appear. The longest translation we currently have is 14 characters so this should be fine.
2023-09-14 09:37:10 +10:00
Mohamed ABDELLANI
ee7668e713
implement enterprise fee report filters
...
squash Reformat/Refactor spec
2023-09-13 19:09:55 +02:00
Gaetan Craig-Riou
48956b9bd1
As per review comment, simplify voucher view a little
2023-09-11 11:59:34 +02:00
Gaetan Craig-Riou
8face3d182
Merge pull request #11488 from macanudo527/fix_helperinstancevariable_2
...
Fix Rails/HelperInstanceVariable 2
2023-09-08 19:51:39 +10:00
David Cook
99da60921f
Fix Update button sizing
...
This was broken when upgrading [Foundation](https://github.com/openfoodfoundation/openfoodnetwork/pull/11349 ). For some reason the button.expand class now sets larger font size and padding, which overrides the button.small class. It's probably a bug but we'll have to work around it.
2023-09-08 10:20:26 +10:00
Filipe
ccabf5936d
Merge pull request #11505 from drummer83/master
...
[Super admin] Highlight 'Configuration' tab on 'Terms of Service' page
2023-09-07 18:00:18 +01:00
Konrad
ea622cd2d7
Merge pull request #11487 from pedrocarmona/feature/invitation-email-locale
...
Send translated email when creating users via super admin interface
2023-09-07 16:41:59 +02:00
drummer83
13d5b954e6
Add 'Terms of Service' to the tabs
2023-09-06 23:18:00 +02:00
Konrad
3b9ebf4e07
Merge pull request #11396 from abdellani/fix-if-tos-is-not-set
...
fix If ToS file is not set, customer needs to accept Terms on each checkout
2023-09-06 16:56:21 +02:00
Neal Chambers
b1e40ed605
Fix Rails/HelperInstanceVariable
2023-09-06 22:36:46 +09:00
Gaetan Craig-Riou
d1b5dcab88
Add ability to activate deactivate a voucher
...
Plus controller specs
2023-09-05 15:48:59 +02:00
Pedro Carmona
51050036d4
Use instance default locale as the default locale for a new user
2023-09-05 01:00:35 +01:00
Pedro Carmona
c4830e3baa
Send localized email when creating users via admin interface
...
Based on the current user locale
2023-09-05 01:00:35 +01:00
Konrad
fd6f2338e5
Merge pull request #11450 from mkllnk/feature-toggle-enterprise
...
Activate vouchers feature per user or enterprise
2023-09-04 21:30:41 +02:00
Jean-Baptiste Bellet
b6b64e9439
Add trix editor to new product form
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
3225c52898
Actually, this should not be sanitize before going through trix editor
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
e200eccc42
Replace angular editor by trix editor
2023-09-04 15:46:54 +02:00
Gaetan Craig-Riou
50693dd5d2
Merge pull request #11468 from dacook/buu-editing-part2-11059
...
[BUU] Editing - part 2 (product and variant text fields) 🚧
2023-09-04 23:41:44 +10:00
Neal Chambers
4feb8f922e
Fix Rails/HelperInstanceVariable in injection_helper.rb
2023-09-01 11:03:26 +09:00
David Cook
63383e8ea1
Enable editing of variant price
...
Formatting of the price was copied from the existing bulk product screen.
2023-08-31 16:41:41 +10:00
David Cook
b955cd8fee
Enable editing of variant SKU
...
I'm not sure what the point of the product SKU was to be honest.. it will probably be removed in the product refactor.
2023-08-31 16:41:41 +10:00