=== A. TABLES === llx_teknipli_chutes (0 lignes) llx_teknipli_cnc_pli (48 lignes) llx_teknipli_cnc_programme (8 lignes) llx_teknipli_color (32 lignes) llx_teknipli_configurator (0 lignes) llx_teknipli_configurator_line (0 lignes) llx_teknipli_devis (218 lignes) llx_teknipli_devis_lines (0 lignes) llx_teknipli_email_log (141 lignes) llx_teknipli_margin (4 lignes) llx_teknipli_margins (5 lignes) llx_teknipli_material (12 lignes) llx_teknipli_materials (12 lignes) llx_teknipli_of (0 lignes) llx_teknipli_of_bandes (0 lignes) llx_teknipli_of_pieces (0 lignes) llx_teknipli_of_pliage (0 lignes) llx_teknipli_of_pliage_pieces (0 lignes) llx_teknipli_optimisation (2 lignes) llx_teknipli_outil (8 lignes) llx_teknipli_outil_ve (5 lignes) llx_teknipli_prix_achat (0 lignes) llx_teknipli_prix_vente_hist (0 lignes) llx_teknipli_production (2 lignes) llx_teknipli_production_lines (2 lignes) llx_teknipli_schemas (0 lignes) llx_teknipli_stock_mouvement (8 lignes) llx_teknipli_stock_mouvements (0 lignes) llx_teknipli_stock_toles (0 lignes) llx_teknipli_tracabilite (424 lignes) llx_teknipli_user_folders (2 lignes) llx_teknipli_user_presets (286 lignes) llx_stock_mouvement (157 lignes) llx_product_stock (37 lignes) llx_entrepot (1 lignes) === B. CHEMIN 1 : SQL DIRECT, cascade pmp > cost_price > dernier prix fournisseur === REF REEL PMP COST PFOURN SRC VALEUR Acier_75_100_1015_1220X4000 6 44,40 0,00 0,00 pmp 266,40 Acier_75_100_1018_1220X4000 9 44,40 0,00 0,00 pmp 399,60 Acier_75_100_7016_1220X3000 36 32,94 0,00 0,00 pmp 1 185,84 Acier_75_100_7016_1220X4000 19 44,40 0,00 0,00 pmp 843,60 Acier_75_100_7039_1220X4000 12 44,40 0,00 0,00 pmp 532,80 Acier_75_100_9005_1220X3000 21 33,30 0,00 0,00 pmp 699,30 Acier_75_100_9005_1220X4000 2 44,40 0,00 0,00 pmp 88,80 Acier_75_100_9006_1220X4000 9 44,40 0,00 0,00 pmp 399,60 Acier_75_100_9007_1220X4000 8 44,40 0,00 0,00 pmp 355,20 Acier_75_100_9016_1220X4000 17 44,40 0,00 0,00 pmp 754,80 ALU_15_10_1013_SAT_1500X3000 8 115,00 0,00 0,00 pmp 920,00 ALU_15_10_1015_SAT_1500X3000 6 115,00 0,00 0,00 pmp 690,00 ALU_15_10_2100_FT_1500X3000 18 127,76 0,00 0,00 pmp 2 299,68 ALU_15_10_2100_FT_1500X4000 10 172,38 0,00 0,00 pmp 1 723,80 ALU_15_10_7006_SAT_1500X3000 1 129,65 0,00 0,00 pmp 129,65 ALU_15_10_7016_FT_1500X3000 10 120,38 0,00 0,00 pmp 1 203,80 ALU_15_10_7016_FT_1500X4000 11 158,76 0,00 0,00 pmp 1 746,36 ALU_15_10_7016_SAT_1500X3000 11 112,00 0,00 0,00 pmp 1 232,00 ALU_15_10_7016_SAT_1500X4000 11 150,96 0,00 0,00 pmp 1 660,56 ALU_15_10_7030_SAT_1500X3000 1 120,60 0,00 0,00 pmp 120,60 ALU_15_10_7039_FT_1500X3000 2 115,88 0,00 0,00 pmp 231,76 ALU_15_10_7039_SAT_1500X3000 1 115,47 0,00 0,00 pmp 115,47 ALU_15_10_9005_BRI_1500X3000 2 112,50 0,00 0,00 pmp 225,00 ALU_15_10_9005_FT_1500X3000 4 127,39 0,00 0,00 pmp 509,56 ALU_15_10_9005_SAT_1500X4000 2 150,96 0,00 0,00 pmp 301,92 ALU_15_10_9010_SAT_1500X3000 14 113,76 0,00 0,00 pmp 1 592,64 ALU_15_10_9010_SAT_1500X4000 3 153,72 0,00 0,00 pmp 461,16 ALU_15_10_9016_SAT_1500X3000 17 113,76 0,00 0,00 pmp 1 933,92 ALU_15_10_9016_SAT_1500X4000 6 153,72 0,00 0,00 pmp 922,32 ALU_15_10_Brut_1500X4000 5 100,85 0,00 0,00 pmp 504,25 ALU_30_10_Brut_1500X3000 0.5 160,02 0,00 0,00 pmp 80,01 Bobine_0.7_Prefa_P10.08_Gris_Souris_50 256 8,53 0,00 0,00 pmp 2 184,00 Bobine_Zinc_0.8_NAT_650 63 23,00 23,00 0,00 pmp 1 449,00 Bobine_Zinc_0.8_quartz_500 150 17,50 17,50 0,00 pmp 2 625,00 Galva_15_10_1500x3000 7 52,86 0,00 0,00 pmp 370,02 Galva_20_10_1500x4000 6 92,27 0,00 0,00 pmp 553,62 ZINC_0.65_NAT_1000X2000 4 44,00 0,00 0,00 pmp 176,00 -- 37 produits en stock non nul. TOTAL (tous) = 31 488,04 | TOTAL (reel>0 seulement, perimetre valeurStock) = 31 488,04 === B2. CHEMIN 2 : moteur valeurStock() === valeurStock() = 31 488,04 ECART chemin1(reel>0) - moteur = 0,00 === C. MOUVEMENTS DU JOUR (llx_stock_mouvement, datem aujourd'hui) === DATE REF QTE PRIX MVT PMP ACT DELTA(pmp) MOTIF 2026-08-10 19:05:07 Bobine_Zinc_0.8_quartz_500 -203 17,50 17,50 -3 552,50 Inventaire / ajustement manuel (-203) 2026-08-10 19:06:39 Galva_15_10_1500x3000 5 52,86 52,86 264,30 Inventaire / ajustement manuel (+5) -- 2 mouvements aujourd'hui. Delta valorise au PMP actuel = -3 288,20 ; au prix du mouvement = -3 288,20 === C2. MOUVEMENTS DES 3 DERNIERS JOURS (contexte) === 2026-08-10 : 2 mvts, delta PMP -3 288,20 / prix mvt -3 288,20 === C3. PRODUITS MODIFIES AUJOURD'HUI (tms) === 2026-08-10 19:05:07 Bobine_Zinc_0.8_quartz_500 pmp=17,50 reel=150 2026-08-10 19:06:40 Galva_15_10_1500x3000 pmp=52,86 reel=7 === D. CONTROLE DE BOUT EN BOUT 2026 === Mouvements 2026 : 70 (du 2026-01-05 09:45:34 au 2026-08-10 19:06:39) Entrees valorisees prix mvt = 24 248,26 | au PMP actuel = 36 090,01 Sorties valorisees prix mvt = 3 730,10 | au PMP actuel = 22 461,91 Mouvements AVANT 2026 : 87 (du 2025-08-30 14:32:46 au 2025-12-28 16:10:56) Ouverture signee 20 175,97 + entrees(prix mvt) - sorties(prix mvt) = 40 694,13 Stock actuel (moteur) = 31 488,04 ; ecart = 9 206,09 Variante PMP : 33 804,06 ; ecart = 2 316,02 variationStock('2026-01-01') moteur : initial=20 175,97 final=31 488,04 variation=11 312,07