Filipe
678c60c9b6
Merge pull request #10175 from abdellani/tax_totals_with_rates_by_producer_report
...
Tax Totals with Rates by Producer Report
2023-01-30 13:56:48 +00:00
Mohamed ABDELLANI
19df15d75b
move item group instruction from db to rails
2023-01-21 18:40:27 +01:00
Mohamed ABDELLANI
92c4bd9eb7
introduces format_percentage in ReportRowBuilder#format_cell
2023-01-21 18:40:27 +01:00
Mohamed ABDELLANI
c87c8ed0df
subreport filtering partial
2023-01-21 18:39:33 +01:00
Maikel Linke
a177f4c066
Add feature to render reports in the background
...
This is supposed to lower the memory footprint of all Puma workers. The
reports code will occupy needed memory in one Sidekiq worker instead of
in several Puma processes.
The current code doesn't limit the execution time yet. We either need a
way to terminate the report rendering after a while or send an email
with a link to access a rendered report.
2023-01-18 23:12:26 +00:00
Maikel Linke
19c4596b9e
Untie report from request object
...
We want simple report arguments to store it as background job.
2023-01-18 23:12:26 +00:00
Maikel Linke
65843fbd68
Render on-screen report as HTML in renderer
...
So it can be treated like any other format.
2023-01-18 23:12:26 +00:00
Mohamed ABDELLANI
61037aa5ad
sales tax totals by producers report
2023-01-17 08:37:47 +01:00
Jean-Baptiste Bellet
b2db63178f
Redirect /checkout/whatever to /checkout when split_checkout is activate
...
+ constraint the legacy checkout routes when `split_checkout` feature is disabled
+ add specs
2023-01-11 10:10:30 +00:00
Maikel Linke
22a086ebc1
Remove report dependency on report controller
...
The ReportsController was referencing the report and the report was
referencing the controller. It's unlikely that this circular dependency
created a memory leak but it's generally a bad design. And we need to
make the reporting independent of the controller to isolate it in a
background job.
2023-01-05 15:06:41 +11:00
Mohamed ABDELLANI
e3914ed306
add final_weight_volume column to the hidden by default column of OCCT report
2022-12-26 08:29:36 +01:00
Filipe
47e100607c
Merge pull request #10041 from abdellani/add_on-hand_and_on-demand_to_product_report
...
Add 'on hand' and 'on demand' to Products report
2022-12-21 17:31:21 +00:00
Mohamed ABDELLANI
155b8ed725
subtract fields_to_hide when the fields_to_show are calculated
2022-12-21 07:32:18 +01:00
Mohamed ABDELLANI
86c25e1d48
add on_demand/on_hand columns to all products_and_inventory/all_products report
2022-12-06 08:42:42 +01:00
Mohamed ABDELLANI
fac8926396
map nil to "none" in format cell
2022-12-05 08:57:07 +01:00
Mohamed ABDELLANI
f7cd168f6d
define producer_charges_sales_tax && product_tax_category as new hidden by default columns
2022-12-05 08:44:33 +01:00
Konrad
07c29df801
Merge pull request #10039 from abdellani/fix_missing_products_in_bulk_coop_packing_sheets_report
...
fix Missing products in Bulk co-op Packing Sheets report
2022-12-02 18:19:47 +01:00
Mohamed ABDELLANI
845133d3f6
group line_items by [customer,variant] in bulk/coop/packing_sheets
2022-11-24 11:06:09 +01:00
Mohamed ABDELLANI
dafbefe8e3
add sku to OCST report as hidden by default column
2022-11-23 09:50:34 +01:00
filipefurtad0
487e2e4316
Deletes unused specs.rake file
2022-11-16 09:56:51 +00:00
Filipe
a7353eb69f
Merge pull request #9575 from apricot12/9487-Dimensions-Packing-Reports
...
Added HEIGHT, WEIGHT, WIDTH, DEPTH columns to packing reports by customer.
2022-11-10 09:55:26 +00:00
Jean-Baptiste Bellet
3e9647590d
Packing report don't need untranslated headers for xlxs, csv format
2022-11-07 15:53:39 +01:00
Jean-Baptiste Bellet
f4572cb8cb
nil is the value of :report_format when GETting a report page
...
This method is used in `custom_headers()` method that handle headers customization. Then, it's `@report.available_headers`
2022-11-07 11:44:01 +01:00
Konrad
1c185c2ca4
Merge pull request #9823 from abdellani/fix-product-duplication
...
Fix product duplication
2022-10-28 12:51:01 +02:00
Rachel Arnould
2652bc086a
Merge pull request #9755 from cillian/order-cycle-payment-methods
...
Let people choose which payment methods are available to customers on order cycles
2022-10-26 20:10:34 +02:00
Mohamed ABDELLANI
788093c7cf
implement variant duplication
2022-10-25 11:23:35 +01:00
Mohamed ABDELLANI
f44228eef7
extract variant duplication logic into a separated function
2022-10-25 11:23:35 +01:00
Konrad
d12e99e363
Merge pull request #9808 from abdellani/sort_items_by_product_name_in_ocstd_report
...
add sort by product name to order_cycle_supplier_totals_by_distributo…
2022-10-25 10:34:22 +02:00
Maikel Linke
7081e712e8
Flag style issue on todo list for later
...
The code needs some bigger refactoring to avoid this style issue.
2022-10-25 10:09:26 +02:00
Nihal Mohammed
5c0f3a2d4b
Add weight, height, width, depth fields to pack by customer reports
...
+ update specs by adding dimensions fields into reports specs
2022-10-25 10:09:26 +02:00
Maikel
55ef4dfe0d
Merge pull request #8809 from Matt-Yorkley/dead-code-variants-check
...
Remove dead code: Product#variants?
2022-10-25 10:49:01 +11:00
Konrad
4a7ac45dba
Merge pull request #9830 from jibees/9821-remove-report_inverse_columns_logic-feature-toggle
...
Remove `report_inverse_columns_logic` feature toggle
2022-10-25 00:23:31 +02:00
Jean-Baptiste Bellet
02787e668f
Remove report_inverse_columns_logic feature toggle
...
Co-Authored-By: Maikel <maikel@email.org.au >
2022-10-24 11:12:22 +02:00
Mohamed ABDELLANI
4740c2b0db
add sort by product name to order_cycle_supplier_totals_by_distributor report rules
2022-10-24 09:01:42 +01:00
Cillian O'Ruanaidh
4e6d64c0a1
Let people choose which payment methods are available to customers on order cycles
2022-10-21 17:21:31 +01:00
Matt-Yorkley
c0ee72319f
Remove dead code: Product#variants?
...
This only makes sense in the context of Products which only have "master" variants, and we removed that option a while back.
Remove #variants? check from ProductStock concern
2022-10-19 16:30:12 +11:00
Maikel Linke
c22f6cb805
Add more fields to revenue report as used by Aus
...
We currently maintain our own CSV generation script which could be
replaced if we got all this information here.
2022-10-18 12:51:13 +11:00
Maikel
058a45f4e5
Merge pull request #9442 from jibees/8904-display-fees-name-instead-of-type-on-invoices
...
Display fees name instead of type on invoices
2022-10-10 13:15:01 +11:00
Maikel Linke
bc26a3aa07
Add used feature toggles to appear in the admin UI
...
The admin UI shows only features which were added to the database. We
always had to look up a feature's name add it manually before we could
enable it. Now it will appear in the UI after some code asked if it was
enabled.
This only adds a database query once when the feature doesn't exist yet.
The `feature.exist?` call only performs an in-memory lookup in the
memoizer.
2022-10-08 16:23:17 +02:00
Jean-Baptiste Bellet
7b57f2358c
Create a new key instead of modifying the old one
...
it could lead to issues when key is not updated and we should avoid that kind of issue.
2022-10-08 10:00:57 +02:00
Jean-Baptiste Bellet
0cc8349c71
Use fee name for the adjustment label instead of type
...
+ update specs as well
2022-10-08 10:00:57 +02:00
Maikel Linke
c8cfbbb0b2
Use standard ApplicationRecord in task class
...
It's best practice to use the ApplicationRecord. But when Rake is
loaded, our application is not loaded yet and the ApplicationRecord
class wasn't available yet. Requiring within the task solves the problem
because Rake loads the Rails environment before executing this task.
I also removed the unused highline loading.
2022-09-29 11:56:10 +10:00
Jean-Baptiste Bellet
53978de632
Create a new report that show revenues (incl. or excl. taxes) by hub
...
+ Create spec
2022-09-08 09:04:44 +02:00
Philipp Winkler
bf53a02270
Add api key toggle view checkbox
2022-08-07 09:48:49 +02:00
Maikel Linke
0ebc803e22
Simplify reports SQL query
2022-07-26 11:05:41 +10:00
Jean-Baptiste Bellet
09adc8f690
In Enterprise Fees Summary report, SUM column should be numeric
...
+ update specs as well
2022-07-25 15:08:39 +02:00
Jean-Baptiste Bellet
2a35c48498
Do not format price as currency, but as number
...
for all the `Packing Reports`, ie
Pack By Customer
Pack By Supplier
Pack By Product
2022-07-22 09:28:36 +02:00
Jean-Baptiste Bellet
ce0031934a
Do not format sum_total as currency, but as number
...
For the `Bulk Co-op Supplier Report` report
2022-07-22 09:27:52 +02:00
Filipe
45214ed923
Merge pull request #9325 from jibees/8899-shopfront-display-fee-name-in-the-tooltip-of-a-price-product-
...
In the shopfront, display fee name in the tooltip of a price product breakdown
2022-06-24 20:49:32 +01:00
Maikel
165456b8c8
Merge pull request #9229 from mkllnk/report-currency-formatting
...
Format money amounts in report spreadsheets as numbers
2022-06-23 12:18:02 +10:00