更新客户信息

DECLARE
   CURSOR cur_h IS
      SELECT h.*
        FROM ar_customers h
       WHERE h.customer_name  /*'—XD';*/
             LIKE '%—XD';

   p_customer_rec  cux_ar_cust_accounts_v%ROWTYPE;
   l_return_status VARCHAR2(30);
   l_msg_count     NUMBER;
   l_msg_data      VARCHAR2(3000);
   l_party_id      NUMBER;
   l_name          VARCHAR2(3000);
   /*FROM CUX_AR_CUSTOMERS_BILL_ALL*/

BEGIN

   FOR rec_h IN cur_h LOOP
   
      SELECT REPLACE(rec_h.customer_name, '—', '-') INTO l_name FROM dual;
   
      p_customer_rec.party_name := l_name; -- 客户名称
      /*p_customer_rec.party_number:=;
      p_customer_rec.tax_reference:=; -- 纳税登记编号
      p_customer_rec.account_number:=; --客户账号
           -- l_cust_account_rec.customer_type       := 'R'; --p_customer_rec.; -- 账户类型:'R' 外部
      p_customer_rec.customer_class_code:=; -- 账户分类: 'FWDW' 服务单位
      p_customer_rec.sales
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值