Hello,
I created custom event. In one view are columns: cost_for_transport and cost_for_material. We have some order and this order wouldnt be possible to close without prefilled this two costs.
This is my custom event

and this is the event action:

CF$_C_NAKLADY_NA_DOPRAVU is cost_for_transport
CF$_C_NAKLADY_NA_MATERIAL is cost_for_material
and this is Oracle SQL statement:
DECLARE
v_category NUMBER;
BEGIN
SELECT case_category_id
INTO v_category
FROM cc_case_tab
WHERE case_id = :case_id;
IF v_category = 100 THEN
raise_application_error(-20001,'You cant close order_no without prefilling costs for material and costs for transport.' );
END IF;
END;
but when I tried to close some order_no with or wothout prefilled costs, it doesnt work and I dont know why.
Thanks for your advices