Skip to content

Commit

Permalink
March commit
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-nesterko committed Mar 12, 2024
1 parent 66ab951 commit 446b133
Show file tree
Hide file tree
Showing 579 changed files with 12,165 additions and 7,351 deletions.
2 changes: 1 addition & 1 deletion AD Applied Patches 11i/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AD Applied Patches R12-2/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AD Applied Patches/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AP Accounted Invoice Aging/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AP Cash Requirement/README.md

Large diffs are not rendered by default.

29 changes: 22 additions & 7 deletions AP Expenses/AP Expenses.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ aerha.description purpose,
case when aerha.source in ('Both Pay','CREDIT CARD') then aps.vendor_name end card_provider,
trunc(aerha.week_end_date) expense_report_date,
aerha.total expense_amount,
aerha.payment_currency_code currency,
aerha.default_currency_code currency,
gcck.concatenated_segments gl_account,
nvl(aerha.report_submitted_date,aerha.creation_date) report_submitted_date,
initcap(aerha.receipts_status) original_receipt_status,
aerha.receipts_received_date,
Expand All @@ -38,13 +39,25 @@ ap_web_expense_form.get_num_violation_lines(aerha.report_header_id) num_violatio
aerha.report_filing_number,
xxen_util.meaning(nvl2(aia.cancelled_date,'CANCELLED',aerha.expense_status_code),'EXPENSE REPORT STATUS',200) expense_status,
decode(aerha.workflow_approved_flag,'S','saved','I','implicit save','R','manager rejected','T','returned to preparer','M','manager approved','P','payables approved','A','automatically approved','W','withdrawn','Y','manager and payables approved','submitted') workflow_approved_status,
xxen_util.meaning(case when aerha.workflow_approved_flag in ('Y','A','M') then 'Y' end,'YES_NO',0) mgmt_reviewed_flag,
xxen_util.meaning(case when aerha.audit_code='AUTO_APPROVE' or aerha.workflow_approved_flag='A' then 'Y' end,'YES_NO',0) auto_approved_flag,
xxen_util.meaning(case when aerha.workflow_approved_flag in ('Y','A','P') or aerha.audit_code='AUTO_APPROVE' then 'Y' end,'YES_NO',0) ap_reviewed_flag,
xxen_util.meaning(decode(aia.payment_status_flag,'Y','Y'),'YES_NO',0) ap_status_paid_flag,
xxen_util.meaning(nvl2(aia.invoice_num,'Y',null),'YES_NO',0) ap_status_invoice_created_flag,
xxen_util.meaning(decode(decode(aia.payment_status_flag,'P','Y','N'),'Y','Y'),'YES_NO',0) ap_status_partially_paid_flag,
xxen_util.meaning(case when aerha.workflow_approved_flag in ('Y','A','M') then 'Y' end,'YES_NO',0) mgmt_reviewed,
xxen_util.meaning(case when aerha.audit_code='AUTO_APPROVE' or aerha.workflow_approved_flag='A' then 'Y' end,'YES_NO',0) auto_approved,
(select ppx.full_name from per_people_x ppx where aerha.expense_current_approver_id=ppx.person_id) current_approver,
xxen_util.meaning(nvl2(aerha.holding_report_header_id,'Y',null),'YES_NO',0) hold_flag,
xxen_util.meaning(case when aerha.workflow_approved_flag in ('Y','A','P') or aerha.audit_code='AUTO_APPROVE' then 'Y' end,'YES_NO',0) ap_reviewed,
xxen_util.meaning(nvl2(aia.invoice_num,'Y',null),'YES_NO',0) ap_invoice_created,
xxen_util.meaning(aia.payment_status_flag,'INVOICE PAYMENT STATUS',200) payment_status,
(
select
max(aca.check_date)
from
ap_invoice_payments_all aipa,
ap_checks_all aca
where
aia.invoice_id=aipa.invoice_id and
aipa.check_id=aca.check_id and
aca.void_date is null and
aca.stopped_date is null
) payment_date,
&lines_columns
&per_diem_columns
&proj_tasks_columns
Expand All @@ -54,6 +67,7 @@ gl_ledgers gl,
hr_operating_units hou,
ap_expense_report_headers_all aerha,
per_people_x ppx,
gl_code_combinations_kfv gcck,
ap_aud_queues aaq,
ap_suppliers aps,
ap_invoices_all aia,
Expand All @@ -66,6 +80,7 @@ where
aerha.set_of_books_id=gl.ledger_id and
hou.organization_id=aerha.org_id and
aerha.employee_id=ppx.person_id(+) and
aerha.employee_ccid=gcck.code_combination_id(+) and
aerha.vendor_id=aps.vendor_id(+) and
aerha.vouchno=aia.invoice_id(+) and
aerha.report_header_id=aaq.expense_report_id(+) and
Expand Down
4 changes: 2 additions & 2 deletions AP Expenses/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AP Intercompany Invoice Details/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AP Invoice Audit Listing/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AP Invoice Payments/README.md

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion AP Invoice Upload/AP Invoice Upload.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,40 @@ trunc(sysdate) gl_date,
'Fiscal Class' fiscal_classification,
'Business Category' business_category,
'Product Type' product_type,
'Product Category' product_category
'Product Category' product_category,
--
null invoice_attribute_category,
null invoice_attribute1,
null invoice_attribute2,
null invoice_attribute3,
null invoice_attribute4,
null invoice_attribute5,
null invoice_attribute6,
null invoice_attribute7,
null invoice_attribute8,
null invoice_attribute9,
null invoice_attribute10,
null invoice_attribute11,
null invoice_attribute12,
null invoice_attribute13,
null invoice_attribute14,
null invoice_attribute15,
null line_attribute_category,
null line_attribute1,
null line_attribute2,
null line_attribute3,
null line_attribute4,
null line_attribute5,
null line_attribute6,
null line_attribute7,
null line_attribute8,
null line_attribute9,
null line_attribute10,
null line_attribute11,
null line_attribute12,
null line_attribute13,
null line_attribute14,
null line_attribute15
from
q_dual
where
Expand Down
2 changes: 1 addition & 1 deletion AP Invoice Upload/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion AP Invoice on Hold/README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 446b133

Please sign in to comment.