feat(pricing): kit/pachet pricing with price list lookup, replace procent_pret
- Oracle PL/SQL: kit pricing logic with Mode A (distributed discount) and
Mode B (separate discount line), dual policy support, PRETURI_CU_TVA flag
- Eliminate procent_pret from entire stack (Oracle, Python, JS, HTML)
- New settings: kit_pricing_mode, kit_discount_codmat, price_sync_enabled
- Settings UI: cards for Kit Pricing and Price Sync configuration
- Mappings UI: kit badges with lazy-loaded component prices from price list
- Price sync from orders: auto-update ROA prices when web prices differ
- Catalog price sync: new service to sync all GoMag product prices to ROA
- Kit component price validation: pre-check prices before import
- New endpoint GET /api/mappings/{sku}/prices for component price display
- New endpoints POST /api/price-sync/start, GET status, GET history
- DDL script 07_drop_procent_pret.sql (run after deploy confirmation)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -310,6 +310,9 @@ create or replace package body PACK_COMENZI is
|
||||
-- marius.mutu
|
||||
-- adauga_articol_comanda, modifica_articol_comanda + se poate completa ptva (21,11) in loc sa il ia din politica de preturi
|
||||
|
||||
-- 19.03.2026
|
||||
-- adauga_articol_comanda permite de 2 ori acelasi articol cu cote tva diferite (ex: discount 11% si discount 21%)
|
||||
|
||||
----------------------------------------------------------------------------------
|
||||
procedure adauga_masina(V_ID_MODEL_MASINA IN NUMBER,
|
||||
V_NRINMAT IN VARCHAR2,
|
||||
@@ -781,6 +784,7 @@ create or replace package body PACK_COMENZI is
|
||||
FROM COMENZI_ELEMENTE
|
||||
WHERE ID_COMANDA = V_ID_COMANDA
|
||||
AND ID_ARTICOL = V_ID_ARTICOL
|
||||
AND NVL(PTVA,0) = NVL(V_PTVA,0)
|
||||
AND STERS = 0;
|
||||
|
||||
IF V_NR_INREG > 0 THEN
|
||||
|
||||
Reference in New Issue
Block a user