Matt-Yorkley
3d83ca01f7
Drop spree_products_taxons join table
2023-08-08 11:36:31 +01:00
Matt-Yorkley
3655f3019d
Update products and inventory report
2023-08-08 11:36:31 +01:00
Matt-Yorkley
38d9f4f1da
Update product v3 table
2023-08-08 11:36:31 +01:00
Matt-Yorkley
e4a49f5d02
Update product duplication
2023-08-08 11:36:31 +01:00
Matt-Yorkley
820f9530b2
Update product serializer
2023-08-08 11:36:31 +01:00
Matt-Yorkley
8d01e1f024
Update taxon specs
2023-08-08 11:36:31 +01:00
Matt-Yorkley
33d40ed750
Update association
2023-08-08 11:36:31 +01:00
Matt-Yorkley
cffd7073e2
Delete unused method
2023-08-08 11:36:31 +01:00
Matt-Yorkley
3898af2c37
Update factories and tests
2023-08-08 11:36:31 +01:00
Matt-Yorkley
a93809b75f
Remove associated abilities
2023-08-08 11:36:31 +01:00
Matt-Yorkley
a69ab2ef71
Remove multiple taxons on products functionality
2023-08-08 11:36:31 +01:00
Gaetan Craig-Riou
fe6075319e
Merge pull request #11344 from openfoodfoundation/dependabot/bundler/mime-types-3.5.0
...
chore(deps): bump mime-types from 3.4.1 to 3.5.0
2023-08-08 16:43:47 +10:00
Gaetan Craig-Riou
bb375ccee5
Merge pull request #11343 from openfoodfoundation/dependabot/npm_and_yarn/stimulus-3.2.2
...
chore(deps): bump stimulus from 3.2.1 to 3.2.2
2023-08-08 16:41:45 +10:00
dependabot[bot]
df76710ae8
chore(deps): bump mime-types from 3.4.1 to 3.5.0
...
Bumps [mime-types](https://github.com/mime-types/ruby-mime-types ) from 3.4.1 to 3.5.0.
- [Changelog](https://github.com/mime-types/ruby-mime-types/blob/main/History.md )
- [Commits](https://github.com/mime-types/ruby-mime-types/compare/v3.4.1...v3.5.0 )
---
updated-dependencies:
- dependency-name: mime-types
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 09:56:54 +00:00
dependabot[bot]
1af30bdff4
chore(deps): bump stimulus from 3.2.1 to 3.2.2
...
Bumps [stimulus](https://github.com/stimulusjs/stimulus ) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/stimulusjs/stimulus/releases )
- [Changelog](https://github.com/hotwired/stimulus/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stimulusjs/stimulus/compare/v3.2.1...v3.2.2 )
---
updated-dependencies:
- dependency-name: stimulus
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-07 09:52:05 +00:00
Gaetan Craig-Riou
b731e8319b
Merge pull request #11339 from openfoodfoundation/dependabot/npm_and_yarn/js-big-decimal-2.0.4
...
chore(deps): bump js-big-decimal from 2.0.1 to 2.0.4
2023-08-07 11:46:10 +10:00
Gaetan Craig-Riou
430aa685ce
Merge pull request #11321 from mkllnk/dev-user-valid
...
Skip online domain validation of dev user email
2023-08-07 11:27:31 +10:00
Maikel
ccc5975517
Merge pull request #11320 from dacook/css-cleanup
...
SCSS cleanup
2023-08-07 10:23:49 +10:00
Maikel
4b0bffa095
Merge pull request #11256 from rioug/10997-add-new-relic-gem
...
Add new relic gem
2023-08-07 10:17:59 +10:00
Gaetan Craig-Riou
0103942dcb
Disable new relic agent by default
...
It can be enable as needed by setting NEW_RELIC_AGENT_ENABLED env
variable to true and setting a license key
2023-08-07 09:37:36 +10:00
Gaetan Craig-Riou
de52ff4abf
Move New Relic out of production, staging group
2023-08-07 09:37:36 +10:00
Gaetan Craig-Riou
5793cb14ee
Add generated configuration
2023-08-07 09:37:36 +10:00
Gaetan Craig-Riou
c3d26b1900
Add the New Relic gem
2023-08-07 09:37:36 +10:00
Rachel Arnould
1b1279aa56
Merge pull request #11192 from abdellani/bulk-invoice-printing
...
fix Bulk invoice printing/sending
2023-08-04 12:02:43 +02:00
dependabot[bot]
760d237288
chore(deps): bump js-big-decimal from 2.0.1 to 2.0.4
...
Bumps [js-big-decimal](https://github.com/royNiladri/js-big-decimal ) from 2.0.1 to 2.0.4.
- [Release notes](https://github.com/royNiladri/js-big-decimal/releases )
- [Commits](https://github.com/royNiladri/js-big-decimal/compare/v2.0.1...v2.0.4 )
---
updated-dependencies:
- dependency-name: js-big-decimal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-04 09:24:25 +00:00
Maikel Linke
ad37c401e5
Update translations
v4.4.6
2023-08-04 13:48:29 +10:00
David Cook
42230c07b2
Merge pull request #11312 from macanudo527/fix_rubocop_5
...
Fix autocorrect Rails Cops
2023-08-04 11:13:52 +10:00
Maikel
2b18effe6d
Merge pull request #11322 from macanudo527/fix_remaining_line_length
...
Fix remaining Layout/LineLength Rubocop Errors
2023-08-04 09:34:00 +10:00
Maikel
64398066ce
Merge pull request #11324 from openfoodfoundation/dependabot/npm_and_yarn/js-big-decimal-2.0.1
...
chore(deps): bump js-big-decimal from 1.4.1 to 2.0.1
2023-08-04 09:20:30 +10:00
Filipe
69dfd53658
Merge pull request #11254 from rioug/11130-add-product-filter-order-report
...
11130 add product filter order report
2023-08-03 16:08:44 +01:00
Filipe
5c67d522b8
Merge pull request #11209 from openfoodfoundation/dependabot/npm_and_yarn/stimulus_reflex-3.5.0-rc3
...
chore(deps): bump stimulus_reflex from 3.5.0-rc2 to 3.5.0-rc3 + cable_ready from 5.0.0.rc2 to 5.0.1
2023-08-03 16:01:40 +01:00
Mohamed ABDELLANI
9a3aef525a
add distributor's phone number to list of attributes to serialize
2023-08-03 15:06:04 +01:00
Mohamed ABDELLANI
24b1918df5
implment blank? on Address presenter
...
To keep the same method calls that are used on the legacy invoice template. I needed to redefine blank? on the address presenter.
2023-08-03 14:53:40 +01:00
Mohamed ABDELLANI
4449484402
replace double with instance_double
2023-08-03 14:53:40 +01:00
Mohamed ABDELLANI
2fb112aecd
import BulkInvoiceJob#perform spec
...
1. remove the mocks
2. test the content of the generated pdf
3. remove the test of private methods
2023-08-03 14:53:40 +01:00
Mohamed ABDELLANI
c89c8a69bc
optimize OrderMailer#invoice_email spec
...
Check if the email was sent without raising an error
Check if the email has an attached pdf
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
9b80676d7d
update the logic to send invoice
...
When the invoices feature is enabled, for every order, we check if
1. a new invoice must be generated
2. or, the latest invoice needs to be updated
the invoice rendrer input depends on the invoices flag.
if the feature is enabled, the input is supposed to be an invoice presenter
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
7daa4d3a63
simplify filtering condition to select only invoiceable orders on OrdersReflex
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
5ae2545918
Update app/jobs/bulk_invoice_job.rb
...
Co-authored-by: David Cook <david@redcliffs.net >
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
687760046b
update the bulk invoice job to print invoiceable orders
...
the invoices feature is enabled:
1. we filter non-invoiceable order
2. for each invoiceable order, we check if we need to generate a new invoice or update the latest invoice
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
c921250d68
implement Spree::Order#invoiceable?
...
This will be used to filter the orders when running bulk print
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
4f6ab69add
implement OrderInvoiceGenerator service
2023-08-03 14:52:45 +01:00
Mohamed ABDELLANI
f24af3feb0
extract invoice printing logic into a seperated method
2023-08-03 14:52:45 +01:00
Filipe
46cb1add63
Merge pull request #11126 from abdellani/show-invoice-number-on-invoices
...
Show invoice number on invoices
2023-08-03 10:48:34 +01:00
Filipe
c0a4bccb3e
Merge pull request #11156 from Matt-Yorkley/product-tax-category
...
[Product Refactor] Tax category
2023-08-03 10:29:40 +01:00
dependabot[bot]
106938ddbf
chore(deps): bump js-big-decimal from 1.4.1 to 2.0.1
...
Bumps [js-big-decimal](https://github.com/royNiladri/js-big-decimal ) from 1.4.1 to 2.0.1.
- [Release notes](https://github.com/royNiladri/js-big-decimal/releases )
- [Commits](https://github.com/royNiladri/js-big-decimal/compare/v1.4.1...v2.0.1 )
---
updated-dependencies:
- dependency-name: js-big-decimal
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-03 09:19:52 +00:00
Neal Chambers
f5f9b80de7
Update .rubocop_todo.yml
2023-08-03 09:49:51 +09:00
Neal Chambers
a4f270bdec
Fix Layout/LineLength
2023-08-03 09:49:47 +09:00
David Cook
32cc776725
Merge pull request #11177 from cyrillefr/Registration_of_an_enterprise_name_already_taken_stops_registration_process
...
Registration of an enterprise name already taken stops registration process
2023-08-03 10:37:47 +10:00
Maikel Linke
c8511ecd0d
Remove superfluous line
...
The `<<` operation saves the association already.
2023-08-03 10:26:59 +10:00