ap(应付) | 值集名 | ||||||||
ap_batches_all | 发票批表 | AP_APPROVAL_STATUS | 发票审批工作流状态 | ||||||
BATCH_ID(PK) | 发票批标识符(ID) | Invoice batch identifier | |||||||
BATCH_NAME | 发票批名(唯一所执行的发票工作台) | Invoice batch name (uniqueness enforced by the Invoice workbench) |
|||||||
BATCH_DATE | 发票批日期 | Invoice batch date | |||||||
CONTROL_INVOICE_COUNT | 控制用户输入的发票数 | User entered control of number of invoices in batch | |||||||
CONTROL_INVOICE_TOTAL | 用户在批输入发票的发票金额共计控制 | User entered control of invoice amount total for invoices in batch |
|||||||
ACTUAL_INVOICE_COUNT | 当前不使用 | Not currently used | |||||||
ACTUAL_INVOICE_TOTAL | 当前不使用 | Not currently used | |||||||
INVOICE_CURRENCY_CODE | 发票货币代码,忽略供应商发货票货币(可以为空为多货币批) | Currency code of invoice,overrides supplier invoice currency | |||||||
PAYMENT_CURRENCY_CODE | 付款货币代码(币种)(必须有一个相关的固定利率的货币或相同INVOICE_CURRENCY_CODE) | Currency code of payment (must be an associated fixed–rate currency or same as INVOICE_CURRENCY_CODE) |
|||||||
PAY_GROUP_LOOKUP_CODE | 支付组 | ||||||||
BATCH_CODE_COMBINATION_ID | |||||||||
TERMS_ID | 付款条件 | ||||||||
INVOICE_TYPE_LOOKUP_CODE | 发票类型 | Default invoice type | |||||||
HOLD_LOOKUP_CODE | 暂挂ID | ||||||||
HOLD_REASON | 暂挂名 | ||||||||
DOC_CATEGORY_CODE | 默认顺序编号(凭单编号)文件类 | Default Sequential Numbering(voucher number) document category | |||||||
ORG_ID | 组织 | Organization identifier | |||||||
GL_DATE | GL日期 | GL Date to default to invoices PAYMENT_PRIORITY NULL NUMBER(2) Number representing payment priority used to default down to invoices and payment |
|||||||
PAYMENT_PRIORITY | 付款优先权 | PAYMENT_ PRIORITY | |||||||
ap_invoices_all | 发票表 | ||||||||
INVOICE_ID (PK) | 发票ID | ||||||||
VENDOR_ID | 供应商ID | ||||||||
INVOICE_NUM | 发票编号 | ||||||||
SET_OF_BOOKS_ID | 帐薄ID | ||||||||
INVOICE_CURRENCY_CODE | 发票的币种代码 | ||||||||
PAYMENT_CURRENCY_CODE | 付款货币代码 | ||||||||
PAYMENT_CROSS_RATE | 在发货票和付款之间的交换率 | ||||||||
INVOICE_AMOUNT | 发票金额 | ||||||||
VENDOR_SITE_ID | 供应商地点ID | ||||||||
AMOUNT_PAID | 已支付金额 | Amount paid | |||||||
DISCOUNT_AMOUNT_TAKEN | |||||||||
INVOICE_DATE | 发票日期 | ||||||||
SOURCE | 发票来源 | ||||||||
INVOICE_TYPE_LOOKUP_CODE | 发票类型 | ||||||||
DESCRIPTION | 发票说明 | ||||||||
BATCH_ID | 批ID | ||||||||
AMOUNT_APPLICABLE_TO_DISCOUNT | |||||||||
TAX_AMOUNT | 税额 | Tax amount | |||||||
TERMS_ID | 付款条件ID | Payment terms identifier | |||||||
TERMS_DATE | 付款条件日期 | ||||||||
PAYMENT_METHOD_LOOKUP_CODE | 付款方式 | Name of payment method | |||||||
PAY_GROUP_LOOKUP_CODE | 支付组 | ||||||||
ACCTS_PAY_CODE_COMBINATION_ID | |||||||||
PAYMENT_STATUS_FLAG | 付款标记(快速编码) | Flag that indicates if invoice has been paid (Y, N, or P) |
|||||||
CREATION_DATE | |||||||||
CREATED_BY | |||||||||
BASE_AMOUNT | 本位币(用在外币发票) | ||||||||
VAT_CODE | 税码 | ||||||||
LAST_UPDATE_LOGIN | |||||||||
EXCLUSIVE_PAYMENT_FLAG | |||||||||
PO_HEADER_ID | 订单头 | ||||||||
FREIGHT_AMOUNT | 运费 | ||||||||
GOODS_RECEIVED_DATE | |||||||||
INVOICE_RECEIVED_DATE | |||||||||
VOUCHER_NUM | |||||||||
APPROVED_AMOUNT | |||||||||
RECURRING_PAYMENT_ID | |||||||||
EXCHANGE_RATE | 汇率 | ||||||||
EXCHANGE_RATE_TYPE | 汇率类型 | ||||||||
EXCHANGE_DATE | 日期汇率 有效的,通常是会计 交易日期 |
||||||||
EARLIEST_SETTLEMENT_DATE | |||||||||
ORIGINAL_PREPAYMENT_AMOUNT | |||||||||
DOC_SEQUENCE_ID | |||||||||
DOC_SEQUENCE_VALUE | |||||||||
DOC_CATEGORY_CODE | |||||||||
ATTRIBUTE1 | |||||||||
… | |||||||||
ATTRIBUTE_CATEGORY | |||||||||
APPROVAL_DESCRIPTION | |||||||||
INVOICE_DISTRIBUTION_TOTAL | |||||||||
POSTING_STATUS | |||||||||
PREPAY_FLAG | |||||||||
AUTHORIZED_BY | |||||||||
CANCELLED_DATE | |||||||||
CANCELLED_BY | |||||||||
CANCELLED_AMOUNT | |||||||||
TEMP_CANCELLED_AMOUNT | |||||||||
PROJECT_ACCOUNTING_CONTEXT | |||||||||
USSGL_TRANSACTION_CODE | |||||||||
USSGL_TRX_CODE_CONTEXT | |||||||||
PROJECT_ID | |||||||||
TASK_ID | |||||||||
EXPENDITURE_TYPE | |||||||||
EXPENDITURE_ITEM_DATE | |||||||||
PA_QUANTITY | |||||||||
EXPENDITURE_ORGANIZATION_ID | |||||||||
PA_DEFAULT_DIST_CCID | |||||||||
VENDOR_PREPAY_AMOUNT | |||||||||
PAYMENT_AMOUNT_TOTAL | |||||||||
AWT_FLAG | |||||||||
AWT_GROUP_ID | 自动预扣税组的内部标识 | ||||||||
REFERENCE_1 | |||||||||
REFERENCE_2 | |||||||||
ORG_ID | |||||||||
PRE_WITHHOLDING_AMOUNT | |||||||||
GLOBAL_ATTRIBUTE_CATEGORY | |||||||||
GLOBAL_ATTRIBUTE1 | |||||||||
GLOBAL_ATTRIBUTE2 | |||||||||
……. | |||||||||
AUTO_TAX_CALC_FLAG | |||||||||
PAYMENT_CROSS_RATE_TYPE | |||||||||
PAYMENT_CROSS_RATE_DATE | 发票币种和付款币种之间的交叉汇率生效日期。 | ||||||||
PAY_CURR_INVOICE_AMOUNT | |||||||||
MRC_BASE_AMOUNT | |||||||||
MRC_EXCHANGE_RATE | |||||||||
MRC_EXCHANGE_RATE_TYPE | |||||||||
MRC_EXCHANGE_DATE | |||||||||
AWARD_ID | |||||||||
GL_DATE | 会计日期 | ||||||||
说明:快速编码说明(QuickCodes) | |||||||||
INVOICE_TYPE_LOOKUP_CODE(发票类型),快速编码类型:INVOICE TYPE;快速编码表:AP_LOOKUP_CODES | |||||||||
类型 | 中文说明 | 英文说明 | |||||||
AWT | 预扣税发票 | Withholding tax invoice | |||||||
CREDIT | 贷项通知单 | Credit memo | |||||||
DEBIT | 借项通知单 | Debit memo | |||||||
EXPENSE REPORT | 员工费用报表 | Employee expense report | |||||||
INTEREST | 利息发票 | Interest invoice | |||||||
MIXED | 混合型发票 | Mixed type invoice | |||||||
PREPAYMENT | 预付款项及预支款 | Prepayments and advances | |||||||
QUICKDEFAULT | PO的标准发票 | PO default standard invoice | |||||||
QUICKMATCH | 快速匹配标准发票 | QuickMatch standard invoice | |||||||
STANDARD | 标准发票 | Standard invoice | |||||||
PO PRICE ADJUST | PO 价格调整单据 | ||||||||
PAYMENT_METHOD_LOOKUP_CODE(付款方式),快速编码类型:PAYMENT METHOD;快速编码表:AP_LOOKUP_CODES | |||||||||
类型 | 中文说明 | 英文说明 | |||||||
CHECK | 支票付款 | Check | |||||||
CLEARING | 付款结清 | Clearing | |||||||
EFT | 电子付款方法 | Electronic | |||||||
WIRE | 电汇付款 | Wire | |||||||
PAYMENT_STATUS_FLAG(付款状态),快速编码类型:INVOICE PAYMENT STATUS;快速编码表:AP_LOOKUP_CODES | |||||||||
类型 | 中文说明 | 英文说明 | |||||||
N | 否(没有付清) | Not paid | |||||||
P | 部分(部分付清) | Partially paid | |||||||
Y | 是发(全部付清) | Fully paid | |||||||
SOURCE(发票来源),快速编码类型:SOURCE;快速编码表:AP_LOOKUP_CODES | |||||||||
类型 | 中文说明 | 英文说明 | |||||||
CREDIT CARD | 信用卡(旅行卡事务处理的发票) | Credit Card | |||||||
EDI GATEWAY | 从电子商务网关创建发票 | e–Commerce Gateway | |||||||
ERS | 按接收开票 | ERS | |||||||
INVOICE GATEWAY | 快速开票 | Invoice Gateway | |||||||
Intercompany | 公司间(从 Oracle Receivables 创建公司间发票) | Intercompany | |||||||
Oracle Assets | 从 Oracle Assets 创建发票 | Oracle Assets | |||||||
Oracle Project Accounting | 从 Oracle 项目会计创建发票 | Oracle Project Accounting | |||||||
Oracle Property Manager | 从 Oracle Property Manager 创建发票 | Oracle Property Manager | |||||||
PA_IC_INVOICES | Oracle Projects 公司间发票 | Oracle Projects InterCompany Invoices |
|||||||
PA_IP_INVOICES | Oracle Projects 项目间发票 | Oracle Projects Inter–Project Invoices |
|||||||
RECURRING INVOICE | 由经常性发票创建 | Recurring Invoice | |||||||
RTS | 向供应商退货 | Return to Supplier | |||||||
SelfService | 使用 Oracle Internet Expenses 创建发票 | Self–Service Applications | |||||||
XpenseXpress | 从应付款管理系统费用报表创建发票 | Payables Expense Reports | |||||||
ap_invoice_distributions_all | 发票分配表(发票行) | ||||||||
ACCOUNTING_DATE | 会计日期 | ||||||||
ACCRUAL_POSTED_FLAG | |||||||||
ASSETS_ADDITION_FLAG | |||||||||
ASSETS_TRACKING_FLAG | |||||||||
CASH_POSTED_FLAG | |||||||||
DISTRIBUTION_LINE_NUMBER (PK) | |||||||||
DIST_CODE_COMBINATION_ID | |||||||||
INVOICE_ID (PK) | |||||||||
LINE_TYPE_LOOKUP_CODE | |||||||||
PERIOD_NAME | |||||||||
SET_OF_BOOKS_ID | |||||||||
ACCTS_PAY_CODE_COMBINATION_ID | |||||||||
AMOUNT | |||||||||
BASE_AMOUNT | |||||||||
BASE_INVOICE_PRICE_VARIANCE | |||||||||
BATCH_ID | |||||||||
DIST_MATCH_TYPE(付款状态),快速编码类型:DIST_MATCH_TYPE;快速编码表:AP_LOOKUP_CODES | |||||||||
IP | |||||||||
IR | |||||||||
Null | |||||||||
OR | |||||||||
FINAL_MATCH_FLAG(付款状态),快速编码类型:FINAL MATCH CODE;快速编码表:AP_LOOKUP_CODES | |||||||||
D | 完成 | ||||||||
N | 否 | ||||||||
Y | 是 | ||||||||
LINE_TYPE_LOOKUP_CODE(发票类型),快速编码类型:INVOICE DISTRIBUTION TYPE;快速编码表:AP_LOOKUP_CODES | |||||||||
AWT | 预扣税 | 预扣税分配行 | |||||||
FREIGHT | 运费 | 发票运费行 | |||||||
ICMS | ICMS | ICMS | |||||||
IPI | IPI | IPI | |||||||
ITEM | 项 | 已采购货物或服务行 | |||||||
MISCELLANEOUS | 杂项 | 杂项费用 | |||||||
PREPAY | 预付款 | 预付款分配行 | |||||||
TAX | 税 | 发票税行 | |||||||
ap_payment_schedules_all | 付款计划 | ||||||||
INVOICE_ID (PK) | |||||||||
PAYMENT_CROSS_RATE | |||||||||
PAYMENT_NUM (PK) | |||||||||
AMOUNT_REMAINING | |||||||||
DISCOUNT_DATE | |||||||||
DUE_DATE | |||||||||
FUTURE_PAY_DUE_DATE | |||||||||
GROSS_AMOUNT | |||||||||
HOLD_FLAG | |||||||||
PAYMENT_METHOD_LOOKUP_CODE | |||||||||
PAYMENT_PRIORITY | |||||||||
PAYMENT_STATUS_FLAG | |||||||||
SECOND_DISCOUNT_DATE | |||||||||
THIRD_DISCOUNT_DATE | |||||||||
BATCH_ID | |||||||||
DISCOUNT_AMOUNT_AVAILABLE | |||||||||
SECOND_DISC_AMT_AVAILABLE | |||||||||
THIRD_DISC_AMT_AVAILABLE | |||||||||
DISCOUNT_AMOUNT_REMAINING | |||||||||
ORG_ID | |||||||||
EXTERNAL_BANK_ACCOUNT_ID | |||||||||
INV_CURR_GROSS_AMOUNT | |||||||||
ap_invoice_payment_history_v | 付款历史记录(视图) | 已付款数据 | |||||||
ap_unapply_prepays_fr_prepay_v | 标准订单核销预付款发票的数据 | 核销几个预付款发票就有几条核销数据(是用标准发票来核销预付款发票) | |||||||
invoice_id | 标准发票ID | ||||||||
PREPAY_AMOUNT_APPLIED | 核销金额 | ||||||||
prepay_id | 预付款发票ID | ||||||||
ACCOUNTING_DATE | 会计日期 | ||||||||
ap_check_stocks_all | 付款单据表 | ||||||||
ap_checks_all | 单据付款表 | 实际付款 | |||||||
AMOUNT | 付款金额 | Payment amount | |||||||
BANK_ACCOUNT_ID | 银行帐户标识符 | Bank account identifier | |||||||
BANK_ACCOUNT_NAME | 银行帐户名称 | Bank account name | |||||||
CHECK_DATE | |||||||||
CHECK_ID (PK) | |||||||||
CHECK_NUMBER | |||||||||
CURRENCY_CODE | 币种 | ||||||||
PAYMENT_METHOD_LOOKUP_CODE | |||||||||
PAYMENT_TYPE_FLAG | |||||||||
ADDRESS_LINE1 | |||||||||
ADDRESS_LINE2 | |||||||||
ADDRESS_LINE3 | |||||||||
CHECKRUN_NAME | |||||||||
CHECK_FORMAT_ID | |||||||||
CHECK_STOCK_ID | |||||||||
CITY | |||||||||
COUNTRY | |||||||||
STATUS_LOOKUP_CODE | VOIDED--撤销,NEGOTIABLE--可用的(议付) | ||||||||
VENDOR_NAME | |||||||||
VENDOR_SITE_CODE | |||||||||
ZIP | |||||||||
BANK_ACCOUNT_NUM | |||||||||
BANK_ACCOUNT_TYPE | |||||||||
BANK_NUM | |||||||||
CHECK_VOUCHER_NUM | |||||||||
CLEARED_AMOUNT | |||||||||
CLEARED_DATE | |||||||||
DOC_CATEGORY_CODE | |||||||||
DOC_SEQUENCE_ID | |||||||||
DOC_SEQUENCE_VALUE | |||||||||
ORG_ID | |||||||||
VENDOR_ID | |||||||||
VENDOR_SITE_ID | |||||||||
STAMP_DUTY_AMT | 印花税税收金额全球化 | ||||||||
STAMP_DUTY_BASE_AMT | 印花税税率的本位币金额全球化 | ||||||||
说明:快速编码说明(QuickCodes) | |||||||||
PAYMENT_METHOD_LOOKUP_CODE(付款方式),快速编码类型:PAYMENT METHOD;快速编码表:AP_LOOKUP_CODES | |||||||||
CHECK | 支票 | ||||||||
CLEARING | 结清 | ||||||||
EFT | 电子 | ||||||||
WIRE | 电汇 | ||||||||
ap_bank_branches | 银行头表 | ||||||||
BANK_BRANCH_ID (PK) | |||||||||
ap_bank_accounts_all | 银行帐号信息表 | ||||||||
BANK_ACCOUNT_ID (PK) | |||||||||
ap_invoice_payments_all | 付款核销表(付款表)对某个发票进行付款,这张表记录了哪些付款支付了哪些发票 | 情况比较复杂:比如两个用户合并,应收应付差额,预付款 | |||||||
CHECK_ID | 付款收据号 | ||||||||
INVOICE_ID | 发票 | ||||||||
INVOICE_PAYMENT_ID | |||||||||
PAYMENT_NUM | |||||||||
AMOUNT | |||||||||
POSTED_FLAG | |||||||||
INVOICE_BASE_AMOUNT | |||||||||
PAYMENT_BASE_AMOUNT | |||||||||
INVOICE_PAYMENT_TYPE | |||||||||
ORG_ID | |||||||||
ap_accounting_events_all | 会计事件表(些表为区分会计分录中是发票分录还是付款分录) | ||||||||
ap_ae_headers_all | 会计分录头表 | ||||||||
AE_HEADER_ID | |||||||||
ACCOUNTING_EVENT_ID | |||||||||
AE_CATEGORY | 会计分录类别 | ||||||||
PERIOD_NAME | 会计期间名称 | ||||||||
ORG_ID | |||||||||
ap_ae_lines_all | 会计分录行表 | ||||||||
AE_LINE_ID | |||||||||
AE_HEADER_ID | |||||||||
AE_LINE_NUMBER | |||||||||
AE_LINE_TYPE_CODE | |||||||||
CODE_COMBINATION_ID | |||||||||
CURRENCY_CODE | |||||||||
CURRENCY_CONVERSION_TYPE | |||||||||
CURRENCY_CONVERSION_DATE | |||||||||
CURRENCY_CONVERSION_RATE | |||||||||
ENTERED_DR | |||||||||
ENTERED_CR | |||||||||
ACCOUNTED_DR | |||||||||
ACCOUNTED_CR | |||||||||
ORG_ID | |||||||||
ap_holds_all | 暂挂 | ||||||||
AP_HOLD_CODES | 暂挂代码 | ||||||||
AP_TERMS_TL | 付款条件头 | ||||||||
AP_TERMS_LINES | 付款条件行 | ||||||||
ap_chrg_allocations_all | 分配对应的费用 | ||||||||
AP_UNAPPLY_PREPAYS_V | 核销金额(视图) | 核销发票的数据放在该表内 | |||||||
AP_TAX_CODES_ALL | 税码表 | ||||||||
ap_invoices_interface | AP头接口表 | ||||||||
gl_date | 总账日期 | ||||||||
group_id | 发票批号 | ||||||||
invoice_amount | 发票金额 | ||||||||
invoice_currency_code | 发票币种 | ||||||||
invoice_date | 发票日期 | ||||||||
invoice_id | 发票ID | ||||||||
invoice_num | 发票号 | ||||||||
invoice_type_lookup_code | 发票类型代码 | ||||||||
org_id | 经营组织ID | ||||||||
payment_currency_code | 支付币种 | ||||||||
payment_method_lookup_code | 供应商付款方式 | 取自po_vendor_sites_all | |||||||
source | 发票来源 | ||||||||
terms_date | 条款日期 | ||||||||
terms_id | 条款ID | ||||||||
vendor_id | 供应商ID | ||||||||
vendor_site_id | 供应商地点 | ||||||||
Description | 描述 | ||||||||
doc_category_code | 单据类别 | ||||||||
exchange_rate | 汇率 | ||||||||
exchange_rate_type | 汇率类型 | ||||||||
exchange_date | 汇率日期 | ||||||||
GLOBAL_ATTRIBUTE_CATEGORY | 为您要导入的说明性弹性域信息输入说明性弹性域类别。 | ||||||||
SOURCE | 发票数据的来源 | ||||||||
AP_INVOICE_LINES_INTERFACE | AP行接口表 | ||||||||
INVOICE_ID | |||||||||
INVOICE_LINE_ID | |||||||||
LINE_NUMBER | |||||||||
LINE_TYPE_LOOKUP_CODE | |||||||||
LINE_GROUP_NUMBER | |||||||||
AMOUNT | |||||||||
ACCOUNTING_DATE | |||||||||
DESCRIPTION | |||||||||
TAX_CODE | |||||||||
AMOUNT_INCLUDES_TAX_FLAG | |||||||||
PRORATE_ACROSS_FLAG | |||||||||
PO_HEADER_ID | |||||||||
PO_NUMBER | |||||||||
PO_LINE_ID | |||||||||
PO_LINE_NUMBER | |||||||||
PO_LINE_LOCATION_ID | |||||||||
PO_SHIPMENT_NUM | |||||||||
PO_DISTRIBUTION_ID | |||||||||
PO_DISTRIBUTION_NUM | |||||||||
PO_UNIT_OF_MEASURE | |||||||||
PO_RELEASE_ID | |||||||||
RELEASE_NUM | |||||||||
INVENTORY_ITEM_ID | |||||||||
ITEM_DESCRIPTION | |||||||||
SHIP_TO_LOCATION_CODE | |||||||||
QUANTITY_INVOICED | |||||||||
UNIT_PRICE | |||||||||
FINAL_MATCH_FLAG | |||||||||
DISTRIBUTION_SET_ID | |||||||||
DISTRIBUTION_SET_NAME | |||||||||
DIST_CODE_CONCATENATED | |||||||||
DIST_CODE_COMBINATION_ID | |||||||||
BALANCING_SEGMENT | |||||||||
COST_CENTER | |||||||||
ACCOUNT | |||||||||
AWT_GROUP_ID | |||||||||
以下列出了一些AP头接口导入数据前需要验证的数据 1.经营组织ID,验证是否存在于ERP系统中并且是否有效. 2.发票币种(invoice_currency_code ),验证方法跟我介绍GL Interface一样。 3.供应商付款方式(payment_method_lookup_code),验证是否存在于ERP中并且有效,该信息存在表po_vendor_sites_all中. 4.发票来源(source)验证导入的类型是否存在并且有效,该信息存在于表Ap_Lookup_Codes中. 5.条款(terms_id),验证是否存在ERP中,并且判定是否有效,该数据存在表AP_TERMS中. 6.供应商(vendor_id),验证导入的供应商是否存在并且有效,数据存在于表PO_VENDORS总 7.供应商地点(vendor_site_id),验证导入的供应商地点是否存在并且有效,数据存在于表PO_VENDOR_SITES_ALL中. |
|||||||||
ap_invoice_lines_interface | AP接口行表 | ||||||||
invoice_line_id --行ID | |||||||||
line_number --行号 | |||||||||
line_type_lookup_code --行类型 | |||||||||
amount --发票金额 | |||||||||
accounting_date --会计结算日期 | |||||||||
dist_code_combination_id --帐户 | |||||||||
org_id--组织ID | |||||||||
Ap_Lookup_Codes | 发票来源 | ||||||||
AP_TERMS | 付款条件 | ||||||||
接口行表需要验证的是:dist_code_combination_id、org_id、line_type_lookup_code 其中line_type_lookup_code在视图AP_LOOKUP_CODES里进行验证。 | |||||||||
预付款和发票的关联 select * FROM ap_lookup_codes l1, ap_invoices_all i, ap_payment_schedules_all aps WHERE i.cancelled_date IS NULL AND aps.invoice_id = i.invoice_id AND l1.lookup_type = 'INVOICE TYPE' and i.invoice_type_lookup_code = 'PREPAYMENT' AND l1.lookup_code = i.invoice_type_lookup_code |
|||||||||
发票类型 | |||||||||
CREDIT(贷项通知单) | |||||||||
STANDARD(标准发票) | |||||||||
EXPENSE REPORT(员工费用报表) | |||||||||
PREPAYMENT(预付款和预支款) | |||||||||
DEBIT | |||||||||
ap_invoices_pkg.get_approval_status(ai.invoice_id, ai.invoice_amount, ai.payment_status_flag, ai.invoice_type_lookup_code)--获得发票状态 |
|||||||||
发票状态:approval_status_lookup_code | |||||||||
UNAPPROVED--未验证 | |||||||||
FULL--已全部核销(预付款) | |||||||||
UNPAID--未付(预付款) | |||||||||
AVAILABLE可用(预付款)-- 已经核销一部分还有一部分钱没有核销 | |||||||||
APPROVED--已验证(正常发票) | |||||||||
NEEDS REAPPROVAL需要重新验证(正常发票) | |||||||||
select | |||||||||
aas.TRX_NUMBER_DISPLAYED,--付款收据编号CHECK_NUMBER | |||||||||
aas.TRX_HDR_ID,--付款ID,CHECK_ID | |||||||||
aas.TRX_NUMBER_N,--CHECK_NUMBER | |||||||||
aas.TRX_LINE_NUMBER,--分配行ID,distribution_line_number | |||||||||
aas.APPLIED_TO_TRX_HDR_ID,--发票ID,invoice_id | |||||||||
aas.APPLIED_TO_TRX_HDR_NUMBER_DISP--发票编号 | |||||||||
aas.APPLIED_TO_TRX_HDR_NUMBER_C | |||||||||
from ap_ael_sl_pay_v aas where aas.APPLIED_TO_TRX_HDR_NUMBER_C ='YF000053' | |||||||||