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
Arwid Thornström and GitHub
3230d31134
Added ref4 ( #463 )
...
* Added ref4
* moved file to correct migration number
2025-02-21 10:22:34 +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
Arwid Thornström and GitHub
a12e60368a
create sales table ( #458 )
...
* create sales table
* moved
* moved file
* fixed from feedback
* fixed
* must be unique
* move file
2025-02-06 10:40:45 +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
Fredrik Ringqvist and GitHub
554d0d12c0
Move and tag products to new designer PW ( #456 )
2025-01-30 12:51:17 +01:00
Arwid Thornström and GitHub
a20ea008e8
update path and username on pwb user ( #454 )
...
* update path and username on pwb user
* moved file
2025-01-28 12:53:59 +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
Fredrik Ringqvist and GitHub
f5a0bd9a30
Revert to previous version of v_funnel_orders ( #451 )
2025-01-10 12:58:45 +01:00
Arwid Thornström and GitHub
0e1b653517
added custom ncs color ( #450 )
...
* added custom ncs color
* moved file
2025-01-07 14:34:01 +01:00
Arwid Thornström and GitHub
f91ba8bd94
add colors to products ( #442 )
...
* add colors to products
* added new import
* add visual_order
* renamed files
* renamed file
* moved
* correct migration number
2025-01-07 12:22:58 +01:00
Arwid Thornström and GitHub
a2f81fa2e8
update liters on samplecan ( #449 )
2024-12-17 13:32:45 +01:00
Fredrik Ringqvist and GitHub
7005713bf8
Change Swiss VAT to 8.1% ( #448 )
2024-12-12 11:36:41 +01:00
Arwid Thornström and GitHub
b591ca5603
update paint info ( #447 )
...
* update paint info
* renamed mig file
2024-12-10 11:04:44 +01:00
Arwid Thornström and GitHub
6a17449d52
add visual order to product_paint table ( #445 )
...
* add visual order to product_paint table
* rename
2024-12-10 10:42:37 +01:00
Fredrik Ringqvist and GitHub
ebfbf13b2a
Change status on wallpaper rows for Peter ( #446 )
2024-12-09 12:06:20 +01:00
Arwid Thornström and GitHub
a8feff0721
rename ( #444 )
2024-12-06 09:11:20 +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
7907777bfe
Avalara responses ( #425 )
...
Co-authored-by: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com >
Co-authored-by: Fredrik Ringqvist <fredrik.ringqvist@photowall.se >
2024-11-18 14:34:08 +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
Max and GitHub
f7879b9e01
Add prices_other_products.wallpaper_glue_price ( #435 )
2024-11-06 15:40:09 +01:00
Max and GitHub
7c3d55a1a6
Add glue stockproduct ( #437 )
2024-11-06 15:10:32 +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
Arwid Thornström and GitHub
9efe6052a2
add coverage to paint_primer_sizes ( #431 )
...
* add coverage to paint_primer_sizes
* not null
2024-10-25 15:17:59 +02:00
Arwid Thornström and GitHub
af92e3a713
added column to paing card samples ( #430 )
2024-10-22 10:48:08 +02:00
Fredrik Ringqvist and GitHub
b5527a9b7b
Set missing payment method on 3 orders ( #428 )
2024-10-17 14:51:09 +02: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
Fredrik Ringqvist and GitHub
04b3304268
Set missing payment_types ( #424 )
2024-10-14 19:29:09 +02:00
Rikard Bartholf and GitHub
d1f378c6e9
Add discount_codes.applicable_on_sales ( #420 )
2024-10-11 10:01:00 +02:00
Fredrik Ringqvist and GitHub
2953f817b2
Adjust v_funnel_rows.width and height due to decimal values ( #421 )
2024-10-10 15:39:30 +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
Anders Gustafsson and GitHub
2254872839
6111 - Add wall paint kit price to db ( #418 )
2024-09-10 10:21:08 +02:00
Anders Gustafsson and GitHub
9c2167dcfe
6101 - add paint_prices table ( #416 )
2024-09-09 15:30:35 +02:00
Fredrik Ringqvist and GitHub
909aa8f714
Set missing payment type on order ( #417 )
2024-09-06 10:14:33 +02:00
Fredrik Ringqvist and GitHub
aa8c8e6157
Change Finland VAT to 25.5% ( #414 )
2024-08-30 15:50:13 +02:00
Anders Gustafsson and GitHub
9831868ba1
5920 - Add almost correct colors with hex and article_number ( #415 )
2024-08-29 14:49:58 +02:00