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
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
76b7a9ea14
Merge pull request #11307 from openfoodfoundation/dependabot/npm_and_yarn/floating-ui/dom-1.5.1
...
chore(deps): bump @floating-ui/dom from 1.4.5 to 1.5.1
2023-08-03 10:04:31 +10:00
Maikel
9c6e0418cb
Merge pull request #11317 from openfoodfoundation/dependabot/bundler/knapsack_pro-5.3.5
...
chore(deps-dev): bump knapsack_pro from 5.3.4 to 5.3.5
2023-08-03 08:18:52 +10:00
Filipe
f816d4b2d6
Merge pull request #11235 from jibees/11223-notices-tab-on-shopfront-persisting-after-selecting-an-order-cycle
...
Shopfront: On non-shop tab, when changing OC, switch to shop tab and hides non-shop tab content
2023-08-02 16:02:23 +01:00
Konrad
27e3a65440
Merge pull request #11234 from jibees/10867-vouchers-vouchers-page-is-shown-for-profile-enterprises
...
Show vouchers panel only if enterprise sells products (own or any)
2023-08-02 13:11:29 +02:00
Konrad
44d25dbb6a
Merge pull request #11299 from cillian/order-name-sorting
...
Sort orders by last name, then first name i.e. the same way bulk order management works
2023-08-02 11:30:25 +02:00
Konrad
12f6457ab2
Merge pull request #11302 from bouaik/margin-guest-checkout
...
fix margin in guest checkout
2023-08-02 10:57:12 +02:00
Maikel
b73dfed4e9
Merge pull request #11308 from openfoodfoundation/dependabot/bundler/rubocop-1.55.1
...
chore(deps-dev): bump rubocop from 1.55.0 to 1.55.1
2023-08-02 16:29:36 +10:00
Maikel
7886e25f83
Merge pull request #11303 from macanudo527/fix_rubocop_script
...
Add file limit to Rubocop Autocorrect Script
2023-08-02 14:36:20 +10:00
dependabot[bot]
bff74e9472
chore(deps-dev): bump knapsack_pro from 5.3.4 to 5.3.5
...
Bumps [knapsack_pro](https://github.com/KnapsackPro/knapsack_pro-ruby ) from 5.3.4 to 5.3.5.
- [Changelog](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.3.4...v5.3.5 )
---
updated-dependencies:
- dependency-name: knapsack_pro
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-02 03:17:45 +00:00
David Cook
ff76e3afa1
Merge pull request #11263 from mkllnk/dfc-connector-context
...
Dfc connector context
2023-08-02 13:16:28 +10:00
David Cook
44d1066e5c
Merge pull request #11310 from Matt-Yorkley/image-magick
...
Rescue ImageMagick errors
2023-08-02 10:26:46 +10:00
Neal Chambers
0d2e2fa42c
Add skip for cops that couldn't be autocorrected
2023-08-02 09:11:00 +09:00
Konrad
bc01207fec
Merge pull request #11281 from jibees/11205-white-label-logo-image-not-displaying-correctly-on-mobile
...
White label: Update mobile variant size for white label logo to fit the same ratio
2023-08-02 00:10:14 +02:00
bouaik
5681c45a9e
use classes like logged in checkout
2023-08-01 22:08:56 +01:00
Maikel Linke
bebdaace4b
Prefer plain text in spec expectations
2023-08-01 23:06:26 +02:00
cyrillefr
d4c864a118
Add testing for modal warning that name is already in use
2023-08-01 23:06:26 +02:00
cyrillefr
057754305d
Useless 'end' at end of coffeescript block
2023-08-01 23:06:26 +02:00
cyrillefr
05d610e598
Spec for (re)enabling 'Create Profile' button if not returning promise
2023-08-01 23:06:26 +02:00
cyrillefr
ae1e6032f6
Enable 'Create Profile' button via callback in case of not returning promise
2023-08-01 23:06:26 +02:00
Matt-Yorkley
885bc46d88
Update tax_category in product v3 table
2023-08-01 11:49:04 +01:00
David Cook
f7a137049f
Merge pull request #11296 from dacook/hide-git-errors
...
Prevent git errors from showing in command output
2023-08-01 12:16:53 +10:00
Matt-Yorkley
91fc4b51b4
Rescue ImageMagick errors
2023-07-31 17:21:49 +01:00
Mohamed ABDELLANI
7d38a7b381
remove order number next to Tax Invoice
2023-07-31 17:01:36 +01:00
Mohamed ABDELLANI
760b17042b
fix existing tests
2023-07-31 16:31:24 +01:00
Mohamed ABDELLANI
0ce8fae7c9
replace invoice_number method with delegate
2023-07-31 16:31:24 +01:00
Mohamed ABDELLANI
8abb9d2ecf
add invoice number to alternative invoices
2023-07-31 16:31:24 +01:00
Mohamed ABDELLANI
e66cd5aaa3
add order number & invoice number to invoices
2023-07-31 16:31:24 +01:00
dependabot[bot]
8dcaba695e
chore(deps-dev): bump rubocop from 1.55.0 to 1.55.1
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.55.0 to 1.55.1.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.55.0...v1.55.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-31 09:50:50 +00:00
dependabot[bot]
c885b42df1
chore(deps): bump @floating-ui/dom from 1.4.5 to 1.5.1
...
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom ) from 1.4.5 to 1.5.1.
- [Release notes](https://github.com/floating-ui/floating-ui/releases )
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.5.1/packages/dom )
---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-31 09:44:08 +00:00
Maikel
c8ad6d7d1c
Merge pull request #11300 from macanudo527/fix_rubocop_layout_3
...
Fix rubocop layout 4
v4.4.5
2023-07-31 11:26:53 +10:00
Maikel
aa92aac5a9
Style FrozenStringLiteralComment
...
Co-authored-by: jibees <jb.bellet@gmail.com >
2023-07-31 11:19:10 +10:00
Matt-Yorkley
64b29d40a8
Migrate data for tax_category_id from products to variants
2023-07-31 09:23:40 +10:00
Matt-Yorkley
e2094665c5
Update enterprise fee report tax_category fetching
2023-07-31 09:23:20 +10:00
Matt-Yorkley
07774c4572
Update tax category specs
2023-07-31 09:23:20 +10:00
Matt-Yorkley
d1209dd49b
Update order_with_taxes factory
2023-07-31 09:23:20 +10:00
Matt-Yorkley
b593e356b0
Update product factories
2023-07-31 09:23:20 +10:00
Matt-Yorkley
a84f9ebd2e
Allow passing tax_category to new variant when creating a new product
2023-07-31 09:23:20 +10:00
Matt-Yorkley
0df121bcc8
Move tax_category validations test
2023-07-31 09:23:20 +10:00
Matt-Yorkley
b2a7a931f3
Update tax_category tests
2023-07-31 09:23:20 +10:00