- Add LOT creation functionality in pricing admin - New API endpoint POST /api/admin/pricing/lots - Modal form for creating new LOT with auto-category detection - Creates entries in both lot and qt_lot_metadata tables - Implement auto-save for stock mappings - Auto-save on change for partnumber → LOT mappings - Visual feedback (orange during save, green on success, red on error) - Works in both main mappings table and import suggestions - Improve stock import suggestions UI - Remove "Причина" column from suggestions table - Increase LOT and Partnumber column widths to 33% each - Better visual balance in the table layout - Disable automatic warehouse pricelist creation on stock_log import - Import now completes at 100% after stock_log update - Manual pricelist creation available via UI when needed - Faster import process without auto-generation overhead Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
# PriceForge Configuration
|
|
# Copy this file to config.yaml and update values
|
|
|
|
server:
|
|
host: "127.0.0.1" # Local-only mode
|
|
port: 8084
|
|
mode: "release" # debug | release
|
|
read_timeout: "30s"
|
|
write_timeout: "30s"
|
|
|
|
database:
|
|
host: "localhost"
|
|
port: 3306
|
|
name: "RFQ_LOG"
|
|
user: "priceforge"
|
|
password: "CHANGE_ME"
|
|
max_open_conns: 25
|
|
max_idle_conns: 5
|
|
conn_max_lifetime: "5m"
|
|
|
|
pricing:
|
|
default_method: "weighted_median" # median | average | weighted_median
|
|
default_period_days: 90
|
|
freshness_green_days: 30
|
|
freshness_yellow_days: 60
|
|
freshness_red_days: 90
|
|
min_quotes_for_median: 3
|
|
popularity_decay_days: 180
|
|
|
|
export:
|
|
temp_dir: "/tmp/priceforge-exports"
|
|
max_file_age: "1h"
|
|
company_name: "Your Company Name"
|
|
|
|
alerts:
|
|
enabled: true
|
|
check_interval: "1h"
|
|
high_demand_threshold: 5 # КП за 30 дней
|
|
trending_threshold_percent: 50 # % роста для алерта
|
|
|
|
notifications:
|
|
email_enabled: false
|
|
smtp_host: "smtp.example.com"
|
|
smtp_port: 587
|
|
smtp_user: ""
|
|
smtp_password: ""
|
|
from_address: "priceforge@example.com"
|
|
|
|
logging:
|
|
level: "info" # debug | info | warn | error
|
|
format: "json" # json | text
|
|
output: "stdout" # stdout | file
|
|
file_path: "/var/log/priceforge/app.log"
|