SPA_INV_APRM2_V(SQL View) |
Index Back |
---|---|
Supplier Invoice Approval ViewSum of all invoice amounts for the header level |
SELECT BUSINESS_UNIT , INVOICE_ID , SUM(INV_LINE_ADJAMT) , SUM(ADJ_VAT_AMT + ADJ_SALETX_AMT) , SUM(INV_LINE_ADJEXP) , SUM(INV_LINE_ADJAMT + INV_LINE_ADJEXP + ADJ_VAT_AMT + ADJ_SALETX_AMT) , SUM(ADJ_SP_MSP_FEE) , SUM(INV_LINE_ADJAMT + INV_LINE_ADJEXP + ADJ_VAT_AMT + ADJ_SALETX_AMT + ADJ_SP_MSP_FEE) , 0 , CURRENCY_CD , SUM(INV_LN_ADJAMT_BSE) , SUM(ADJ_VAT_AMT_BSE + ADJ_SALETX_AMT_BSE) , SUM(INV_LN_ADJEXP_BSE) , SUM(INV_LN_ADJAMT_BSE + INV_LN_ADJEXP_BSE + ADJ_VAT_AMT_BSE + ADJ_SALETX_AMT_BSE) , SUM(ADJ_SP_MSP_FEE_BSE) , SUM(INV_LN_ADJAMT_BSE + INV_LN_ADJEXP_BSE + ADJ_VAT_AMT_BSE + ADJ_SALETX_AMT_BSE + ADJ_SP_MSP_FEE_BSE) , 0 , CURRENCY_CD_BASE FROM PS_SPF_INVOICE_DTL WHERE INV_LINE_STATUS <> '8' GROUP BY BUSINESS_UNIT , INVOICE_ID, CURRENCY_CD, CURRENCY_CD_BASE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
3 | INV_LINE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Amount |
4 | TAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Amount |
5 | INV_EXP_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Expense Amount |
6 | TOTAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount |
7 | SP_MSP_FEE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
8 | SP_MSP_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee |
9 | INVOICE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Amount |
10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
11 | INV_LINE_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Invoice Line Amount |
12 | TAX_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Amount (base) |
13 | INV_EXP_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Expense Amount for Base Currency |
14 | TOTAL_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Estimated Total |
15 | SP_MSP_FEE_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee (Base Currency) |
16 | SP_MSP_TOTAL_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee (Base Currency) |
17 | INVOICE_AMOUNT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Amount in Base Currency |
18 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |