The following lines contain the word 'select', 'insert', 'update' or 'delete':
| delete_method_details |
| |
| Deletes all details of the accounting method |
| |
+======================================================================*/
PROCEDURE delete_method_details
(p_accounting_method_type_code IN VARCHAR2
,p_accounting_method_code IN VARCHAR2)
IS
BEGIN
xla_utility_pkg.trace('> xla_acctg_methods_pkg.delete_method_details' , 10);
DELETE
FROM xla_acctg_method_rules
WHERE accounting_method_type_code = p_accounting_method_type_code
AND accounting_method_code = p_accounting_method_code;
xla_utility_pkg.trace('< xla_acctg_methods_pkg.delete_method_details' , 10);
(p_location => 'xla_acctg_methods_pkg.delete_method_details');
END delete_method_details;
l_last_update_date DATE;
l_last_update_login INTEGER;
l_last_updated_by INTEGER;
SELECT application_id, amb_context_code, product_rule_type_code, product_rule_code,
start_date_active, end_date_active
FROM xla_acctg_method_rules
WHERE accounting_method_type_code = p_old_accting_meth_type_code
AND accounting_method_code = p_old_accting_meth_code;
l_last_update_date := sysdate;
l_last_update_login := xla_environment_pkg.g_login_id;
l_last_updated_by := xla_environment_pkg.g_usr_id;
SELECT xla_acctg_method_rules_s.nextval
INTO l_acctg_method_rule_id
FROM DUAL;
INSERT INTO xla_acctg_method_rules
(acctg_method_rule_id
,accounting_method_type_code
,accounting_method_code
,application_id
,amb_context_code
,product_rule_type_code
,product_rule_code
,start_date_active
,end_date_active
,creation_date
,created_by
,last_update_date
,last_updated_by
,last_update_login)
VALUES
(l_acctg_method_rule_id
,p_new_accting_meth_type_code
,p_new_accting_meth_code
,l_meth_rule.application_id
,l_meth_rule.amb_context_code
,l_meth_rule.product_rule_type_code
,l_meth_rule.product_rule_code
,l_meth_rule.start_date_active
,l_meth_rule.end_date_active
,l_creation_date
,l_created_by
,l_last_update_date
,l_last_updated_by
,l_last_update_login);
SELECT name ledger_name
FROM xla_gl_ledgers_v
WHERE sla_accounting_method_type = p_accounting_method_type_code
AND sla_accounting_method_code = p_accounting_method_code;
IF p_event in ('DELETE','UPDATE','DISABLE') THEN
OPEN c_assignment_exist;