AAIT#78162 Datum beoordeling registreren
svn path=/Database/trunk/; revision=61645
This commit is contained in:
@@ -33,7 +33,7 @@ BEGIN
|
||||
* Dit is vervallen. Elke trigger bemoeit zich alleen met zichzelf, en er zijn
|
||||
* een tweetal functies bes.updatebestellingstatus en bes.updatebestelopdrstatus
|
||||
* die desgevraagd tellen wat de stand is en daarop zonodig de parent aanpassen
|
||||
* Daarvan wordt dan ook tracjking bijgehouden.
|
||||
* Daarvan wordt dan ook tracking bijgehouden.
|
||||
*/
|
||||
CREATE_TRIGGER(bes_t_bes_bestelling_B_IU)
|
||||
BEFORE INSERT OR UPDATE ON bes_bestelling
|
||||
@@ -52,6 +52,13 @@ BEGIN
|
||||
THEN
|
||||
fac.clrnotifications ('BESAP1', :new.bes_bestelling_key);
|
||||
END IF;
|
||||
|
||||
-- Beoordeling van de bestelling
|
||||
IF (:new.bes_bestelling_satisfaction IS NOT NULL
|
||||
AND (:old.bes_bestelling_satisfaction IS NULL OR :old.bes_bestelling_satisfaction <> :new.bes_bestelling_satisfaction)
|
||||
THEN
|
||||
fac.trackaction('BESLIK', :old.bes_bestelling_key, NULL , SYSDATE, REPLACE(lcl.l('lcl_faclike_changed'), '{0}', :new.bes_bestelling_satisfaction));
|
||||
END IF;
|
||||
END;
|
||||
/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user