|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
select employee_id from fnd_user t where t.user_name='用户登录用户名';
--已报销开票
select x.invoice_num 报销单号,
nvl(x.week_end_date, x.creation_date) 填报日期,
x.report_submitted_date 提交日期,
x.description 说明,
aia.invoice_num 发票号,
aia.invoice_amount 开票金额,
aia.amount_paid 已付金额
from ap.ap_expense_report_headers_all x, ap.ap_invoices_all aia
where x.employee_id =替换为你要查的employee_id
and x.report_header_id = aia.reference_key1
and aia.product_table = 'AP_EXPENSE_REPORT_HEADERS_ALL'
order by 1;
select x.invoice_num 报销单号,
nvl(x.week_end_date, x.creation_date) 填报日期,
x.report_submitted_date 提交日期,
x.description 说明,
aia.invoice_num 发票号,
aia.invoice_amount 开票金额,
aia.amount_paid 已付金额,
y.distribution_line_number 行号,
y.item_description 费用类型,
y.submitted_amount 提交金额,
y.amount 实报金额, --财务可能会修改金额
y.justification 行备注,
y.start_expense_date 开始日期,
y.end_expense_date 结束日期
from ap.ap_expense_report_headers_all x,
ap.ap_expense_report_lines_all y,
ap.ap_invoices_all aia
where x.employee_id = 替换为你要查的employee_id
and x.report_header_id = y.report_header_id
and x.report_header_id = aia.reference_key1
and aia.product_table = 'AP_EXPENSE_REPORT_HEADERS_ALL'
and nvl(y.itemization_parent_id, 0) <> -1
-- and y.amount<>y.submitted_amount
order by 1, y.distribution_line_number;
该贴已经同步到 纵横四海的微博 |
|