OMBI_ORDNOT_VW(SQL View) |
Index Back |
---|---|
OM Bill Order Note VwOMBILL uses this view to determine what order notes should be passed to billing to place on the invoice. |
SELECT ltmp.intfc_id ,ltmp.intfc_line_num ,'NOTE' ,n.seq_num , ltmp.business_unit , n.note_type , 'Y' , 'N' , 'L' , ' ' , n.text254 , ltmp.process_instance FROM ps_ord_note n , ps_ord_note_doc d , PS_OMBI_INTFC_TMP ltmp WHERE n.business_unit = d.business_unit AND n.order_no = d.order_no AND n.order_int_line_no = d.order_int_line_no AND n.order_int_line_no <> 0 AND n.sched_line_nbr = d.sched_line_nbr AND n.seq_num = d.seq_num AND ltmp.line_type = 'REV' AND 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.sched_line_nbr = n.sched_line_nbr) OR (n.sched_line_nbr = 0)) AND n.std_note_cd = ' ' AND n.text254 <> ' ' 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 | TEXT254 | Character(254) | VARCHAR2(254) NOT NULL | Text |
12 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |