Commit Graph
567 Commits
Author SHA1 Message Date
Arwid ThornströmandGitHub 3a90bb553c 7224 build system in photowall repo and admin to handle generating product descriptions in different languages with gemeni ai and specialized prompt (#482)
* add product description tracking table

* added description tracking table

* create product_description_updated table

* updated with indexes

* fixed table with indexes

* fix

* correct migration number
2025-05-27 13:30:50 +02:00
Fredrik RingqvistandGitHub b8dc28e8d5 nshift_events table (#481) 2025-05-23 14:55:51 +02:00
Rikard BartholfandGitHub 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
Fredrik RingqvistandGitHub fe837db359 Hide 3609 products (#479) 2025-05-14 16:33:17 +02:00
Arwid ThornströmandGitHub b7441d557d added update file (#478)
* added update file

* moved
2025-05-14 09:16:25 +02:00
Rikard BartholfandGitHub cf2d2e7320 Add inquiries.data (#475)
* Add inquiries.data

* Bump revision

* Fix confdlicts

* Bump revision
2025-05-08 15:11:59 +02:00
Arwid ThornströmandGitHub bc94940403 added poi columns to rooms table (#477) 2025-05-08 11:15:34 +02:00
Arwid ThornströmandGitHub 786159432b Update living room french name (#474) 2025-04-23 09:46:03 +02:00
Fredrik RingqvistandGitHub be7583787a Adjust or remove deprecated discount filters (#473) 2025-04-17 11:26:23 +02:00
Fredrik RingqvistandGitHub cf7a90a7d4 Delete a product redirect (#472) 2025-04-17 10:37:08 +02:00
Rikard BartholfandGitHub 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
Arwid ThornströmandGitHub 41694b7c32 added temporary category updated table (#468)
* added temporary category updated table

* added more

* added keyword columns

* correct migration number

* updated from feedback
2025-04-03 11:22:42 +02:00
Arwid ThornströmandGitHub 32034180f0 added new funnel for collections (#469)
* added new funnel for collections

* changed to interger

* renamed to correct migration number
2025-03-19 13:47:35 +01:00
Fredrik RingqvistandGitHub 5b2ead7688 Change AU VAT to 10% (#467) 2025-03-13 14:47:59 +01:00
Rikard BartholfandGitHub 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 BartholfandGitHub 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ömandGitHub 3230d31134 Added ref4 (#463)
* Added ref4

* moved file to correct migration number
2025-02-21 10:22:34 +01:00
Rikard BartholfandGitHub 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 BartholfandGitHub 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ömandGitHub 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 BartholfandGitHub 44e974b718 Update v_analytics_contract_customer_discounts (#459)
* Initial commit

* Rename view

* Bump migration version
2025-02-05 17:06:11 +01:00
Rikard BartholfandGitHub 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 RingqvistandGitHub 554d0d12c0 Move and tag products to new designer PW (#456) 2025-01-30 12:51:17 +01:00
Arwid ThornströmandGitHub 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 BartholfandGitHub e048dcf5a7 Fix null values for discounts (#455) 2025-01-28 10:40:30 +01:00
Rikard BartholfandGitHub 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 BartholfandGitHub 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 RingqvistandGitHub f5a0bd9a30 Revert to previous version of v_funnel_orders (#451) 2025-01-10 12:58:45 +01:00
Arwid ThornströmandGitHub 0e1b653517 added custom ncs color (#450)
* added custom ncs color

* moved file
2025-01-07 14:34:01 +01:00
Arwid ThornströmandGitHub 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ömandGitHub a2f81fa2e8 update liters on samplecan (#449) 2024-12-17 13:32:45 +01:00
Fredrik RingqvistandGitHub 7005713bf8 Change Swiss VAT to 8.1% (#448) 2024-12-12 11:36:41 +01:00
Arwid ThornströmandGitHub b591ca5603 update paint info (#447)
* update paint info

* renamed mig file
2024-12-10 11:04:44 +01:00
Arwid ThornströmandGitHub 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 RingqvistandGitHub ebfbf13b2a Change status on wallpaper rows for Peter (#446) 2024-12-09 12:06:20 +01:00
Arwid ThornströmandGitHub a8feff0721 rename (#444) 2024-12-06 09:11:20 +01:00
Rikard BartholfandGitHub 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 BartholfandGitHub 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 BartholfandGitHub 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 BartholfandGitHub 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 BartholfandGitHub fd3f391987 Remove invalid redirects (#438)
* Remove invalid redirects

* Fix revision before merge
2024-11-07 15:23:31 +01:00
MaxandGitHub f7879b9e01 Add prices_other_products.wallpaper_glue_price (#435) 2024-11-06 15:40:09 +01:00
MaxandGitHub 7c3d55a1a6 Add glue stockproduct (#437) 2024-11-06 15:10:32 +01:00
Rikard BartholfandGitHub 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 BartholfandGitHub 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ömandGitHub 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ömandGitHub af92e3a713 added column to paing card samples (#430) 2024-10-22 10:48:08 +02:00
Fredrik RingqvistandGitHub b5527a9b7b Set missing payment method on 3 orders (#428) 2024-10-17 14:51:09 +02:00