feat: add pricelist CSV export and improve description display

- Add CSV export functionality for pricelists with download button
- Export includes all pricelist items with proper UTF-8 encoding
- Support both warehouse and estimate pricelist sources
- Remove description column from admin pricing tables
- Show description as tooltip on row hover instead
- Improve table layout by removing redundant column

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 12:25:38 +03:00
parent ed339a172b
commit 9bc01831c9
4 changed files with 212 additions and 14 deletions

View File

@@ -565,6 +565,7 @@ func setupRouter(cfg *config.Config, configPath string, connMgr *db.ConnectionMa
pricelists.GET("/:id", pricelistHandler.Get)
pricelists.GET("/:id/items", pricelistHandler.GetItems)
pricelists.GET("/:id/lots", pricelistHandler.GetLotNames)
pricelists.GET("/:id/export-csv", pricelistHandler.ExportCSV)
pricelists.POST("", pricelistHandler.Create)
pricelists.POST("/create-with-progress", pricelistHandler.CreateWithProgress)
pricelists.PATCH("/:id/active", pricelistHandler.SetActive)