Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#IRP-580 CN/DN Aging #2729

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,36 +98,6 @@ EndFunction
Function R5011B_CustomersAging_DebitNote() Export
Return
"SELECT
| VALUE(AccumulationRecordType.Receipt) AS RecordType,
| Transactions.Period,
| Transactions.Company,
| Transactions.Branch,
| Transactions.Currency AS Currency,
| Transactions.Agreement AS Agreement,
| Transactions.Partner AS Partner,
| Transactions.Ref AS Invoice,
| Transactions.Period AS PaymentDate,
| SUM(Transactions.Amount) AS Amount,
| UNDEFINED AS AgingClosing
|INTO R5011B_CustomersAging
|FROM
| Transactions AS Transactions
|WHERE
| Transactions.IsCustomer
| AND Transactions.IsPostingDetail_ByDocuments
|GROUP BY
| Transactions.Period,
| Transactions.Ref,
| Transactions.Agreement,
| Transactions.Company,
| Transactions.Branch,
| Transactions.Currency,
| Transactions.Partner,
| VALUE(AccumulationRecordType.Receipt)
|
|UNION ALL
|
|SELECT
| CASE
| WHEN OffsetOfAging.RecordType = VALUE(Enum.RecordType.Receipt)
| THEN VALUE(AccumulationRecordType.Receipt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,6 @@ EndFunction
Function R5012B_VendorsAging_CreditNote() Export
Return
"SELECT
| VALUE(AccumulationRecordType.Receipt) AS RecordType,
| Transactions.Period AS PaymentDate,
| Transactions.Period AS Period,
| Transactions.Company,
| Transactions.Branch,
| Transactions.Currency,
| Transactions.Partner,
| Transactions.Agreement,
| Transactions.BasisDocument AS Invoice,
| SUM(Transactions.Amount) AS Amount,
| UNDEFINED AS AgingClosing
|INTO R5012B_VendorsAging
|FROM
| Transactions AS Transactions
|WHERE
| Transactions.IsVendor
| AND Transactions.IsPostingDetail_ByDocuments
|GROUP BY
| Transactions.Period,
| Transactions.Company,
| Transactions.Branch,
| Transactions.Currency,
| Transactions.Partner,
| Transactions.Agreement,
| Transactions.BasisDocument,
| VALUE(AccumulationRecordType.Receipt)
|
|UNION ALL
|
|SELECT
| CASE
| WHEN OffsetOfAging.RecordType = VALUE(Enum.RecordType.Receipt)
| THEN VALUE(AccumulationRecordType.Receipt)
Expand Down