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
Gaetan Craig-Riou
dd0279c983
Update all locales with the latest Transifex translations
v4.4.13
2023-09-28 11:52:49 +02:00
Maikel
c1587b689a
Merge pull request #11589 from openfoodfoundation/dependabot/bundler/aws-sdk-s3-1.136.0
...
chore(deps): bump aws-sdk-s3 from 1.135.0 to 1.136.0
2023-09-28 09:20:36 +10:00
dependabot[bot]
4d7f21eec4
chore(deps): bump aws-sdk-s3 from 1.135.0 to 1.136.0
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.135.0 to 1.136.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases )
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-ruby/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-27 09:05:00 +00:00
Gaetan Craig-Riou
33f3c660a4
Fix rubocop warning
2023-09-26 11:21:05 +02:00
Gaetan Craig-Riou
b129b9f1d0
DRY up specs
2023-09-26 10:50:58 +02:00
Gaetan Craig-Riou
e9051f5c58
As per review comment, clarify specs
...
And some DRYing
2023-09-26 10:26:06 +02:00
David Cook
4e05047cc6
Merge pull request #11583 from macanudo527/fix_stylehash_10
...
Fix Style/HashSyntax 11/13
2023-09-26 10:38:54 +10:00
Gaetan Craig-Riou
02aaf6f692
Remove voucher validation on code format
...
The code doesn't rely on label match any more so this restriction
is not necessary anymore
2023-09-25 09:49:55 +02:00
Gaetan Craig-Riou
097b775fa0
Add metadata before saving adjustment
...
Rails may put it all in one transaction
Co-authored-by: Maikel <maikel@email.org.au >
2023-09-25 17:44:16 +10:00
Neal Chambers
48132b055f
Update .rubocop_todo.yml
2023-09-25 13:15:54 +09:00
Neal Chambers
70e218d2e9
Fix Style/HashSyntax
2023-09-25 13:15:38 +09:00
Maikel
51f125e301
Merge pull request #11582 from macanudo527/fix_stylehash_9
...
Fix Style/HashSyntax 10/13
2023-09-25 13:43:38 +10:00
Neal Chambers
232ffb1eb8
Update .rubocop_todo.yml
2023-09-24 22:41:48 +09:00
Neal Chambers
35e8f88943
Fix Style/HashSyntax
2023-09-24 22:41:27 +09:00
Rachel Arnould
aa489d4cd6
Merge pull request #11185 from jibees/11155-improve-customer-addresses-report
...
Admin, reports: improve customer addresses report
2023-09-22 18:06:47 +02:00
Jean-Baptiste Bellet
2803f1c6b2
Group all orders by customer_id, email and distributor_id
...
Therefore have one (and only) row per customer
Co-Authored-By: Maikel <maikel@email.org.au >
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
9ce89125a4
Fix linter error: line is too long
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
d6c10170da
Use plain text instead of computed date in specs
...
https://github.com/openfoodfoundation/openfoodnetwork/wiki/Code-Conventions#prefer-plain-text-over-method-calls-in-expected-values
2023-09-22 16:44:33 +01:00
jibees
5eab033a80
Improve indentation
...
Co-Authored-By: Maikel <maikel@email.org.au >
2023-09-22 16:44:33 +01:00
Maikel Linke
adc5bf6e93
Simplify date filter in customers report
2023-09-22 16:44:33 +01: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
Jean-Baptiste Bellet
d55098f94f
Add the number of orders for the customer
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
1378202732
Disable rubocop warning. Not sure how to handle it actually
2023-09-22 16:44:33 +01:00
Jean-Baptiste Bellet
cc26da6560
We'll need to get all the orders per line to count and sum them; prepare it
2023-09-22 16:44:33 +01: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
Gaetan Craig-Riou
19fc1fab8c
As per review, visit page directly to save time
...
We still visit the page as user would do once to make sure it is
working.
2023-09-22 11:35:56 +02:00
filipefurtad0
b913e5c851
Update all locales with the latest Transifex translations
v4.4.12
2023-09-22 10:29:52 +01:00
Gaetan Craig-Riou
03ce39d5c5
Add metadata to tax related voucher adjustment
...
In the scenario where you have tax excluded from price, when adding
a voucher to an order, we create 2 voucher adjusments. One of them
represent the tax part of the voucher, and has a label starting with
"Tax". To better differentiate them and allow a reliable way to
query it, we add a metadata entry.
2023-09-22 11:16:21 +02: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
Gaetan Craig-Riou
0a68300e40
Remove Voucher scenario
...
It is now covered by unit test
2023-09-22 10:22:47 +02:00
Gaetan Craig-Riou
25adaaa6ea
Simplify test set up
2023-09-22 10:17:50 +02:00
Gaetan Craig-Riou
f54846829d
Add test for #voucher_tax_adjustment
...
And mock calls to VoucherAdjustmentsService
2023-09-22 10:17:50 +02:00
Gaetan Craig-Riou
9e49da8fae
Add unit test for Reporting::Reports::SalesTax::SalesTaxTotalsByOrder
...
And a small refactoring.
Currently it only covers tax excluded from price
2023-09-22 10:17:50 +02:00
Gaetan Craig-Riou
3197480121
Prevent voucher from starting with "Tax"
...
Plus spec
2023-09-22 10:17:50 +02:00
Gaetan Craig-Riou
bec5ad55dd
Use VoucherAdjustmentsService to retrieve tax part of the voucher
2023-09-22 10:17:50 +02:00
Gaetan Craig-Riou
7c34145ed7
Add voucher_included_tax and voucher_excluded_tax
...
It retrieves the tax part of the voucher adjustment for tax included
in price and tax excluded from price respectively.
2023-09-22 10:17:40 +02:00
Gaetan Craig-Riou
b620e413f4
Merge pull request #11378 from mkllnk/dfc-ofn-product-group-id
...
[DFC API] Add custom OFN product id to DFC SuppliedProduct
2023-09-22 17:57:11 +10:00
Jean-Baptiste Bellet
b9cd8ee462
Factorize elements into beforeEach block
2023-09-22 09:34:36 +02:00
Jean-Baptiste Bellet
458a031558
Create a private function for event listener
2023-09-22 09:30:40 +02:00
Maikel Linke
847ddab4e6
Improve readability of assignment without blank lines
2023-09-22 17:18:49 +10:00
Maikel
886988e24a
Merge pull request #11578 from macanudo527/fix_stylehash_8
...
Fix Style/HashSyntax 9/13
2023-09-22 15:09:46 +10:00
Neal Chambers
4a3a246e7a
Update .rubocop_todo.yml
2023-09-22 09:08:50 +09:00
Neal Chambers
fe88a88206
Fix Style/HashSyntax
2023-09-22 09:08:50 +09:00