Commit a5eba1eb authored by nkhan's avatar nkhan

Added by Nasruddin khan


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102678 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bc1be7e5
...@@ -1687,7 +1687,7 @@ ...@@ -1687,7 +1687,7 @@
<name>comm_table</name> <name>comm_table</name>
<dbname>customer.comm_table</dbname> <dbname>customer.comm_table</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;station&quot; ) TABLE(NAME=&quot;sales_pers&quot; ) TABLE(NAME=&quot;contact&quot; ) TABLE(NAME=&quot;country&quot; ) TABLE(NAME=&quot;territory&quot; ) TABLE(NAME=&quot;locality&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_a&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_b&quot; ) COLUMN(NAME=&quot;customer_a.cust_code&quot;) COLUMN(NAME=&quot;customer_a.contact_code&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_a.sh_name&quot;) COLUMN(NAME=&quot;customer_a.group_code&quot;) COLUMN(NAME=&quot;customer_a.cust_type&quot;) COLUMN(NAME=&quot;customer_a.cust_code__bil&quot;) COLUMN(NAME=&quot;customer_a.ignore_credit&quot;) COLUMN(NAME=&quot;customer_a.addr1&quot;) COLUMN(NAME=&quot;customer_a.addr2&quot;) COLUMN(NAME=&quot;customer_a.addr3&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;customer_a.ceo_pfx&quot;) COLUMN(NAME=&quot;customer_a.ceo&quot;) COLUMN(NAME=&quot;customer_a.stan_code&quot;) COLUMN(NAME=&quot;customer_a.state_code&quot;) COLUMN(NAME=&quot;customer_a.pin&quot;) COLUMN(NAME=&quot;customer_a.count_code&quot;) COLUMN(NAME=&quot;customer_a.tele1&quot;) COLUMN(NAME=&quot;customer_a.tele2&quot;) COLUMN(NAME=&quot;customer_a.tele3&quot;) COLUMN(NAME=&quot;customer_a.tele_ext&quot;) COLUMN(NAME=&quot;customer_a.fax&quot;) COLUMN(NAME=&quot;customer_a.modem&quot;) COLUMN(NAME=&quot;customer_a.edi_addr&quot;) COLUMN(NAME=&quot;customer_a.email_addr&quot;) COLUMN(NAME=&quot;customer_a.cont_pfx&quot;) COLUMN(NAME=&quot;customer_a.cont_pers&quot;) COLUMN(NAME=&quot;customer_a.cont_dept&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_tele1&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_tele2&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_fax&quot;) COLUMN(NAME=&quot;customer_a.bank_code&quot;) COLUMN(NAME=&quot;customer_a.bank_name&quot;) COLUMN(NAME=&quot;customer_a.business&quot;) COLUMN(NAME=&quot;customer_a.credit_prd&quot;) COLUMN(NAME=&quot;customer_a.credit_lmt&quot;) COLUMN(NAME=&quot;customer_a.cr_term&quot;) COLUMN(NAME=&quot;customer_a.curr_code&quot;) COLUMN(NAME=&quot;customer_a.chq_name&quot;) COLUMN(NAME=&quot;customer_a.acct_code__ar&quot;) COLUMN(NAME=&quot;customer_a.cctr_code__ar&quot;) COLUMN(NAME=&quot;customer_a.price_list&quot;) COLUMN(NAME=&quot;customer_a.tax_class&quot;) COLUMN(NAME=&quot;customer_a.tax_chap&quot;) COLUMN(NAME=&quot;customer_a.ecc_no&quot;) COLUMN(NAME=&quot;customer_a.cst_no&quot;) COLUMN(NAME=&quot;customer_a.lst_no&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_1&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_2&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_3&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no_1&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no_2&quot;) COLUMN(NAME=&quot;customer_a.site_code__rcp&quot;) COLUMN(NAME=&quot;customer_a.sales_pers&quot;) COLUMN(NAME=&quot;customer_a.tran_code&quot;) COLUMN(NAME=&quot;customer_a.trans_mode&quot;) COLUMN(NAME=&quot;customer_a.rcp_mode&quot;) COLUMN(NAME=&quot;customer_a.cont_pfx_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_dept_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_tele1&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_tele2&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_fax&quot;) COLUMN(NAME=&quot;customer_a.tele_ext_alt&quot;) COLUMN(NAME=&quot;customer_a.work_addr1&quot;) COLUMN(NAME=&quot;customer_a.work_addr2&quot;) COLUMN(NAME=&quot;customer_a.work_addr3&quot;) COLUMN(NAME=&quot;customer_a.work_city&quot;) COLUMN(NAME=&quot;customer_a.work_pin&quot;) COLUMN(NAME=&quot;customer_a.work_tele1&quot;) COLUMN(NAME=&quot;customer_a.work_tele2&quot;) COLUMN(NAME=&quot;customer_a.work_fax&quot;) COLUMN(NAME=&quot;customer_a.channel_partner&quot;) COLUMN(NAME=&quot;customer_a.site_code&quot;) COLUMN(NAME=&quot;customer_a.dis_link&quot;) COLUMN(NAME=&quot;customer_a.fin_link&quot;) COLUMN(NAME=&quot;customer_a.pending_order&quot;) COLUMN(NAME=&quot;customer_a.black_listed&quot;) COLUMN(NAME=&quot;customer_a.black_listed_date&quot;) COLUMN(NAME=&quot;customer_a.chg_date&quot;) COLUMN(NAME=&quot;customer_a.chg_user&quot;) COLUMN(NAME=&quot;customer_a.chg_term&quot;) COLUMN(NAME=&quot;station.descr&quot;) COLUMN(NAME=&quot;sales_pers.sp_name&quot;) COLUMN(NAME=&quot;customer_a.add_date&quot;) COLUMN(NAME=&quot;customer_a.add_user&quot;) COLUMN(NAME=&quot;customer_a.add_term&quot;) COLUMN(NAME=&quot;customer_a.ignore_days&quot;) COLUMN(NAME=&quot;customer_a.round&quot;) COLUMN(NAME=&quot;customer_a.round_to&quot;) COLUMN(NAME=&quot;customer_a.bank_addr1&quot;) COLUMN(NAME=&quot;customer_a.bank_addr2&quot;) COLUMN(NAME=&quot;customer_a.sales_pers__1&quot;) COLUMN(NAME=&quot;customer_a.sales_pers__2&quot;) COLUMN(NAME=&quot;customer_a.excise_ref&quot;) COLUMN(NAME=&quot;customer_a.price_list__disc&quot;) COLUMN(NAME=&quot;customer_a.disc_perc&quot;) COLUMN(NAME=&quot;customer_a.located_at&quot;) COLUMN(NAME=&quot;customer_a.stop_business&quot;) COLUMN(NAME=&quot;customer_a.market_reg&quot;) COLUMN(NAME=&quot;customer_a.sales_option&quot;) COLUMN(NAME=&quot;customer_a.dlv_term&quot;) COLUMN(NAME=&quot;customer_a.hold_shipment&quot;) COLUMN(NAME=&quot;customer_a.repl_factor&quot;) COLUMN(NAME=&quot;customer_a.repl_opt&quot;) COLUMN(NAME=&quot;customer_a.comm_perc__base&quot;) COLUMN(NAME=&quot;customer_a.acct_code__adv&quot;) COLUMN(NAME=&quot;customer_a.cctr_code__adv&quot;) COLUMN(NAME=&quot;customer_a.loc_group&quot;) COLUMN(NAME=&quot;customer_a.business_start_dt&quot;) COLUMN(NAME=&quot;customer_a.customer_ref&quot;) COLUMN(NAME=&quot;customer_a.cust_anal&quot;) COLUMN(NAME=&quot;customer_a.site_code__pbus&quot;) COLUMN(NAME=&quot;customer_a.ser_tax_reg&quot;) COLUMN(NAME=&quot;customer_a.order_type&quot;) COLUMN(NAME=&quot;customer_a.member_code&quot;) COLUMN(NAME=&quot;customer_a.price_list__clg&quot;) COLUMN(NAME=&quot;customer_a.split_factor&quot;) COLUMN(NAME=&quot;customer_a.repl_dlv_sch&quot;) COLUMN(NAME=&quot;customer_a.terr_code&quot;) COLUMN(NAME=&quot;territory.descr&quot;) COLUMN(NAME=&quot;customer_a.drug_licno_upto&quot;) COLUMN(NAME=&quot;customer_a.drug_licno1_upto&quot;) COLUMN(NAME=&quot;customer_a.drug_licno2_upto&quot;) COLUMN(NAME=&quot;customer_a.agreement_no&quot;) COLUMN(NAME=&quot;customer_a.agreement_date&quot;) COLUMN(NAME=&quot;customer_a.frt_term&quot;) COLUMN(NAME=&quot;customer_a.locality_code&quot;) COLUMN(NAME=&quot;customer_a.min_inv_amt&quot;) COLUMN(NAME=&quot;locality.descr&quot;) COLUMN(NAME=&quot;customer_a.curr_code__frt&quot;) COLUMN(NAME=&quot;customer_a.curr_code__ins&quot;) COLUMN(NAME=&quot;customer_a.comm_table__1&quot;) COLUMN(NAME=&quot;customer_a.comm_table__2&quot;) COLUMN(NAME=&quot;customer_a.comm_table__3&quot;) COLUMN(NAME=&quot;customer_a.excise_ref1&quot;) COLUMN(NAME=&quot;customer_a.excise_ref2&quot;) COLUMN(NAME=&quot;customer_a.excise_ref3&quot;) COLUMN(NAME=&quot;customer_a.cr_term__np&quot;) COLUMN(NAME=&quot;customer_a.loss_perc&quot;) COLUMN(NAME=&quot;customer_a.reas_code__bklist&quot;) COLUMN(NAME=&quot;customer_a.adhoc_repl&quot;) COLUMN(NAME=&quot;customer_a.adhoc_repl_perc&quot;) COLUMN(NAME=&quot;customer_a.udf_num1&quot;) COLUMN(NAME=&quot;customer_a.addl_lic_no&quot;) COLUMN(NAME=&quot;customer_a.addl_lic_upto&quot;) COLUMN(NAME=&quot;customer_a.full_name&quot;) COLUMN(NAME=&quot;customer_a.cust_category&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__shipper&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__inner&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__pallet&quot;) COLUMN(NAME=&quot;customer_a.term_table__no&quot;) COLUMN(NAME=&quot;customer_a.lst_no_date&quot;) COLUMN(NAME=&quot;customer_a.cst_no_date&quot;) COLUMN(NAME=&quot;customer_a.ecc_no_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_1_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_2_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_3_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_st_date&quot;) COLUMN(NAME=&quot;customer_a.ser_tax_reg_date&quot;) COLUMN(NAME=&quot;customer_a.udf_str1&quot;) COLUMN(NAME=&quot;customer_a.auto_debit__note&quot;) COLUMN(NAME=&quot;customer_a.shipment_lead__time&quot;) COLUMN(NAME=&quot;customer_a.rate_round_to&quot;) COLUMN(NAME=&quot;customer_a.rate_round&quot;) COLUMN(NAME=&quot;customer_a.master_pack&quot;) COLUMN(NAME=&quot;customer_a.pd_group&quot;) COLUMN(NAME=&quot;customer_a.cancel_bo&quot;) COLUMN(NAME=&quot;customer_a.cust_code__pd&quot;) COLUMN(NAME=&quot;customer_a.cust_code__disc&quot;) COLUMN(NAME=&quot;customer_a.min_shelf_life&quot;) COLUMN(NAME=&quot;customer_a.single_lot&quot;) COLUMN(NAME=&quot;customer_a.sgroup_code&quot;) COLUMN(NAME=&quot;customer_a.old_cust_ref&quot;) COLUMN(NAME=&quot;customer_a.cust_code__ar&quot;) COLUMN(NAME=&quot;customer_a.old_corp_parent&quot;) COLUMN(NAME=&quot;customer_a.store_number&quot;) COLUMN(NAME=&quot;customer_a.cust_tran_type&quot;) COLUMN(NAME=&quot;customer_a.ita_reg_no&quot;) COLUMN(NAME=&quot;customer_a.eng_name&quot;) COLUMN(NAME=&quot;customer_a.part_qty&quot;) COLUMN(NAME=&quot;customer_a.asn_reqd&quot;) COLUMN(NAME=&quot;customer_a.wave_type&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_a.return_allowed&quot;) COLUMN(NAME=&quot;customer_a.site_code__pay&quot;) COLUMN(NAME=&quot;customer_a.ship_cons_grp&quot;) COMPUTE(NAME=&quot;fn_get_gen_descr( &apos;REAS_CODE__BKLIST&apos; , &apos;W_CUSTOMER&apos; , customer_a.reas_code__bklist , &apos;D&apos; ) AS bklist_reason&quot;) COLUMN(NAME=&quot;customer_a.edi_reqd&quot;) COLUMN(NAME=&quot;customer_a.registr_1&quot;) COLUMN(NAME=&quot;customer_a.registr_2&quot;) COLUMN(NAME=&quot;customer_a.registr_3&quot;) COLUMN(NAME=&quot;customer_a.registr_4&quot;) COLUMN(NAME=&quot;customer_a.registr_5&quot;) COLUMN(NAME=&quot;customer_a.available_yn&quot;) COLUMN(NAME=&quot;customer_a.emp_code__ord1&quot;) COLUMN(NAME=&quot;customer_a.emp_code__ord&quot;) COLUMN(NAME=&quot;employee_a.emp_fname&quot;) COLUMN(NAME=&quot;employee_a.emp_lname&quot;) COLUMN(NAME=&quot;employee_b.emp_fname&quot;) COLUMN(NAME=&quot;employee_b.emp_lname&quot;) COLUMN(NAME=&quot;customer_a.tnt_option&quot;) COLUMN(NAME=&quot;customer_a.auto_stk_alloc&quot;) COLUMN(NAME=&quot;customer_a.uniform_code&quot;) COLUMN(NAME=&quot;customer_a.sms_notify&quot;) COLUMN(NAME=&quot;customer_a.email_notify&quot;) COMPUTE(NAME=&quot;FN_R_SUNDRY_YTD(&apos;C&apos; , CUSTOMER_a.CUST_CODE) as sundry_balance&quot;) COLUMN(NAME=&quot;customer_a.comm_table&quot;) JOIN (LEFT=&quot;customer_a.stan_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.stan_code&quot; OUTER1 =&quot;customer_a.stan_code&quot; ) JOIN (LEFT=&quot;customer_a.sales_pers&quot; OP =&quot;=&quot;RIGHT=&quot;sales_pers.sales_pers&quot; OUTER1 =&quot;customer_a.sales_pers&quot; ) JOIN (LEFT=&quot;customer_a.contact_code&quot; OP =&quot;=&quot;RIGHT=&quot;contact.contact_code&quot; OUTER1 =&quot;customer_a.contact_code&quot; ) JOIN (LEFT=&quot;customer_a.count_code&quot; OP =&quot;=&quot;RIGHT=&quot;country.count_code&quot; OUTER1 =&quot;customer_a.count_code&quot; ) JOIN (LEFT=&quot;customer_a.terr_code&quot; OP =&quot;=&quot;RIGHT=&quot;territory.terr_code&quot; OUTER1 =&quot;customer_a.terr_code&quot; ) JOIN (LEFT=&quot;customer_a.locality_code&quot; OP =&quot;=&quot;RIGHT=&quot;locality.locality_code&quot; OUTER1 =&quot;customer_a.locality_code&quot; ) JOIN (LEFT=&quot;customer_a.emp_code__ord&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_code&quot; OUTER1 =&quot;customer_a.emp_code__ord&quot; ) JOIN (LEFT=&quot;customer_a.emp_code__ord1&quot; OP =&quot;=&quot;RIGHT=&quot;employee_b.emp_code&quot; OUTER1 =&quot;customer_a.emp_code__ord1&quot; ) JOIN (LEFT=&quot;customer_a.group_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; ) JOIN (LEFT=&quot;customer_a.cust_code__bil&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; )WHERE( EXP1 =&quot;CUSTOMER_A.CUST_CODE&quot; OP =&quot;=&quot; EXP2 =&quot;:mCust&quot; ) ) ARG(NAME = &quot;mCust&quot; TYPE = string) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;station&quot; ) TABLE(NAME=&quot;sales_pers&quot; ) TABLE(NAME=&quot;contact&quot; ) TABLE(NAME=&quot;country&quot; ) TABLE(NAME=&quot;territory&quot; ) TABLE(NAME=&quot;locality&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_a&quot; ) TABLE(NAME=&quot;employee&quot; ALIAS=&quot;employee_b&quot; ) COLUMN(NAME=&quot;customer_a.cust_code&quot;) COLUMN(NAME=&quot;customer_a.contact_code&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_a.sh_name&quot;) COLUMN(NAME=&quot;customer_a.group_code&quot;) COLUMN(NAME=&quot;customer_a.cust_type&quot;) COLUMN(NAME=&quot;customer_a.cust_code__bil&quot;) COLUMN(NAME=&quot;customer_a.ignore_credit&quot;) COLUMN(NAME=&quot;customer_a.addr1&quot;) COLUMN(NAME=&quot;customer_a.addr2&quot;) COLUMN(NAME=&quot;customer_a.addr3&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;customer_a.ceo_pfx&quot;) COLUMN(NAME=&quot;customer_a.ceo&quot;) COLUMN(NAME=&quot;customer_a.stan_code&quot;) COLUMN(NAME=&quot;customer_a.state_code&quot;) COLUMN(NAME=&quot;customer_a.pin&quot;) COLUMN(NAME=&quot;customer_a.count_code&quot;) COLUMN(NAME=&quot;customer_a.tele1&quot;) COLUMN(NAME=&quot;customer_a.tele2&quot;) COLUMN(NAME=&quot;customer_a.tele3&quot;) COLUMN(NAME=&quot;customer_a.tele_ext&quot;) COLUMN(NAME=&quot;customer_a.fax&quot;) COLUMN(NAME=&quot;customer_a.modem&quot;) COLUMN(NAME=&quot;customer_a.edi_addr&quot;) COLUMN(NAME=&quot;customer_a.email_addr&quot;) COLUMN(NAME=&quot;customer_a.cont_pfx&quot;) COLUMN(NAME=&quot;customer_a.cont_pers&quot;) COLUMN(NAME=&quot;customer_a.cont_dept&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_tele1&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_tele2&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_fax&quot;) COLUMN(NAME=&quot;customer_a.bank_code&quot;) COLUMN(NAME=&quot;customer_a.bank_name&quot;) COLUMN(NAME=&quot;customer_a.business&quot;) COLUMN(NAME=&quot;customer_a.credit_prd&quot;) COLUMN(NAME=&quot;customer_a.credit_lmt&quot;) COLUMN(NAME=&quot;customer_a.cr_term&quot;) COLUMN(NAME=&quot;customer_a.curr_code&quot;) COLUMN(NAME=&quot;customer_a.chq_name&quot;) COLUMN(NAME=&quot;customer_a.acct_code__ar&quot;) COLUMN(NAME=&quot;customer_a.cctr_code__ar&quot;) COLUMN(NAME=&quot;customer_a.price_list&quot;) COLUMN(NAME=&quot;customer_a.tax_class&quot;) COLUMN(NAME=&quot;customer_a.tax_chap&quot;) COLUMN(NAME=&quot;customer_a.ecc_no&quot;) COLUMN(NAME=&quot;customer_a.cst_no&quot;) COLUMN(NAME=&quot;customer_a.lst_no&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_1&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_2&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_3&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no_1&quot;) COLUMN(NAME=&quot;customer_a.drug_lic_no_2&quot;) COLUMN(NAME=&quot;customer_a.site_code__rcp&quot;) COLUMN(NAME=&quot;customer_a.sales_pers&quot;) COLUMN(NAME=&quot;customer_a.tran_code&quot;) COLUMN(NAME=&quot;customer_a.trans_mode&quot;) COLUMN(NAME=&quot;customer_a.rcp_mode&quot;) COLUMN(NAME=&quot;customer_a.cont_pfx_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_dept_alt&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_tele1&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_tele2&quot;) COLUMN(NAME=&quot;customer_a.cont_pers_alt_fax&quot;) COLUMN(NAME=&quot;customer_a.tele_ext_alt&quot;) COLUMN(NAME=&quot;customer_a.work_addr1&quot;) COLUMN(NAME=&quot;customer_a.work_addr2&quot;) COLUMN(NAME=&quot;customer_a.work_addr3&quot;) COLUMN(NAME=&quot;customer_a.work_city&quot;) COLUMN(NAME=&quot;customer_a.work_pin&quot;) COLUMN(NAME=&quot;customer_a.work_tele1&quot;) COLUMN(NAME=&quot;customer_a.work_tele2&quot;) COLUMN(NAME=&quot;customer_a.work_fax&quot;) COLUMN(NAME=&quot;customer_a.channel_partner&quot;) COLUMN(NAME=&quot;customer_a.site_code&quot;) COLUMN(NAME=&quot;customer_a.dis_link&quot;) COLUMN(NAME=&quot;customer_a.fin_link&quot;) COLUMN(NAME=&quot;customer_a.pending_order&quot;) COLUMN(NAME=&quot;customer_a.black_listed&quot;) COLUMN(NAME=&quot;customer_a.black_listed_date&quot;) COLUMN(NAME=&quot;customer_a.chg_date&quot;) COLUMN(NAME=&quot;customer_a.chg_user&quot;) COLUMN(NAME=&quot;customer_a.chg_term&quot;) COLUMN(NAME=&quot;station.descr&quot;) COLUMN(NAME=&quot;sales_pers.sp_name&quot;) COLUMN(NAME=&quot;customer_a.add_date&quot;) COLUMN(NAME=&quot;customer_a.add_user&quot;) COLUMN(NAME=&quot;customer_a.add_term&quot;) COLUMN(NAME=&quot;customer_a.ignore_days&quot;) COLUMN(NAME=&quot;customer_a.round&quot;) COLUMN(NAME=&quot;customer_a.round_to&quot;) COLUMN(NAME=&quot;customer_a.bank_addr1&quot;) COLUMN(NAME=&quot;customer_a.bank_addr2&quot;) COLUMN(NAME=&quot;customer_a.sales_pers__1&quot;) COLUMN(NAME=&quot;customer_a.sales_pers__2&quot;) COLUMN(NAME=&quot;customer_a.excise_ref&quot;) COLUMN(NAME=&quot;customer_a.price_list__disc&quot;) COLUMN(NAME=&quot;customer_a.disc_perc&quot;) COLUMN(NAME=&quot;customer_a.located_at&quot;) COLUMN(NAME=&quot;customer_a.stop_business&quot;) COLUMN(NAME=&quot;customer_a.market_reg&quot;) COLUMN(NAME=&quot;customer_a.sales_option&quot;) COLUMN(NAME=&quot;customer_a.dlv_term&quot;) COLUMN(NAME=&quot;customer_a.hold_shipment&quot;) COLUMN(NAME=&quot;customer_a.repl_factor&quot;) COLUMN(NAME=&quot;customer_a.repl_opt&quot;) COLUMN(NAME=&quot;customer_a.comm_perc__base&quot;) COLUMN(NAME=&quot;customer_a.acct_code__adv&quot;) COLUMN(NAME=&quot;customer_a.cctr_code__adv&quot;) COLUMN(NAME=&quot;customer_a.loc_group&quot;) COLUMN(NAME=&quot;customer_a.business_start_dt&quot;) COLUMN(NAME=&quot;customer_a.customer_ref&quot;) COLUMN(NAME=&quot;customer_a.cust_anal&quot;) COLUMN(NAME=&quot;customer_a.site_code__pbus&quot;) COLUMN(NAME=&quot;customer_a.ser_tax_reg&quot;) COLUMN(NAME=&quot;customer_a.order_type&quot;) COLUMN(NAME=&quot;customer_a.member_code&quot;) COLUMN(NAME=&quot;customer_a.price_list__clg&quot;) COLUMN(NAME=&quot;customer_a.split_factor&quot;) COLUMN(NAME=&quot;customer_a.repl_dlv_sch&quot;) COLUMN(NAME=&quot;customer_a.terr_code&quot;) COLUMN(NAME=&quot;territory.descr&quot;) COLUMN(NAME=&quot;customer_a.drug_licno_upto&quot;) COLUMN(NAME=&quot;customer_a.drug_licno1_upto&quot;) COLUMN(NAME=&quot;customer_a.drug_licno2_upto&quot;) COLUMN(NAME=&quot;customer_a.agreement_no&quot;) COLUMN(NAME=&quot;customer_a.agreement_date&quot;) COLUMN(NAME=&quot;customer_a.frt_term&quot;) COLUMN(NAME=&quot;customer_a.locality_code&quot;) COLUMN(NAME=&quot;customer_a.min_inv_amt&quot;) COLUMN(NAME=&quot;locality.descr&quot;) COLUMN(NAME=&quot;customer_a.curr_code__frt&quot;) COLUMN(NAME=&quot;customer_a.curr_code__ins&quot;) COLUMN(NAME=&quot;customer_a.comm_table__1&quot;) COLUMN(NAME=&quot;customer_a.comm_table__2&quot;) COLUMN(NAME=&quot;customer_a.comm_table__3&quot;) COLUMN(NAME=&quot;customer_a.excise_ref1&quot;) COLUMN(NAME=&quot;customer_a.excise_ref2&quot;) COLUMN(NAME=&quot;customer_a.excise_ref3&quot;) COLUMN(NAME=&quot;customer_a.cr_term__np&quot;) COLUMN(NAME=&quot;customer_a.loss_perc&quot;) COLUMN(NAME=&quot;customer_a.reas_code__bklist&quot;) COLUMN(NAME=&quot;customer_a.adhoc_repl&quot;) COLUMN(NAME=&quot;customer_a.adhoc_repl_perc&quot;) COLUMN(NAME=&quot;customer_a.udf_num1&quot;) COLUMN(NAME=&quot;customer_a.addl_lic_no&quot;) COLUMN(NAME=&quot;customer_a.addl_lic_upto&quot;) COLUMN(NAME=&quot;customer_a.full_name&quot;) COLUMN(NAME=&quot;customer_a.cust_category&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__shipper&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__inner&quot;) COLUMN(NAME=&quot;customer_a.fmt_code__pallet&quot;) COLUMN(NAME=&quot;customer_a.term_table__no&quot;) COLUMN(NAME=&quot;customer_a.lst_no_date&quot;) COLUMN(NAME=&quot;customer_a.cst_no_date&quot;) COLUMN(NAME=&quot;customer_a.ecc_no_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_1_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_2_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_3_date&quot;) COLUMN(NAME=&quot;customer_a.tax_reg_st_date&quot;) COLUMN(NAME=&quot;customer_a.ser_tax_reg_date&quot;) COLUMN(NAME=&quot;customer_a.udf_str1&quot;) COLUMN(NAME=&quot;customer_a.auto_debit__note&quot;) COLUMN(NAME=&quot;customer_a.shipment_lead__time&quot;) COLUMN(NAME=&quot;customer_a.rate_round_to&quot;) COLUMN(NAME=&quot;customer_a.rate_round&quot;) COLUMN(NAME=&quot;customer_a.master_pack&quot;) COLUMN(NAME=&quot;customer_a.pd_group&quot;) COLUMN(NAME=&quot;customer_a.cancel_bo&quot;) COLUMN(NAME=&quot;customer_a.cust_code__pd&quot;) COLUMN(NAME=&quot;customer_a.cust_code__disc&quot;) COLUMN(NAME=&quot;customer_a.min_shelf_life&quot;) COLUMN(NAME=&quot;customer_a.single_lot&quot;) COLUMN(NAME=&quot;customer_a.sgroup_code&quot;) COLUMN(NAME=&quot;customer_a.old_cust_ref&quot;) COLUMN(NAME=&quot;customer_a.cust_code__ar&quot;) COLUMN(NAME=&quot;customer_a.old_corp_parent&quot;) COLUMN(NAME=&quot;customer_a.store_number&quot;) COLUMN(NAME=&quot;customer_a.cust_tran_type&quot;) COLUMN(NAME=&quot;customer_a.ita_reg_no&quot;) COLUMN(NAME=&quot;customer_a.eng_name&quot;) COLUMN(NAME=&quot;customer_a.part_qty&quot;) COLUMN(NAME=&quot;customer_a.asn_reqd&quot;) COLUMN(NAME=&quot;customer_a.wave_type&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_a.return_allowed&quot;) COLUMN(NAME=&quot;customer_a.site_code__pay&quot;) COLUMN(NAME=&quot;customer_a.ship_cons_grp&quot;) COMPUTE(NAME=&quot;fn_get_gen_descr( &apos;REAS_CODE__BKLIST&apos; , &apos;W_CUSTOMER&apos; , customer_a.reas_code__bklist , &apos;D&apos; ) AS bklist_reason&quot;) COLUMN(NAME=&quot;customer_a.edi_reqd&quot;) COLUMN(NAME=&quot;customer_a.registr_1&quot;) COLUMN(NAME=&quot;customer_a.registr_2&quot;) COLUMN(NAME=&quot;customer_a.registr_3&quot;) COLUMN(NAME=&quot;customer_a.registr_4&quot;) COLUMN(NAME=&quot;customer_a.registr_5&quot;) COLUMN(NAME=&quot;customer_a.available_yn&quot;) COLUMN(NAME=&quot;customer_a.emp_code__ord1&quot;) COLUMN(NAME=&quot;customer_a.emp_code__ord&quot;) COLUMN(NAME=&quot;employee_a.emp_fname&quot;) COLUMN(NAME=&quot;employee_a.emp_lname&quot;) COLUMN(NAME=&quot;employee_b.emp_fname&quot;) COLUMN(NAME=&quot;employee_b.emp_lname&quot;) COLUMN(NAME=&quot;customer_a.tnt_option&quot;) COLUMN(NAME=&quot;customer_a.auto_stk_alloc&quot;) COLUMN(NAME=&quot;customer_a.uniform_code&quot;) COLUMN(NAME=&quot;customer_a.sms_notify&quot;) COLUMN(NAME=&quot;customer_a.email_notify&quot;) COMPUTE(NAME=&quot;FN_R_SUNDRY_YTD(&apos;C&apos; , CUSTOMER_a.CUST_CODE) as sundry_balance&quot;) COLUMN(NAME=&quot;customer_a.comm_table&quot;) JOIN (LEFT=&quot;customer_a.stan_code&quot; OP =&quot;=&quot;RIGHT=&quot;station.stan_code&quot; OUTER1 =&quot;customer_a.stan_code&quot; ) JOIN (LEFT=&quot;customer_a.sales_pers&quot; OP =&quot;=&quot;RIGHT=&quot;sales_pers.sales_pers&quot; OUTER1 =&quot;customer_a.sales_pers&quot; ) JOIN (LEFT=&quot;customer_a.contact_code&quot; OP =&quot;=&quot;RIGHT=&quot;contact.contact_code&quot; OUTER1 =&quot;customer_a.contact_code&quot; ) JOIN (LEFT=&quot;customer_a.count_code&quot; OP =&quot;=&quot;RIGHT=&quot;country.count_code&quot; OUTER1 =&quot;customer_a.count_code&quot; ) JOIN (LEFT=&quot;customer_a.terr_code&quot; OP =&quot;=&quot;RIGHT=&quot;territory.terr_code&quot; OUTER1 =&quot;customer_a.terr_code&quot; ) JOIN (LEFT=&quot;customer_a.locality_code&quot; OP =&quot;=&quot;RIGHT=&quot;locality.locality_code&quot; OUTER1 =&quot;customer_a.locality_code&quot; ) JOIN (LEFT=&quot;customer_a.emp_code__ord&quot; OP =&quot;=&quot;RIGHT=&quot;employee_a.emp_code&quot; OUTER1 =&quot;customer_a.emp_code__ord&quot; ) JOIN (LEFT=&quot;customer_a.emp_code__ord1&quot; OP =&quot;=&quot;RIGHT=&quot;employee_b.emp_code&quot; OUTER1 =&quot;customer_a.emp_code__ord1&quot; ) JOIN (LEFT=&quot;customer_a.group_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; OUTER1 =&quot;customer_a.group_code&quot; ) JOIN (LEFT=&quot;customer_a.cust_code__bil&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; OUTER1 =&quot;customer_a.cust_code__bil&quot; )WHERE( EXP1 =&quot;CUSTOMER_A.CUST_CODE&quot; OP =&quot;=&quot; EXP2 =&quot;:mCust&quot; ) ) ARG(NAME = &quot;mCust&quot; TYPE = string) </retrieve>
<update>CUSTOMER</update> <update>CUSTOMER</update>
<updatewhere>0</updatewhere> <updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment