DBA Data[Home] [Help]

APPS.ASO_CHECK_TCA_PVT SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 28

     SELECT party_id
     FROM HZ_CUST_ACCOUNTS
     WHERE cust_account_id = acct_id
     AND status = 'A'
     AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate);
Line: 35

     SELECT party_type
     FROM HZ_PARTIES
     WHERE party_id = pty_id;
Line: 40

     SELECT object_id
     FROM HZ_RELATIONSHIPS
     WHERE party_id = pty_id
     AND object_type = 'ORGANIZATION'
	AND object_table_name = 'HZ_PARTIES';
Line: 83

    IF (p_application_type_code = 'QUOTING HTML' AND p_operation_code = 'UPDATE') THEN
      l_qte_header_rec := ASO_UTILITY_PVT.query_header_row (p_qte_rec.quote_header_id);
Line: 150

       IF P_Header_Shipment_Tbl(1).operation_code = 'UPDATE' AND
          (P_Header_Shipment_Tbl(1).shipment_id IS NOT NULL AND P_Header_Shipment_Tbl(1).shipment_id <> FND_API.G_MISS_NUM) THEN
         IF P_Header_Shipment_Tbl(1).ship_to_party_id <> FND_API.G_MISS_NUM OR
           P_Header_Shipment_Tbl(1).ship_to_cust_party_id <> FND_API.G_MISS_NUM OR
           P_Header_Shipment_Tbl(1).ship_to_cust_account_id <> FND_API.G_MISS_NUM OR
           P_Header_Shipment_Tbl(1).ship_to_party_site_id <> FND_API.G_MISS_NUM THEN

           l_shipment_rec := ASO_UTILITY_PVT.query_shipment_row (P_Header_Shipment_Tbl(1).shipment_id);
Line: 174

    END IF; -- UPDATE
Line: 426

     select cust_acct_site_id from hz_cust_site_uses
     where site_use_id = l_site_use_id;
Line: 430

     SELECT party_site_use_id
     FROM hz_party_site_uses
     WHERE party_site_id = l_sold_to_party_site
     AND site_use_type = 'SOLD_TO';
Line: 436

     SELECT invoice_to_cust_account_id
	FROM   aso_quote_headers_all
	WHERE  Quote_header_id = P_Qte_Rec.quote_header_id;
Line: 1005

     select cust_acct_site_id from hz_cust_site_uses
     where site_use_id = l_site_use_id;
Line: 1009

     SELECT cust_account_id, cust_party_id
     FROM ASO_QUOTE_HEADERS_ALL
     WHERE quote_header_id = qte_hdr;
Line: 1014

     SELECT party_id
     FROM HZ_CUST_ACCOUNTS
     WHERE cust_account_id = acct_id
     AND status = 'A'
     AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate);
Line: 1021

   SELECT invoice_to_cust_account_id,end_customer_cust_account_id
   FROM ASO_QUOTE_LINES_ALL
   WHERE quote_line_id = P_Qte_Line_Rec.quote_line_id;
Line: 1026

   SELECT ship_to_cust_account_id
   FROM ASO_SHIPMENTS
   WHERE shipment_id = l_shipment_id;
Line: 1065

    IF (P_Qte_Line_Rec.operation_code = 'UPDATE' AND P_Application_Type_Code = 'QUOTING HTML') THEN
      l_qte_line_rec := ASO_UTILITY_PVT.query_qte_line_row (P_Qte_Line_Rec.quote_line_id);
Line: 1106

      IF P_line_Shipment_Tbl(j).operation_code = 'UPDATE' THEN
       IF P_line_Shipment_Tbl(j).shipment_id IS NOT NULL AND P_line_Shipment_Tbl(j).shipment_id <> FND_API.G_MISS_NUM THEN
         IF P_line_Shipment_Tbl(j).ship_to_party_id <> FND_API.G_MISS_NUM OR
            P_line_Shipment_Tbl(j).ship_to_cust_party_id <> FND_API.G_MISS_NUM OR
            P_line_Shipment_Tbl(j).ship_to_cust_account_id <> FND_API.G_MISS_NUM OR
            P_line_Shipment_Tbl(j).ship_to_party_site_id <> FND_API.G_MISS_NUM THEN

           l_shipment_rec := ASO_UTILITY_PVT.query_shipment_row (P_line_Shipment_Tbl(j).shipment_id);
Line: 1130

    END IF; -- UPDATE
Line: 1614

	   SELECT count(rowid)
	   FROM hz_cust_accounts
	   WHERE party_id = l_party_id
	   AND status = 'A'
        AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate);
Line: 1621

        SELECT count(a.rowid)
        from hz_cust_accounts a, hz_relationships b
        where a.party_id = b.object_id
        and a.status = 'A'
	   AND sysdate BETWEEN NVL(a.account_activation_date, sysdate) AND NVL(a.account_termination_date, sysdate)
        and b.party_id = l_party_id
        and b.subject_table_name = 'HZ_PARTIES'
        and b.subject_type = 'PERSON';
Line: 1631

        SELECT cust_account_id
        FROM hz_cust_accounts
        WHERE party_id = l_Party_Id
        AND status = 'A'
	   AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate)
	   ORDER BY creation_date ASC;
Line: 1639

        select party_type
        from hz_parties
        where party_id = l_party_id;
Line: 1644

        select object_id
        from hz_relationships
        where party_id = l_party_id
        and object_table_name = 'HZ_PARTIES'
	   and subject_table_name = 'HZ_PARTIES'
	   and subject_type = 'PERSON';
Line: 1652

        select a.cust_account_id
        from hz_cust_accounts a, hz_relationships b
        where a.party_id = b.object_id
        and a.status = 'A'
	   AND sysdate BETWEEN NVL(a.account_activation_date, sysdate) AND NVL(a.account_termination_date, sysdate)
        and b.party_id = l_party_id
	   and b.subject_table_name = 'HZ_PARTIES'
	   and b.subject_type = 'PERSON'
	   ORDER BY a.creation_date ASC;
Line: 1930

        SELECT a.party_type, a.party_id
        from
        HZ_PARTIES a, HZ_PARTY_SITES b
        where
        a.status = 'A'
        and b.status = 'A'
        and b.party_site_id = p_party_site_id
        and b.party_id = a.party_id;
Line: 1940

        select cust_acct_site_id, status
        from
        hz_cust_acct_sites
        where
        cust_account_id = p_cust_account_id
        and party_site_id = p_party_site_id
	   and status = 'A';
Line: 1949

        select cust_acct_site_id, status
        from
        hz_cust_acct_sites
        where
        cust_account_id = p_cust_account_id
        and party_site_id = p_party_site_id
        and status <> 'A';
Line: 1958

        select site_use_id, status
        from
        hz_cust_site_uses
        where
        cust_acct_site_id = l_acct_site_id
        and site_use_code = l_site_type
        and status = 'A';
Line: 1967

        select site_use_id, status
        from
        hz_cust_site_uses
        where
        cust_acct_site_id = l_acct_site_id
        and site_use_code = l_site_type
        and status <> 'A';
Line: 1978

        select a.site_use_id, b.status,a.status
        from
        hz_cust_site_uses a, hz_cust_acct_sites b
        where
        b.cust_account_id = cust_acct
        and b.party_site_id = party_site
        and a.cust_acct_site_id = b.cust_acct_site_id
        and a.site_use_code = site_type;
Line: 1994

        select a.object_id
        from
        hz_relationships a, hz_cust_accounts  b
        where  a.party_id = l_party_id
        and a.object_id = b.party_id
        and b.cust_account_id = p_cust_account_id;
Line: 2259

l_last_update_date DATE;
Line: 2262

  SELECT bill_to_flag, ship_to_flag, last_update_date
  FROM hz_cust_acct_relate
  WHERE cust_account_id = p_related_cust_account
    AND related_cust_account_id = p_sold_to_cust_account;
Line: 2292

    INTO l_bill_to_flag, l_ship_to_flag, l_last_update_date;
Line: 2567

 SELECT 'X'
 FROM aso_quote_headers_all
 WHERE quote_header_id = qte_hdr;
Line: 2572

 SELECT a.cust_account_id, a.invoice_to_cust_account_id, a.cust_party_id,
        a.invoice_to_cust_party_id, a.party_id, a.sold_to_party_site_id,
        a.invoice_to_party_id, a.invoice_to_party_site_id,
        a.End_Customer_party_id, a.End_Customer_party_site_id,
        a.End_Customer_cust_party_id, a.End_Customer_cust_account_id,
        b.ship_to_party_id, b.ship_to_party_site_id,
        b.ship_to_cust_party_id, b.ship_to_cust_account_id,
        b.shipment_id
 FROM aso_quote_headers_all a, aso_shipments b
 WHERE a.quote_header_id = qte_hdr
 AND a.quote_header_id = b.quote_header_id
 AND b.quote_line_id is NULL;
Line: 2587

 SELECT a.invoice_to_cust_account_id, a.invoice_to_cust_party_id, a.quote_line_id,
 a.invoice_to_party_id, a.invoice_to_party_site_id,
 a.End_Customer_cust_account_id, a.End_Customer_cust_party_id,
 a.End_Customer_party_id, a.End_Customer_party_site_id,
 b.ship_to_cust_account_id, b.ship_to_cust_party_id, b.shipment_id,
 b.ship_to_party_id, b.ship_to_party_site_id
 FROM aso_quote_lines_all a, aso_shipments b
 WHERE a.quote_header_id = qte_hdr
 AND a.quote_line_id = b.quote_line_id
 AND ((a.invoice_to_cust_account_id IS NULL
       AND a.invoice_to_cust_party_id IS NOT NULL)
 OR  (a.End_Customer_cust_account_id is NULL
       AND a.End_Customer_cust_party_id IS NOT NULL)
 OR  (b.ship_to_cust_account_id is NULL
       AND b.ship_to_cust_party_id IS NOT NULL));
Line: 2616

l_last_update_date date := SYSDATE;
Line: 2747

	   UPDATE ASO_QUOTE_HEADERS_ALL
	   SET cust_account_id = l_account_id
              ,last_update_date = l_last_update_date
              ,last_updated_by = l_g_user_id
              ,last_update_login = l_g_login_id
	   WHERE quote_header_id = p_qte_header_id;
Line: 2796

        UPDATE ASO_QUOTE_HEADERS_ALL
        SET invoice_to_cust_account_id = l_account_id
              ,last_update_date = l_last_update_date
              ,last_updated_by = l_g_user_id
              ,last_update_login = l_g_login_id

        WHERE quote_header_id = p_qte_header_id;
Line: 2845

        UPDATE ASO_QUOTE_HEADERS_ALL
        SET end_customer_cust_account_id = l_account_id
              ,last_update_date = l_last_update_date
              ,last_updated_by = l_g_user_id
              ,last_update_login = l_g_login_id
        WHERE quote_header_id = p_qte_header_id;
Line: 2894

                UPDATE ASO_SHIPMENTS
                SET ship_to_cust_account_id = l_account_id
				   ,last_update_date = l_last_update_date
				  ,last_updated_by = l_g_user_id
				 ,last_update_login = l_g_login_id

               WHERE shipment_id = l_header_shipment_tbl(1).shipment_id;
Line: 3010

        UPDATE ASO_QUOTE_LINES_ALL
        SET invoice_to_cust_account_id = l_account_id
				 ,last_update_date = l_last_update_date
				,last_updated_by = l_g_user_id
			    ,last_update_login = l_g_login_id

        WHERE quote_line_id = l_qte_line_rec.quote_line_id;
Line: 3057

        UPDATE ASO_QUOTE_LINES_ALL
        SET End_Customer_cust_account_id = l_account_id
                     ,last_update_date = l_last_update_date
                    ,last_updated_by = l_g_user_id
                   ,last_update_login = l_g_login_id
        WHERE quote_line_id = l_qte_line_rec.quote_line_id;
Line: 3104

          UPDATE ASO_SHIPMENTS
          SET ship_to_cust_account_id = l_account_id
				   ,last_update_date = l_last_update_date
				  ,last_updated_by = l_g_user_id
				 ,last_update_login = l_g_login_id

          WHERE shipment_id = Line_Acct.shipment_id;
Line: 3210

     SELECT party_id
     FROM HZ_CUST_ACCOUNTS
     WHERE cust_account_id = acct_id
     AND status = 'A'
     AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate);
Line: 3289

 SELECT 'X'
 FROM aso_quote_headers_all
 WHERE quote_header_id = qte_hdr;
Line: 3294

 SELECT cust_party_id
 FROM aso_quote_headers_all
 WHERE quote_header_id = qte_hdr
 AND (cust_account_id IS NULL
      AND cust_party_id IS NOT NULL);
Line: 3301

 SELECT invoice_to_cust_party_id
 FROM aso_quote_headers_all
 WHERE quote_header_id = qte_hdr
 AND (invoice_to_cust_account_id IS NULL
      AND invoice_to_cust_party_id IS NOT NULL);
Line: 3308

 SELECT End_Customer_cust_party_id
 FROM aso_quote_headers_all
 WHERE quote_header_id = qte_hdr
 AND (End_Customer_cust_account_id IS NULL
      AND End_Customer_cust_party_id IS NOT NULL);
Line: 3315

 SELECT invoice_to_cust_party_id
 FROM aso_quote_lines_all
 WHERE quote_header_id = qte_hdr
 AND invoice_to_cust_account_id IS NULL
 AND invoice_to_cust_party_id IS NOT NULL;
Line: 3322

 SELECT End_Customer_cust_party_id
 FROM aso_quote_lines_all
 WHERE quote_header_id = qte_hdr
 AND End_Customer_cust_account_id IS NULL
 AND End_Customer_cust_party_id IS NOT NULL;
Line: 3329

 SELECT ship_to_cust_party_id
 FROM aso_shipments
 WHERE quote_header_id = qte_hdr
 AND ship_to_cust_account_id IS NULL
 AND ship_to_cust_party_id IS NOT NULL;
Line: 3336

 SELECT cust_account_id
 FROM hz_cust_accounts
 WHERE party_id = pty_id
 AND status = 'A'
 AND sysdate BETWEEN NVL(account_activation_date, sysdate) AND NVL(account_termination_date, sysdate);