Maikel
a1dbb3353f
Merge pull request #11820 from macanudo527/fix_autocorrect_rubocop2
...
Fix Style Rubocop Errors
2023-11-17 14:25:12 +11:00
Maikel
f087aa07d0
Merge pull request #11705 from abdellani/fix-existing-tests
...
Fix invoice printing tests
2023-11-17 12:57:24 +11:00
Neal Chambers
c3c4486d0c
Safely autocorrect Style/RedundantStringEscape
...
Inspecting 1513 files
..........................................................................................................................................................................................................................................................................................................................C...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C......................................................................................................................................................................................................................................................................................................................................................................................................................................................................C...........................................................................................................
Offenses:
app/models/spree/calculator.rb:31:48: C: [Corrected] Style/RedundantStringEscape: Redundant escape of / inside string literal.
self.class.name.titleize.gsub("Calculator\/", "")
^^
spec/controllers/spree/admin/shipping_methods_controller_spec.rb:40:78: C: [Corrected] Style/RedundantStringEscape: Redundant escape of ' inside string literal.
params[:shipping_method][:calculator_attributes][shipping_amount] = "\'20.0'"
^^
spec/system/admin/enterprise_fees_spec.rb:82:78: C: [Corrected] Style/RedundantStringEscape: Redundant escape of ' inside string literal.
fill_in("#{prefix}_calculator_attributes_preferred_flat_percent", with: "\'20.0'")
^^
spec/system/admin/enterprise_fees_spec.rb:140:42: C: [Corrected] Style/RedundantStringEscape: Redundant escape of ' inside string literal.
'preferred_flat_percent', with: "\'20.0'"
^^
1513 files inspected, 4 offenses detected, 4 offenses corrected
2023-11-17 09:03:32 +09:00
Filipe
ed8fd41bec
Merge pull request #11290 from cyrillefr/Orders_in_confirmation_state_cannot_be_completed_by_hub_or_shop
...
Fix Orders in confirmation state cannot be completed by hub or shop
2023-11-16 19:50:14 +00:00
Filipe
37436aab80
Merge pull request #11799 from murjax/enterprise-panel-navigation-6754
...
Fix navigation behavior on enterprise settings panel tabs
2023-11-16 17:56:49 +00:00
Maikel Linke
3e6db7fda4
Update spec of changed report link
...
The link now contains the local test server instead of some fake domain.
2023-11-15 10:29:05 +01:00
Mohamed ABDELLANI
b3b86c428c
test tax totals on the printed version of the invoice (v3)
2023-11-13 07:48:59 +01:00
Mohamed ABDELLANI
e37f9e54fd
reimplement "order with taxes" tests under "invoices feature enabled"
2023-11-13 07:39:55 +01:00
Mohamed ABDELLANI
c759a0f646
move tests under shared_examples "order with tax" to context "when invoice feature is not enabled"
2023-11-13 07:39:55 +01:00
Mohamed ABDELLANI
13bfbc21e0
remove unecessary instructions from "Check display on each invoice: legacy and alternative"
2023-11-13 07:39:55 +01:00
Mohamed ABDELLANI
4eedf74ecd
remove unecessary instructions from "contains right Payment Description at Checkout information"
...
1.When the user tries to print an invoice for an order (that doesn't have any previous invoices), an invoice will be generated automatically.
2.When the user tries to print an invoice for an order without specifing the id of the invoice, he'll get the latest invoice
2023-11-13 07:39:55 +01:00
Mohamed ABDELLANI
5be8ec0c5a
set completed_at on the order used for testing
2023-11-13 07:39:55 +01:00
Mohamed ABDELLANI
1724e1d626
fix invoice feature flag enabling
2023-11-13 07:39:55 +01:00
Maikel Linke
6ce3572b24
Stabilise spec with sleep
...
I didn't look into what's going wrong here. A sleep is not ideal but
better than a retry.
That page needs a rewrite anyway and therefore I don't want to invest
more work now.
2023-11-13 14:21:10 +11:00
Ryan Murphy
5c4b06730b
Fix navigation behavior on enterprise panel tabs
2023-11-10 12:26:16 -05:00
Maikel Linke
efc338aeeb
Don't update order when not enough stock
...
There's a user-facing change here. When you tried to update the quantity
of a line item beyond available stock, two things used to happen:
1. A warning was displayed.
2. The item's quantity was updated to the highest possible.
Unfortunately, the logic to update the line item was also reloading the
page and the warning message disappeared before it could be
acknowledged. The easiest fix was to skip the update request. And in my
opinion, it's even better to let the user decide if they still want to
update or cancel the update.
Eventually, we want to replace all this custom Javascript logic with
StimulusJS anyway. So let's not put too much effort into this. It was
important though to resolve the flaky spec which made many builds fail.
2023-11-09 10:56:41 +11:00
Maikel Linke
d5dca97438
Spec tiny bug which caused a flaky spec
...
It still needs solving.
2023-11-09 10:56:41 +11:00
David Cook
d0abbc5d2c
Ensure error summary always shows when error
...
Best viewed with whitespace ignored.
2023-11-03 14:32:58 +11:00
David Cook
f05d27b58b
Show error message summary at top of form
2023-11-03 14:32:58 +11:00
David Cook
de915e8bd7
Capture variant errors when updating
2023-11-03 14:32:55 +11:00
Maikel
25a3149f48
Merge pull request #11702 from dacook/buu-editing-part5b-11059
...
[BUU] Mark changed fields, when error
2023-11-01 13:01:08 +11:00
cyrillefr
a764cc0f89
Specs for the new action complete after capture
...
- In admin dashboard, clicking on capture leads to a completed order
- Modifications of actual specs to take into account new action
2023-10-29 22:05:50 +01:00
cyrillefr
d6daf25b98
Spec checking order in confirmation state transition to payment
2023-10-29 21:58:03 +01:00
David Cook
08ac46fd91
Refactor spec: Only create necessary records
...
This was creating a lot of records for every single test. Now it's much more efficient and spec conditions are clearer.
2023-10-24 16:44:34 +11:00
Neal Chambers
dc607b654d
Fix Style/HashSyntax
2023-10-24 08:49:34 +09:00
Konrad
2ba5ab7dc1
Merge pull request #11577 from jibees/10956-use-cable_ready-instead-of-morph
...
Admin, Orders list: when capturing an order, fix an issue that makes the tooltip invisible (+ errors in the console)
2023-10-20 11:56:53 +02:00
Gaetan Craig-Riou
7ce3fea7d5
Refactor tooltip on the backoffice orders page
2023-10-17 13:35:01 +11:00
Jean-Baptiste Bellet
3525320590
We should use cable_ready.inner_html instead of morph
...
To be sure that every stimulus controllers attached to the DOM that is replaced is will connected.
What I saw is that when using `morph`, the stimulus controller (specially `tooltip_controller`) were not attached to the DOM (and not disconnected as well) that triggered some errors in the console.
Adds test case for payment capture thanks to @filipefurtad0
2023-10-17 13:33:15 +11:00
David Cook
655c16cca0
New bulk products screen shares path with old
...
The feature toggle will determine which bulk products screen shows. An additional products_old path is also temporarily added for easy reference.
Later, when the old screen is full removed, we'll probably rename the _v3 classes to tidy up.
2023-10-13 10:39:45 +11:00
Maikel
604cc10c3f
Merge pull request #11654 from openfoodfoundation/dependabot/bundler/rubocop-1.57.0
...
chore(deps-dev): bump rubocop from 1.56.4 to 1.57.0
2023-10-13 08:29:29 +11:00
Maikel Linke
45dd5cc40a
Style/SingleLineDoEndBlock: Prefer multiline do...end block
2023-10-12 10:10:42 +11:00
Mohamed ABDELLANI
1c2aa1c370
fix linter issue
2023-10-11 11:00:37 +01:00
Mohamed ABDELLANI
7cb200e21e
fix linting errors
2023-10-11 09:27:16 +01:00
Mohamed ABDELLANI
fc519da83b
update the invoice system tests to run with invoice feature (enabled/disabled)
2023-10-11 09:27:16 +01:00
David Cook
1c0ebfe61e
Add comment
2023-10-08 21:47:17 +02:00
Mohamed ABDELLANI
95e7900585
test print invoice button under ACTIONS
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
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
filipefurtad0
14caf3b25c
Moves helper into support folder
...
Wraps SubscripionHelper module around definitions
2023-10-03 09:49:26 +01:00
filipefurtad0
bc73d09438
Declares enable_subscriptions separately
2023-10-03 09:49:26 +01:00
filipefurtad0
96432ebec2
Splits files into new folder
...
Creates helper file for existing methods
2023-10-03 09:49:26 +01:00
filipefurtad0
8bc2feda23
Asserts for subscription instructions and tab
2023-10-03 09:49:26 +01:00
filipefurtad0
b554308f10
Sets correct context
2023-10-03 09:49:26 +01:00
Maikel
b122c93055
Merge pull request #11586 from macanudo527/fix_stylehash_11
...
Fix Style/HashSyntax 12/13
2023-10-02 16:25:21 +11:00
Konrad
06ebeeac0f
Merge pull request #11543 from rioug/11364-Voucher-fix-tax-report
...
[Vouchers] Fix Sales Tax Totals By Order report
2023-10-01 02:09:33 +02:00
Neal Chambers
57d2f04330
Fix Style/HashSyntax
2023-09-29 08:51:48 +09:00
Jean-Baptiste Bellet
82ccdcca70
Customers report has only one report: Customers
...
No more `addresses` report
+ Fix pre-existing rubocop issues
+ Create method to simplify and remove CyclomaticComplexity error
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
5edc8d8ce1
Delete Mailing List report
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
c6c9cdca65
Add last completed order date
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
d2fbaa7cfd
Add total amount spent at the shop for the customer
2023-09-22 16:44:33 +01:00