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
bouaik
0c849f08fd
fix tests
2023-08-03 13:04:16 +01:00
bouaik
2c08602664
fix display invoice tab
2023-08-03 11:25:31 +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
Maikel Linke
f96636072e
Use original DFC Connector.export implementation
...
We wanted to use our own context before but now I found a better way for
the connector to cache the context and therfore we can use the original
implementation again.
2023-08-03 16:45:31 +10:00
Maikel Linke
1daed8c29c
Always load our DFC Connector patches
...
We want to use the preloaded context when exporting documents as well.
2023-08-03 16:45:30 +10:00
Maikel Linke
ff359664a9
Use cached DFC context
2023-08-03 16:45:30 +10: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
Maikel Linke
6056c59301
Skip online domain validation of dev user email
...
We improved the email address validation to check the domain for
existing DNS entries. But our default user has the example.com domain
which is not resolved by my internet service provider.
I couldn't find a better way to deactivate this one check than
overriding the method in the validator. The code does not affect other
parts of the app unless you run multiple rake tasks in the same command
line with the database setup.
2023-08-03 10:22:00 +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
David Cook
293e135a45
Move variables to one variables file
...
Note that color-tbl-border is not needed in the new admin_v3 styles.
2023-08-03 09:49:29 +10:00
David Cook
0aa4c144b9
Rename disabled button variable
...
TIL that underscores and dashes are treated the same in SCSS variables.
2023-08-03 09:49:29 +10:00
David Cook
1a02e108a5
Use red colour from the palette
...
It's very similar.
2023-08-03 09:49:29 +10:00
David Cook
9610281ed3
Rename variables
2023-08-03 09:49:29 +10:00
David Cook
b46e6c462d
Rename table border variable
...
There are other vars named brd, but I think border is clearer and doesn't need to be abreviated here.
2023-08-03 09:49:29 +10:00
David Cook
c4a335548a
Rename warning color variable
...
To match the others in the variables file.
Also `warning-orange` was unused.
2023-08-03 09:49:29 +10:00
David Cook
01a9095121
Move some variables to the palette
2023-08-03 09:49:29 +10:00
David Cook
2f801d346d
Prettify some more css files
2023-08-03 09:49:29 +10:00
David Cook
14e07e38d3
Remove depdenency on darkswarm/mixins
2023-08-03 09:49:29 +10:00
David Cook
bf9cd09462
Remove dependence on darkswarm variables
...
There were all sorts of dependencies hiding in there, and it was overwriting some of the admin variables. Better to keep things separate and simple.
I discovered that there was one legitimate reason for importing them though: for styling the trix editor. I can't think of a good way to safely import them without affecting the other variables, so I just hardcoded the colours for now.
2023-08-03 09:47:44 +10:00
David Cook
9207724779
Copy legacy variables
...
I'd like to go through and remove these, but it will have to happen another day.
2023-08-03 09:47:44 +10:00
David Cook
828df3ed82
Consistently use red in forms
...
Errors and required fields now use the colour from the palette. The error messages in the old design are a bit darker now, but I think it's clearer. And it makes the new design look way better.
Also snuck in a tiny padding tweak.
2023-08-03 09:47:44 +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