576: , '-1'
577: )
578: , l_payinq_code, NVL2 ( pat.attribute21
579: , ( SELECT TO_CHAR ( cash_receipt_id )
580: FROM ar_cash_receipts_all
581: WHERE cash_receipt_id =
582: NVL (
583: DECODE(LTRIM(SUBSTR ( pat.attribute21
584: ,INSTR ( pat.attribute21