BAMG#70327 -- Formulieren aanmaken voor DESKO/UTS/Scholte
svn path=/Customer/trunk/; revision=59839
This commit is contained in:
@@ -872,8 +872,12 @@ AS
|
||||
'Bestelling ter goedkeuring aangeboden ' || b.bes_bestelling_key text,
|
||||
b.bes_bestelling_key key,
|
||||
NULL xkey
|
||||
FROM bes_bestelling b, mld_adres a, fac_tracking t
|
||||
WHERE b.mld_adres_key_lev = a.mld_adres_key
|
||||
FROM bes_bestelling b, bes_bestelling_item bi, bes_srtdeel sd, bes_srtgroep sg, mld_adres a, fac_tracking t
|
||||
WHERE b.bes_bestelling_key = bi.bes_bestelling_key
|
||||
AND bi.bes_srtdeel_key = sd.bes_srtdeel_key
|
||||
AND sd.bes_srtgroep_key = sg.bes_srtgroep_key
|
||||
AND sg.ins_discipline_key IN (121, 221) -- Lyreco catalogi
|
||||
AND b.mld_adres_key_lev = a.mld_adres_key
|
||||
AND a.alg_locatie_key = 48 -- bunnik
|
||||
AND b.bes_bestelling_status = 3
|
||||
AND t.fac_tracking_refkey = b.bes_bestelling_key
|
||||
|
||||
Reference in New Issue
Block a user