OMBI_STDNOT_VW(SQL View) |
Index Back |
---|---|
OM Bill Standard Note VwOMBILL uses this view to get the standard notes from the sales order to pass to the Invoice. |
SELECT ltmp.intfc_id , ltmp.intfc_line_num , 'NOTE' , n.seq_num , ltmp.business_unit , o.note_type , 'Y' , 'N' , 'L' ,n.std_note_cd , ltmp.process_instance FROM ps_ord_note n , ps_ombi_intfc_tmp ltmp , ps_set_cntrl_rec s , PS_STD_NOTE_doc d , PS_STD_NOTE o WHERE ltmp.business_unit_om = n.business_unit AND ltmp.order_no = n.order_no AND ltmp.order_int_line_no = n.order_int_line_no AND ltmp.line_type = 'REV' AND ((ltmp.sched_line_nbr = n.sched_line_nbr) OR (n.sched_line_nbr = 0)) AND n.std_note_cd <> ' ' AND n.order_int_line_no <> 0 AND s.setid = o.setid AND s.setcntrlvalue = n.business_unit AND s.recname = 'STD_NOTE' AND o.std_note_cd = n.std_note_cd AND o.effdt = ( SELECT MAX(t.effdt) FROM PS_STD_NOTE t WHERE t.setid = o.setid AND t.std_note_cd = o.std_note_cd AND t.effdt <= ltmp.order_date) AND d.setid = o.setid AND d.std_note_cd = o.std_note_cd AND d.effdt = o.effdt AND d.document_cd = 'INVC' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | INTFC_ID | Number(8,0) | INTEGER NOT NULL | Interface ID |
2 | INTFC_LINE_NUM | Number(8,0) | INTEGER NOT NULL | Interface Line Number |
3 | TRANS_TYPE_BI | Character(4) | VARCHAR2(4) NOT NULL |
Transaction Type
AE=Accounting Entry AHDR=Adjustment Header DDS=Deferred Discount/Surcharge DS=Discount/Surcharge EXSD=Indian Excise/Sales Tax Detail LINE=Chargeable Line NOTE=Note/Comment TAX=Sales/Use Tax Detail |
4 | TRANS_TYPE_BI_SEQ | Number(3,0) | SMALLINT NOT NULL |
Transaction Type Seq
010=Invalid Transaction Type 020=Too many charge lines 030=No charge line for activity 040=Invalid Business Unit 050=Invalid bill-to customer 060=Invalid Billing Address 070=Invalid bill-to contact 080=No Bill Source provided 090=Invalid Bill Source 100=Invalid Bill Type 110=Invalid Bill Cycle 120=Invalid Payment Term 130=Invalid Tax Code 140=Invalid Unit of measure 200=Invalid Standard Note Code 210=No Note Code or Text exists 300=Both Amount & Percentage are 0 |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
6 | NOTE_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Note Type |
7 | STD_NOTE_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Standard Note Flag
N=No Y=Yes |
8 | INTERNAL_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Internal Only Flag
N=No Y=Yes |
9 | HDR_OR_LINE_NOTE | Character(1) | VARCHAR2(1) NOT NULL |
Header or Line Note
H=Header Note L=Line Note |
10 | STD_NOTE_CD | Character(10) | VARCHAR2(10) NOT NULL | Standard Note Code |
11 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |