jsharmony-factory
Version:
Enterprise framework for jsHarmony
16 lines (15 loc) • 1.91 kB
JSON
{
"agreement_code_state": "select code_val2 code_val, code_val2 code_txt from {schema}.code2_country_state where code_val1='USA' and (code_end_dt is null or (code_end_dt is not null and code_end_dt > current_date)) order by code_seq,code_val2",
"agreement_code_month": "select month_txt as code_val,month_txt as code_txt from {schema}.v_month order by month_val",
"agreement_code_year": "select year_val as code_val,year_val as code_txt from {schema}.v_year order by year_val",
"agreement_sign": [
"start transaction;",
"update cust set cust_agreement_tstmp=current_date where cust_id=@cust_id;",
"with xrslt as (insert into {schema}.job__tbl(job_source, job_action, job_action_target, job_params) values('CLIENT', 'REPORT', '{namespace}Reports/Agreement',@job_params) returning job_id)",
" insert into {schema}.job_doc(job_id, doc_scope, doc_scope_id, doc_ctgr, doc_desc) select job_id, 'C',@cust_id, 'agreement_doc_scope', 'Customer Portal Agreement' from xrslt;",
"commit transaction;"
],
"agreement_paymentresult": "select payment_cc_sts \"payment_cc_sts\",payment_cc_result \"payment_cc_result\",cust_staging.cust_id \"cust_id\",cust_staging.sys_user_id \"sys_user_id\",new_client_result \"new_client_result\",sys_user_lastlogin_tstmp \"sys_user_lastlogin_tstmp\" from cust_staging left outer join {schema}.cust_user on cust_staging.sys_user_id=cust_user.sys_user_id where cust_staging_id=@payment_id and payment_cc_fp_hash=@fp_hash;",
"agreement_code_cust_id": "select cust_id as code_val,cust_name as code_txt from cust where 1=1 %%%DATALOCKS%%% order by cust_name",
"agreement_report_note": "select note__tbl.cust_id \"cust_id\",note_type \"note_type\",note_euser,to_char(note_etstmp,'MM/DD/YYYY') as note_etstmp,note_body from {schema}.note__tbl inner join cust on cust.cust_id=note__tbl.cust_id where note__tbl.cust_id=@cust_id %%%DATALOCKS%%%"
}