Rikard Bartholf and GitHub
9f54d2fc0d
Create type discount_usage ( #476 )
...
* Create type discount_usage
* Add discount_codes.discount_usage_type
* Fix SQL
* Make query idempotent
* Bump revision
2025-05-15 11:09:39 +02:00
Rikard Bartholf and GitHub
cf2d2e7320
Add inquiries.data ( #475 )
...
* Add inquiries.data
* Bump revision
* Fix confdlicts
* Bump revision
2025-05-08 15:11:59 +02:00
Rikard Bartholf and GitHub
2a3b6a0351
Add v_analytics_products.repeating_pattern ( #471 )
...
* Add v_analytics_products.repeating_pattern
* Bump migration version before release
2025-04-14 11:57:45 +02:00
Rikard Bartholf and GitHub
e2c208d2e3
7105 adjust discount fields in v funnel order rows for refund orders ( #465 )
...
* WIP
* WIP - Initial scaffolding
* Apply logic for v_funnel_order_rows2.discount
* WIP
* Calculate repay factor for _cc and _code
* Cleanup
* Remove refunded_order_row_id used for testing
* discount_sale is a negative figure
* Remove unused file
* Bump revision prior release
2025-03-10 09:15:36 +01:00
Rikard Bartholf and GitHub
9dee3d1f3c
Delete redundant discount data from order_rows ( #466 )
...
* Delete redundant discount data from order_rows
* Bump revision prior release
2025-03-10 09:04:10 +01:00
Rikard Bartholf and GitHub
b158885fb9
Replace interior_primary with interior_primary_uri ( #464 )
...
* Replace interior_primary with interior_primary_uri
* Simplify query
* Bump revision prior release
2025-02-20 14:47:50 +01:00
Rikard Bartholf and GitHub
f63292252d
Display first interior image for each entry in v_analytics_products ( #460 )
...
* Display first interior image for each entry in v_analytics_products
* Only fetch wallpaper interiors
* Grant SELECT for funnel
* Bump migration version prior release
2025-02-14 15:19:36 +01:00
57f28c3582
7053 ensure discount fields are as we want them for refund rows ( #457 )
...
* Initial commit
* WIP
* Cleanup
* Cleanup
* move
* moved back
* Refactor query
* Do not handle specific discounts for refund rows
* Make SELECT CASE handling more consise
* Bump migration version before release
---------
Co-authored-by: Arwid Thornström <arwidt@gmail.com >
2025-02-10 09:47:19 +01:00
Rikard Bartholf and GitHub
44e974b718
Update v_analytics_contract_customer_discounts ( #459 )
...
* Initial commit
* Rename view
* Bump migration version
2025-02-05 17:06:11 +01:00
Rikard Bartholf and GitHub
ceee950346
Add v_analytics_orders_rows_not_delivered_with_paint ( #453 )
...
* Add v_analytics_orders_rows_not_delivered_with_paint
* WIP
* Include paint in v_analytics_orders_rows_not_delivered_with_paint
* Handle paint in view
* Remove redundant file and grant for datastudio
* Add "stock" as product_group for stock products
* Bump migration version
2025-01-31 13:35:48 +01:00
Rikard Bartholf and GitHub
e048dcf5a7
Fix null values for discounts ( #455 )
2025-01-28 10:40:30 +01:00
Rikard Bartholf and GitHub
32a5f9ae18
Add v_funnel_order_rows.{paint_name, paint_liters, paint_ncs} ( #452 )
...
* Add v_funnel_order_rows.{paint_name, paint_liters, paint_ncs}
* Grant SELECT on v_funnel_order_rows for funnel
* Use paint_id for product_id if exists
* Bump migration version
2025-01-17 15:18:46 +01:00
Rikard Bartholf and GitHub
0def5d6244
Add discount data to v_funnel_order_rows ( #429 )
...
* Initial scaffolding
* Add discount data to v_funnel_order_rows
* Display discounts for each row where applicable
* Get discount/sales info from subquery instead
* Use generated view to simplify diff
* Try another approach
* Use inline queries to get discount data
* Re-add lost printId to view
* Re-add v_funnel_order_rows.discount
* Remove dead code
* Grant SELECT for funnel on v_funnel_order_rows
* Disregard discount calculations for refunded order rows
* Bump migration version
2025-01-17 10:18:50 +01:00
Rikard Bartholf and GitHub
a98da9854f
Include samples in view ( #443 )
...
* Include samples in view
* Bump migration version
* Remove accidentally checked in file
2024-11-29 14:33:13 +01:00
Rikard Bartholf and GitHub
85806bbde4
Create index adyen_sessions.order_id (Foreign Key) ( #441 )
...
* Create index adyen_sessions.order_id (Foreign Key)
* Bump migration version
2024-11-15 11:36:08 +01:00
Rikard Bartholf and GitHub
866f0ce950
Get detailed payment method in v_funnel_orders ( #440 )
...
* Get detailed payment method in v_funnel_orders
* Cleanup
* Bump revision prior release
2024-11-14 15:05:38 +01:00
Rikard Bartholf and GitHub
6f45eaf533
6392-change-currencies-for-pl-ro-nz ( #433 )
...
* Prepare currencies for PL, RO and NZ
* Populate product-currencies and update relevant markets
* Scrap already deployed parts from migration
* Bump revcision
2024-11-13 09:09:28 +01:00
Rikard Bartholf and GitHub
fd3f391987
Remove invalid redirects ( #438 )
...
* Remove invalid redirects
* Fix revision before merge
2024-11-07 15:23:31 +01:00
Rikard Bartholf and GitHub
0dfea578bb
Add currencies ( #434 )
...
* Prepare currencies for PL, RO and NZ
* Populate product-currencies and update relevant markets
* Add currencies
* Fix migration version before merge
2024-11-04 15:32:11 +01:00
Rikard Bartholf and GitHub
483744f82d
Add v_funnel_order_rows.print_id ( #432 )
...
* Add v_funnel_order_rows.print_id
* Fix versioning before release
2024-10-28 10:30:30 +01:00
Rikard Bartholf and GitHub
c62fab2e44
Fetch Adyen payment type if it exists ( #427 )
...
* Fetch Adyen payment type if it exists
* Fix version number
2024-10-17 13:32:40 +02:00
Rikard Bartholf and GitHub
ddcbd0afb0
Archive old migrations ( #426 )
...
* Archive old migrations
* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00
Rikard Bartholf
763262c108
Drop view if exists...
2024-10-16 12:35:39 +02:00
Rikard Bartholf and GitHub
07e8ebd552
Create v_funnel_collections ( #423 )
...
* Add query
* Substitute sub-query with JOIN
* Fix typo in view
* Fix typo in view
* 🎨 Cleanup
* Remove redundant GRANT
* Fix revision for 504
2024-10-15 14:52:50 +02:00
Rikard Bartholf and GitHub
376246992a
Add payment_method to v_analytics_orders2 ( #422 )
...
* Add payment_method to v_analytics_orders2
* Fetch payment_type from Adyen if applicable, else from orders
* Set correct version
2024-10-15 12:00:58 +02:00
Rikard Bartholf and GitHub
d1f378c6e9
Add discount_codes.applicable_on_sales ( #420 )
2024-10-11 10:01:00 +02:00
Rikard Bartholf and GitHub
e4544ed56d
Change path for designer 332 (Emelie Lindqvist) ( #419 )
...
* Change path for designer 332 (Emelie Lindqvist)
* Substitute id for designerid in update query
* Bump version
2024-10-02 15:40:16 +02:00
Rikard Bartholf and GitHub
969aaa8810
Display width and height in export to Funnel ( #405 )
...
* Display width and height in export to Funnel
* Display width and height in export to Funnel
2024-06-13 16:28:07 +02:00
Rikard Bartholf and GitHub
c9b46050a8
Drop table product-types and remove references ( #391 )
...
* Drop table product-types and remove references
* Fix version number
* Cleanup
* Cleanup
2024-06-04 12:30:39 +02:00
Rikard Bartholf and GitHub
79673acdf7
Change order_rows.external_status to TEXT ( #387 )
...
* Change order_rows.external_status to TEXT
* Fix version numbering
2024-03-20 15:13:33 +01:00
Rikard Bartholf and GitHub
e82d3ab9b2
Delete unused product groups from database ( #378 )
...
* Delete unused product groups from database
* Delete from product-groups and related tables
* Fix migration naming
2024-03-13 10:39:15 +01:00
Rikard Bartholf and GitHub
272376477b
Make designers.commission numeric ( #371 )
...
* Make designers.commission numeric
* Fix migration numbering
2024-02-27 11:11:10 +01:00
Rikard Bartholf and GitHub
022f3cb2d8
Add attention to v_funnel_orders ( #370 )
...
* Add attention to v_funnel_orders
* Cleanup indentation
* Fix sequence no
2024-01-19 12:16:30 +01:00
Rikard Bartholf and GitHub
c4f57bab62
Remove invalid redirects ( #369 )
...
* Remove invalid redirects
* Fix migration numbering
2024-01-16 10:28:46 +01:00
Rikard Bartholf and GitHub
eaf0fef362
Add type wallpaper_kit_peel_and_stick ( #362 )
...
* Add type wallpaper_kit_peel_and_stick
* Fix numbering
2023-11-17 11:55:48 +01:00
Rikard Bartholf and GitHub
e3e04575e8
4383 pricelist to funnel ( #357 )
...
* Initial commit
* Cleanup
* Provide pricelist for Funnel
* Add updated to generated pricelist
* Fix numbering of migration
2023-11-01 14:57:50 +01:00
Rikard Bartholf and GitHub
7605eeda76
Add updated columns ( #359 )
...
* Add updated columns
* Fix numbering of migration
2023-11-01 14:45:43 +01:00
Rikard Bartholf and GitHub
ca64917469
Add lower case index for data->code ( #356 )
...
* Add lower case index for data->code
* Only add index if not exists
* Fix numbering of migration
2023-10-17 11:50:32 +02:00
Rikard Bartholf and GitHub
f10ab67c6c
Create view for funnel ( #354 )
...
* Create view for funnel
* Cleanup
* Cleanup
* Remove SEK and RUB from list
* Fix migration numbering
2023-10-16 09:29:08 +02:00
Rikard Bartholf and GitHub
664c89b774
Delete invalid and old discounts and make the code unique ( #338 )
...
* WIP
* WIP - will organize code later
* Remove redundant view
* 🎨 Fix typo
* Cleanup
* Fix invalid column references
* Ensure start date is before end date on INSERT or UPDATE
* Fix migration number
2023-10-13 13:32:14 +02:00
Rikard Bartholf and GitHub
1e2d28cce2
Set standard freight to €0 for India ( #352 )
...
* Set standard freight to €0 for India
* Fix numbering of migration
* Set price for Express in India
* Set price for Express in India
2023-10-10 15:35:42 +02:00
Rikard Bartholf and GitHub
b353100bf0
Add stockproduct for self adhesive ( #343 )
...
* Add stockproduct for self adhesive
* Set correct sequence no for migration
* Rename stockproduct
* Fix numbering
2023-09-15 10:56:35 +02:00
Rikard Bartholf
34fed703a4
Fix revision
2023-07-07 15:58:41 +02:00
Rikard Bartholf and GitHub
b25305aa00
Add procedure stockproduct_create ( #340 )
...
* Add procedure stockproduct_create
* Replace tabs with spaces
* Set visible end browsable default = 0
2023-07-06 14:38:41 +02:00
Rikard Bartholf and GitHub
04007bc6a0
Remove invalid imported products ( #339 )
2023-07-05 15:13:03 +02:00
Rikard Bartholf and GitHub
49de67fe4b
Add in_transit to exernal status type ( #335 )
2023-07-01 17:24:49 +02:00
cc0ce54fcd
3121 [DB] customer service urls ( #307 )
...
* Add redirects for CS links
* Cleanup
* Add redirects
* Rename text tag placeholders for new routes
* Remove obsolete redirects
* Replace special char for PL
* Delete more redundant redirect entries
* Fix deletion of old entries
* Update sequence number for migration
---------
Co-authored-by: Fredrik Ringqvist <fredrik.ringqvist@photowall.se >
2023-05-12 10:53:56 +02:00
Rikard Bartholf and GitHub
4eef6eb06e
Add discount to v_funnel_order_rows ( #310 )
...
* Add discount to v_funnel_order_rows
* Revert negative discount and bump version
* Display negative or positive discount based on sub_type
2023-03-08 10:47:19 +01:00
Rikard Bartholf and GitHub
29bcd2f0ae
Add fields to v_funnel_order_rows ( #308 )
...
* Add fields to v_funnel_order_rows
* Bump migration version before release
2023-01-25 14:13:56 +01:00
Rikard Bartholf and GitHub
8cbc50091e
External products out of stock ( #302 )
2022-11-22 09:25:41 +01:00
Rikard Bartholf and GitHub
29fa12b87a
2369 [Database] rework stock product handling ( #271 )
...
* Create stockproducts table
* Add wallpaperkit to stockproducts
* Drop obsolete stock tables
* WIP
* Drop stock-related stuff
* Add migration to last in queue
* Add updated trigger on stockproducts
* Prepare for release
* Merge master
* Prepare for release
2022-09-22 07:58:19 +02:00
Rikard Bartholf and GitHub
03f0d39289
Update AU VAT and express freight price ( #286 )
2022-07-08 11:21:52 +02:00
Rikard Bartholf and GitHub
40cd340532
Copy articels to new markets ( #273 )
...
* Copy articels to new markets
* Cleanup
* Translate more URLs
* Cleanup
2022-05-10 16:21:57 +02:00
Rikard Bartholf and GitHub
751f9ddf96
Fix crashing invoice reports ( #253 )
...
* Fix crashing invoice reports
* Fix typo
2022-02-10 13:46:17 +01:00
Rikard Bartholf and GitHub
68e622ed31
Fix v_analytics_order_rows ( #252 )
2022-02-08 15:13:22 +01:00
Rikard Bartholf and GitHub
81230fe8db
Add timezone to docker-compose example
2021-10-19 15:25:35 +02:00
Rikard Bartholf
c01143588a
Add info about postgresql in README
2021-10-18 16:57:10 +02:00
Rikard Bartholf and GitHub
9d41ec3b53
Add prefix for UNACCENT in getsafexmlpath ( #233 )
...
* Add prefix for UNACCENT in getsafexmlpath
The restore of a backup won't work with UNACCENT without schema prefix.
* Bugfix
* Bugfix
* Remove accidentally left over file
2021-10-15 13:48:20 +02:00
Rikard Bartholf and GitHub
27932c1987
Add index for addresses in samples ( #222 )
2021-09-08 13:09:46 +02:00
Rikard Bartholf and GitHub
e1d6c48723
Provide index for addresses in orders ( #221 )
2021-09-08 11:36:37 +02:00
Rikard Bartholf
739029cebc
PW-844 Prevent empty category names in database
2017-05-16 12:41:22 +02:00
Rikard Bartholf
0c17f73aa2
PW-761 Add missing indexes for eSales Views
2017-04-27 13:02:11 +02:00
Rikard Bartholf
e80396eb09
PW-773 Convert v_categorytree into a materialized view
2017-04-25 09:20:27 +02:00
Rikard Bartholf
49439b54a1
P5-994 Add designer attributes to exported data
2017-02-01 14:39:03 +01:00
Rikard Bartholf
506508992f
PW-636 Update VAT for France
2017-02-01 09:00:58 +01:00
Rikard Bartholf
69ff764fdf
PW-602 Add col: listprice to product-printproducts
2017-01-05 14:00:03 +01:00
Rikard Bartholf
c17f872962
PW-598 Add listprice column
2017-01-02 16:15:52 +01:00
Rikard Bartholf
6177546444
P5-883 Add listprice to eSales export
2016-12-09 13:21:26 +01:00
Rikard Bartholf
0400556a2f
P5-358 Add listprice for each market
2016-11-16 10:53:34 +01:00
Rikard Bartholf
11fd36e96a
Merge P5-824_associate_color_categories
2016-09-27 11:00:12 +02:00
Rikard Bartholf
4e6da69cfa
Add required migrations
2016-08-24 12:19:16 +02:00
Rikard Bartholf
131da5e69e
P5-801 Add specialized views for eSales export
2016-08-11 07:55:31 +02:00
Rikard Bartholf
9a9b3cdb3f
P5-717 Remove positions of markers from database
2016-06-30 09:47:37 +02:00
Rikard Bartholf
414398de07
Merge P5-303 into master
2016-05-26 10:57:05 +02:00
Rikard Bartholf
dfa26b9dd0
P5-536 Hide designer name info on prod. page
2016-05-25 16:18:50 +02:00
Rikard Bartholf
b3542a10a1
P5-399 Add fields for design wallpaper texts
2016-05-04 13:51:05 +02:00
Rikard Bartholf
3170a9bd0a
P5-397_sql_add_designer_wallpaper_group
2016-05-03 15:44:52 +02:00
Rikard Bartholf
ea4cc3ee71
Add designers.no_follow
2016-04-14 13:49:33 +02:00
Rikard Bartholf
efb5b34de6
Change behaviour of 000.003
2016-04-04 10:51:47 +02:00
Rikard Bartholf
454de56f28
Add sort_desc to designers
2016-04-04 10:34:06 +02:00
Rikard Bartholf
2c5c2d2034
Automatically create control table if it doesn't exists
2016-02-17 15:11:11 +01:00
Rikard Bartholf
375c521e17
Adapt documentation for new configuration handling
2016-02-17 12:35:35 +01:00
Rikard Bartholf
a0e99a7e2a
Rework configuration handling
2016-02-17 12:22:22 +01:00
Rikard Bartholf
3c3baf9712
Add "name" to category_texts
2016-02-17 10:37:54 +01:00
Rikard Bartholf
9a92168e61
Add DB_NAME to sample configuration
2016-02-15 11:27:52 +01:00
Rikard Bartholf
8524234f92
Add DB_NAME to sample configuration
2016-02-15 11:26:52 +01:00
Rikard Bartholf
4f27eaa684
Hide configuration from GIT
2016-02-15 11:20:59 +01:00
Rikard Bartholf
2b8117034a
Remove original configuration file
2016-02-15 11:19:45 +01:00
Rikard Bartholf
df0b9f5b46
Add example configuration file
2016-02-15 11:18:39 +01:00
Rikard Bartholf
8fdca24a34
Merge branch 'master' into rb_dev
2016-02-15 10:32:27 +01:00
Rikard Bartholf
9dfb91a356
Add revised version of collections
2016-02-15 10:31:50 +01:00
Rikard Bartholf
713d9f2a97
Merge branch 'master' into rb_dev
2016-02-15 10:27:27 +01:00
Rikard Bartholf
117caefdaa
Add collections and related tables
2016-02-15 10:21:50 +01:00
Rikard Bartholf
d4b6712db4
Add collections
2016-02-15 09:54:47 +01:00
Rikard Bartholf
b36401c1cd
Fix typo
2016-02-12 13:34:24 +01:00
Rikard Bartholf
b53b4f093c
Remove example migration file
2016-02-12 13:33:21 +01:00
Rikard Bartholf
ffb8a6bef2
Update README
2016-02-12 13:24:21 +01:00
Rikard Bartholf
260c9939c3
Update documentation
2016-02-12 12:54:28 +01:00
Rikard Bartholf
ab695bcf83
Update README
2016-02-12 12:44:52 +01:00
Rikard Bartholf
cba3adbf49
Update README and add support for configuration file
2016-02-12 12:42:33 +01:00