AR AGING PROJECT!
Hi All,
Thanks in advance.
I am working on AR Aging project.
This is the specification I got from the client. Any one who is aware of this case & activity can please provide the information it would be great help for me.
Process flow on the automatic ETL (process chains, infopackages, program, server directory structure), you can use the UML-Use Case & Activity Diagram methodology if youu2019re familiar.
Design of process chains, infopackages for thr R/3 extraction, specifying the frequency of the extract, preferable daily.
Design of the process chains, infopackages for the Non-R/3 extraction, programs to pick out the each file sequentially to process etc.
If 10 files are in the BW server directory, do you autoload the 10 files to ODS first, then activate the 10 requests and update the infocube as a single request OR do you load 1 file into ODS, activate the request and load the file to infocube, then proceed to the next file
Hi
i am running this
Declare @date1 As Date
Set @date1= '2011-08-03 00:00:00.000'
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)>=0 and DateDiff(day, T0.DueDate,@date1)<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)>30 and DateDiff(day, T0.DueDate,@date1)<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)>60 and DateDiff(day, T0.DueDate,@date1)<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)>90 and DateDiff(day, T0.DueDate,@date1)<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,@date1)>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > @date1) AND T0.RefDate <= @date1 AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1
But can not understand what balance is coming. If i make Incoming payment (partial) for one doc, it is not coming at all.
The balances what are coming under 0-30, 31-60 etc are they the remaining bl to be paid by customer?
then for one open invoice if i do one incoimg partial payment why is it not coming with rest pending amount?
and how can i add more columns like mentioned above?
please help
Similar Messages
-
Oracle Projects Differences from 11i to R12
Hello All,
Currently we are upgrading from 11.5.10.2 to R 12.1.3
We have oracle projects implemented in 11i.
I am researching to get the differences occurred in oracle projects functional and technical from 11i to R12
It will be a great help to us if we could get some documents or a link which shows the differences.
Thanks and Regards,
Ankit VishwakarmaProject new features
Oracle Project Foundation
New Concurrent Process
ADM: Purge Obsolete Projects Data
Oracle Project Costing
Federal Budgetary Accounting for Project Expenditures via Subledger Accounting
Contingency Worker Clearing Projects to allow CWK to charge multiple projects
Additional Project Information in Oracle Time and Labor (Project Name and Task Name)
Federal Budgetary Accounting for Project Revenue
Additional journal entries are available in Subledger Accounting for the required Federal Budgetary entries.
Date Effective Funds Consumption
Project Type option that requires cost and event transaction dates to fall within the agreement start and end dates.
Transactions are only billed against the agreement if the entire transaction amount can be funded (no partial recognition) for both revenue and invoicing.
Without enabling this option, revenue generation supports partial billing for transactions.
New Parameters for MGT: Invoice Review
Project Status
Project Closed After Date
Project Range
New Parameters for MGT: Unbilled Receivables Aging
Project Status
Project Closed After Date
Project Range
Oracle Project Management New Audit Process for Project Performance Reporting Setup
AUD: Project Performance Reporting Setup
New Parameters for Refresh Project Performance Data Process
Actual or All Amounts (Plan and Actual)
Workplan Version
Financial Plan Version
Workplan EnhancementsAbility to Delete Published Workplan Versions (except the latest published version, baseline version, and workplan versions included in a program hierarchy) Usability Enhancements
Update Work Breakdown Structure page is now obsolete.
View, maintain, and update a workplan structure from the Update Tasks page.
Where no latest published workplan version exists, the current working version displays on the Update Tasks page when navigating to the Workplan Tasks.
Indent or outdent multiple workplan tasks in a single step.
Confirmation, information, and warning messages appear on HTML pages during Apply Latest Progress as well as the Submit Progress processes. Messages include status information during processing and the availability of the latest progress information.
New Public API for Creating, Maintaining, and Deleting Programs New set of public API procedures:
Designate a project as a program and indicate whether projects linked to the program can belong to multiple programs.
Create links from a program to one or more projects
Update links from a program to one or more projects
Delete links from a program to one or more projects
Budgeting And Forecasting Enhancements Enhanced Automatic Calculation and Derivation Logic
For plan lines that do not have a specified a quantity, the amount is no longer copied to the quantity field with the rate value set to 1.
Rate now has a lower precedence than quantity and amount in automatic calculations. The rate will be re-derived when the quantity, rate and amount are entered at the same time for a plan line.
When the burden multiplier is overridden by updates to the raw cost or burden cost, subsequent calculations of the burden cost will use the override burden multiplier. The same is true when the markup percent is updated by changes to plan line components: the override markup percentage will be used in revenue calculations.
Enhanced Handling of Override Rates on Budget / Forecast Lines
Override rates for a planning transaction on Edit Budget and Edit Forecast pages.
o Raw Cost Rateo Budened Cost Rateo Bill Rate
Override rates are applied to all existing and new periodic lines for the planning transaction.
Average rates fields on these pages are now disabled for entry and are used for display only.
Simplified Addition of Planning Elements and Resources
New but unbudgeted tasks and resources can be added to a budget or forecast version.
Add either all new tasks and planning resources or new tasks only to the current plan version.
Self Service Expenditure Inquiry
Ability to drill into expenditure details from the Financials tab.
Reporting Pack for Generation and Distribution of XML Publisher Reports
A reporting pack is a set of report templates and recipients by project role.
The Generate Reporting Pack concurrent program emails the reports generated from the report templates based on pre-defined intervals.
The report template establishes each report’s layout and content.
New reports templates are configured using XML Publisher tools.
New or modified reports can be added to an existing reporting pack or be used to create an entirely new report set.
Predefined data definition files that contain XML tags for performance measures and project data are provided.
Predefined Reports:
Project Change Document Report
Project Committed Cost Report
Project Cost Detail Report
Project Cost Labor Report
Project Cost Summary Report
Project Earned Value Report
Project Financial Summary Report
Project Forecast Summary Report
Project Revenue At Risk Report
Budget Integration with Federal Budget Execution and/or 3rd Party Budget
The budget integration workflow supports integration with the Federal Budget Execution module..
The workflow can be customized to interface budget lines to external budgeting applications.
Microsoft Project 2007 Certification
Integration with Microsoft Project 2007 is supported.
Project Performance Reporting: Additional MeasuresYTD, QTD and At Completion calculated measures are available on the following pages:
Performance Overview Period-to-Date
Summary/Analysis
Task Summary/Analysis Resource Summary/Analysis
Project Performance Reporting: Inter-Project Revenue / Billing AmountsInter project revenue / billing amounts are available on the following pages:
Project List View Workplan Cost
Exception Reporting Performance Overview
Task Summary/Analysis Resource Summary/Analysis
Period-to-Date Summary/Analysis
Supplier Cost DashboardSubcontractor Payment ControlsSupport for Pay when Paid Scenarios
A new “Pay when Paid” payment term for subcontracts automatically places holds on all subcontractor invoices under that subcontract until the corresponding customer payment is received.
Subcontract Payment Controls workbench allows project manager to manage the holds, with visibility into both the customer invoices and the related subcontractor invoices.
Workflow notifications about the receipt of the customer payment allow the project manager to automatically or manually release the subcontract invoice.
Associations between the customer invoices and the subcontractor invoices may be automatically maintained based on the billing of project expenditures for cost-plus contracts, or may be manually maintained for fixed price contracts.
Payment Controls for Subcontract Deliverables
Support for the tracking and monitoring of subcontract deliverables that place automatic holds on subcontractor invoices in the case of noncompliance.
Oracle Procurement Contracts allow a subcontract administrator to specify payment impact controls that will take effect when a subcontract deliverable is not met.
From the Subcontractor Payment Controls workbench, the project manager can view a checklist of the all the current subcontract deliverables, to assist in evaluating the subcontractor status prior to releasing monthly progress payments.
Oracle Project Resource ManagementResource Search Enhancements
Resource Search by Email Address
Resource Search by Person Type
Streamlined Navigation on Staffing Home
Cross Validation of Project and Assignment Dates
Requirement start dates are equal to or greater than the project start date and less than the project end date and that finish dates are equal to or less than the project end date but greater than the project start date.
Assignments cannot be added beyond the project end date.
A project team role end date cannot be beyond the project end date. If the roles are created before the project end dates are entered, users will receive an error if they later try to enter an end date that is earlier than the end date for existing roles.
When project transaction dates are moved corresponding assignment dates are validated against the new project dates. If the new project transaction dates fall outside the dates for existing assignments, users are given an option to shift the assignment dates or cancel the date adjustment.
Defaulting of Work Patterns’ From and To Dates
Work pattern from and to dates will default from the requirement start and end dates.
Improved Exception Handling of Maintain Project Resources Process
PRC: Maintain Project Resources delivers improved exception handling and notification when it encounters errors while processing employee records.
New Public APIs for Resource ManagementThe new PJR APIs fall into the following four categories:
Requirement Public APIs
Assignment Public APIs
Candidate Public APIs
Competence Public APIs
Organization Authority: Obsolete Forecast Authority
Removes the forecast authority functionality from the organization authority form
Removes existing security data relating to forecast authority.
Replaces the PJR forecast functionality with the new HTML based forecasting functionality. The new forecasting functionality has its own security mechanism and does not honor the old forecast authority model.
Improves the performance of security calls to organization authority because the existing security data is being removed.
Oracle Grants AccountingAward Budgeting Enhancements Budget period validations
Budget periods will not be validated across award budgets when those awards fund a single project.
Flexibility to establish award budgets based on the actual duration of the award, while not being confined based on the existing budgets already established for the project.
Automatic summarization of project budgets
With the new budget period validations, automatically summarize to a project budget viewable in Project Status Inquiry.
Two profile options have been added to identify the budget entry methods that will be used to summarize the project budgets.
Budget Line Sorting Option
Sort budget lines by Resource name, or by effective dates for budgets with date range periods. Provides the flexibility to view the budget lines by period or by budgeted resource.
Award Status Inquiry Enhancements View by budget period
Allows the Find Award Status window to be limited to a single period, range of periods, or inception to date for a particular award.
Reflects the budget periods entered on the award budget.
GL and PA Date Parameters on Find Expenditure Items window
GL and PA date parameters have been added to the Find Expenditure Items window.
GL Date Parameters on Find Commitments window
GL Date parameters have been added to the Find Commitments window.
KKG -
Cannot Open Existing Files (Projects) in Garageband
GB projects created only weeks ago are not listed in 'recent projects' so I click on 'Open an Existing File'. I can see the file but the Open button remains shaded. I tried opening by clicking Control/Open in Garageband - I get message "Output.AIF could not be opened. Garageband cannot open files in the AIFF-C audio format. I'm confused by this because I created these projects just weeks ago in Garageband but just had not opened them recently. I've had no upgrades performed software or otherwise. Naturally I would like to open and continue working these aging projects that I've already spent hours creating. I am hopeful someone has an easy fix for me.
Thank you.Thank you for responding Christopher, I really appreciate your time.
Turns out I was able to open via viewer, though I had done same earlier, this time it worked and opened the project window. I'm concerned about GB becoming unstable however, as I used to be able to open projects that aged off the 'recent projects' window directly by clicking 'open other existing files'. So, for now I will live with using the viewer. At least I didn't lose those hours of composition. I have ordered iLife '11, hopefully this will serve to enhance GB and create more stability.
Thank you again for helping me.
Rick -
Converting jsp to OA Extension
Hello, everyone.
I have created 3 jsp pages that call some PL/SQL packages. These packages calculate estimates for Social Security, 401k savings, and Pension allowance at a user-entered retirement date, mainly using "get" and "set" procedures and functions. The displays are quite simple; I put most of my effort in getting the calculations right in the PL/SQL packages. Even so, I find it to be quite powerful in running various "what-if" scenarios, varying such things as 401k contribution percent, etc.
My task now is to implement this system as an extension to Self-service (probably with considerable consulting help). I am wondering what the appropriate structure is to use. What I envision is some global fields at the top to set retirement age, projected yearly wage increase %, etc, with tabs for Social Security, 401k, and Pension, with maybe a 4th tab showing totals, graphs, etc.
Does anyone have any ideas on sample code, tutorials, etc that might get me started? In particular, I can't see where the calls to the PL/SQL packages will go. In the Application Module?
Thanks for any suggestions or comments. My skills in OA Extension don't go much beyond the "Hello World" lab, so feel free to spell out any complexities.
--DaveYour page layout design should be according to the business requirement, as for the technical design, you need to call your PL/Sql objects from EOImpl, that is the correct place for business logic.
Thanks
Tapash -
Project Wise -- Vendor Liabilities Aging
Hello Experts,
How to see project wise "Vendor Liabilities Aging" report. If it's available through query Please share the query. Please help me in this issue.
Regards,
Umamahesh.HI
When you click the "Vendor Liabilities Aging",you will get a selection criteria window..
After selecting the criteria and clicking 'OK' will get you a report right..
When you get the report,click "Form Settings" window and in 'Table format',you will find 'Project Code' which made invisible by default,so you make it visible by clicking the 'Visible' check box..and click ok...
Then the project code also appear in that report...
Got it?..revert me for any clarifications... -
Aging report - detailed needs invoice project code
Dear All,
Would it be possible for us to have project code (on A/R invoice header) on Aging report - detailed print layout? I found all fields in Aging report - detailed PLD are sys var. Is there a way for us to figure out which sys var is for project code of the invoice? Thanks a lot.
Regards,
YukaUnfortunately you can't, you have to recreate it using crystal. In all SAP std reports you only able to show/print what it already shows.
-
Hi all
Is it possible to change the current BP Project to show INV1.Project instead?
USE [SBODemoSG]
GO
/****** Object: StoredProcedure [dbo].[ARAgingByCustomerNameLC] Script Date: 08/06/2014 14:03:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[ARAgingByCustomerNameLC]
@DATETO DATETIME,
@CARDCODEFM NVARCHAR(15),
@CARDCODETO NVARCHAR(15),
@CARDNAMEFM NVARCHAR(15),
@CARDNAMETO NVARCHAR(15),
@SLPNAMEFM NVARCHAR(15),
@SLPNAMETO NVARCHAR(15)
AS
DECLARE @ISCREDIT NVARCHAR(2),
@ISDEDIT NVARCHAR(2)
SET @ISCREDIT = 'C'
SET @ISDEDIT = 'D'
EXEC [AF_ARAging] '20091231','0','ZZZZZZ'
--************ CUSTOMER AGING REPORT FROM SAP BY USING MS SQL Profiler ***********--
SELECT CUST.CARDCODE, CUST.CARDNAME, OSLP.SLPCODE, OSLP.SLPNAME, CUST.ADDID, CUST.CreditLine, CUST.Balance, CUST.[GroupNum], CUST.PYMNTGROUP, '1' AS SECTION,
Convert(varchar(12),@DATETO,101) AS AGINGDATE, CASE ISNULL(AR.FCCurrency,'') WHEN '' THEN 'SGD' ELSE AR.FCCurrency END AS DOCCUR,
CASE TRANSTYPE WHEN '13' THEN 'Inv'
WHEN '14' THEN 'CN'
WHEN '18' THEN 'AP Inv'
WHEN '19' THEN 'AP CN'
WHEN '30' THEN 'JE'
WHEN '46' THEN 'Pym'
WHEN '24' THEN 'Rcp'
ELSE TRANSTYPE END AS DOCTYPE,
CASE WHEN ISNULL(REF2,'') <> '' THEN REF2 ELSE BASEREF END AS DOCNUM, T0.Project,
REF2, Convert(varchar(12),REFDATE,101) AS REFDATE, Convert(varchar(12),DUEDATE,101) AS DUEDATE,
/* USE MONTH END RATE FOR AMOUNT IN SGD */
CASE ISNULL(RATE.RATE,0) WHEN 0 THEN AR.TOTAL * -1 ELSE RATE.RATE * AR.TOTALFC * -1 END AS DOCAMOUNT,
0 AS INVOICENO, 0 AS AMTAPPLIED,
CASE ISNULL(AR.FCCurrency,'') WHEN '' THEN 0 ELSE TOTALFC * -1 END AS DOCAMOUNTFC,
(SELECT MAX(COMPNYNAME) FROM OADM) AS COMPANYNAME,
RATE.RATE
--AR.* , CUST.*, DOC.NUMATCARD, ACT.* 3
FROM
SELECT T1.[TransId], T0.[Ref2],T1.[TransRowId], MAX(T0.[ShortName]) AS [ShortName], MAX(T0.[TransType]) AS [TransType], MAX(T0.[CreatedBy]) AS [CreatedBy], MAX(T0.[BaseRef]) AS [BaseRef],
MAX(T0.[SourceLine]) AS [SourceLine], MAX(T0.[RefDate]) AS [RefDate], MAX(T0.[DueDate]) AS [DueDate], MAX(T0.[TaxDate]) AS [TaxDate], MAX(T0.[BalDueCred]) + SUM(T1.[ReconSum]) AS TOTAL,
MAX(T0.[BalFcCred]) + SUM(T1.[ReconSumFC]) AS TOTALFC, MAX(T0.[BalScCred]) + SUM(T1.[ReconSumSC]) AS TOTALSC, MAX(T0.[LineMemo]) AS [LineMemo], MAX(T3.[FolioPref]) AS [FolioPref],
MAX(T3.[FolioNum]) AS [FolioNum], MAX(T0.[Indicator]) AS [Indicator], MAX(T0.[Account]) AS [Account],
MAX(T0.FCCurrency) as [FCCurrency]
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[ITR1] T1 ON T1.[TransId] = T0.[TransId] AND T1.[TransRowId] = T0.[Line_ID]
INNER JOIN [dbo].[OITR] T2 ON T2.[ReconNum] = T1.[ReconNum]
INNER JOIN [dbo].[OJDT] T3 ON T3.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C' AND T0.[RefDate] <= @DATETO AND T2.[ReconDate] > @DATETO AND T1.[IsCredit] = @ISCREDIT AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T1.[TransId],T0.[Ref2],T1.[TransRowId]
HAVING MAX(T0.[BalFcCred]) <>- SUM(T1.ReconSumFC) OR MAX(T0.[BalDueCred]) <>- SUM(T1.ReconSum)
UNION
SELECT T1.[TransId],T0.[Ref2],T1.[TransRowId],
MAX(T0.[ShortName]), MAX(T0.[TransType]), MAX(T0.[CreatedBy]), MAX(T0.[BaseRef]), MAX(T0.[SourceLine]), MAX(T0.[RefDate]), MAX(T0.[DueDate]), MAX(T0.[TaxDate]), - MAX(T0.[BalDueDeb]) - SUM(T1.[ReconSum]),
- MAX(T0.[BalFcDeb]) - SUM(T1.[ReconSumFC]), - MAX(T0.[BalScDeb]) - SUM(T1.[ReconSumSC]), MAX(T0.[LineMemo]), MAX(T3.[FolioPref]), MAX(T3.[FolioNum]), MAX(T0.[Indicator]), MAX(T0.[Account]) ,
MAX(T0.FCCurrency) as [FCCurrency]
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[ITR1] T1 ON T1.[TransId] = T0.[TransId] AND T1.[TransRowId] = T0.[Line_ID]
INNER JOIN [dbo].[OITR] T2 ON T2.[ReconNum] = T1.[ReconNum]
INNER JOIN [dbo].[OJDT] T3 ON T3.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C' AND T0.[RefDate] <= @DATETO AND T2.[ReconDate] > @DATETO AND T1.[IsCredit] = @ISDEDIT AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T1.[TransId],T0.[Ref2],T3.[Ref2],T1.[TransRowId] HAVING MAX(T0.[BalFcDeb]) <>- SUM(T1.ReconSumFC) OR MAX(T0.[BalDueDeb]) <>- SUM(T1.ReconSum)
UNION
SELECT T0.[TransId],T0.[Ref2],T0.[Line_ID], MAX(T0.[ShortName]), MAX(T0.[TransType]), MAX(T0.[CreatedBy]),
MAX(T0.[BaseRef]), MAX(T0.[SourceLine]), MAX(T0.[RefDate]), MAX(T0.[DueDate]), MAX(T0.[TaxDate]), MAX(T0.[BalDueCred]) - MAX(T0.[BalDueDeb]), MAX(T0.[BalFcCred]) - MAX(T0.[BalFcDeb]), MAX(T0.[BalScCred]) -
MAX(T0.[BalScDeb]), MAX(T0.[LineMemo]), MAX(T1.[FolioPref]), MAX(T1.[FolioNum]), MAX(T0.[Indicator]), MAX(T0.[Account]) ,
MAX(T0.FCCurrency) as [FCCurrency]
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[OJDT] T1 ON T1.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C' AND T0.[RefDate] <= @DATETO
AND NOT EXISTS
(SELECT U0.[TransId], U0.[TransRowId] FROM [dbo].[ITR1] U0 INNER JOIN [dbo].[OITR] U1 ON U0.[ReconNum] = U1.[ReconNum] WHERE T0.[TransId] = U0.[TransId]
AND T0.[Line_ID] = U0.[TransRowId] AND U1.[ReconDate] > @DATETO GROUP BY U0.[TransId], U0.[TransRowId]) AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T0.[TransId],T0.[Ref2], T0.[Line_ID]
HAVING MAX(T0.[BalFcCred]) <> MAX(T0.BalFcDeb) OR MAX(T0.[BalDueCred]) <> MAX(T0.BalDueDeb)
) AS AR
INNER JOIN
SELECT T0.CARDCODE, MAX(T0.CARDNAME) AS CARDNAME, MAX(T0.CURRENCY) AS CURRENCY, MAX(T3.PYMNTGROUP) AS PYMNTGROUP, MAX(T1.STREET) AS STREET,
MAX(T1.BLOCK) AS BLOCK, MAX(T1.CITY) AS CITY, MAX(T1.ZIPCODE) AS ZIPCODE, MAX(T1.COUNTY) AS COUNTY, MAX(T2.CNTCTCODE) AS CNTCTCODE,
MAX(T2.NAME) AS 'ContactPerson', MAX(T2.TEL1) AS TEL1, MAX(T2.FAX) AS FAX, MAX(T4.GroupName) AS BPGROUP, MAX(T0.SLPCODE) AS SLPCODE,
MAX(T0.ADDID) AS ADDID, MAX(T0.CreditLine) AS CreditLine, MAX(T0.[Balance]) AS [Balance], MAX(T0.[GroupNum]) AS [GroupNum]
FROM OCRD T0
LEFT OUTER JOIN CRD1 T1
ON T0.CARDCODE = T1.CARDCODE AND T0.BILLTODEF = T1.ADDRESS
LEFT OUTER JOIN OCPR T2
ON T0.CARDCODE = T2.CARDCODE AND T0.CNTCTPRSN = T2.NAME
LEFT OUTER JOIN OCTG T3
ON T0.GROUPNUM = T3.GROUPNUM
LEFT OUTER JOIN OCRG T4
ON T0.GroupCode = T4.GroupCode
WHERE T0.CARDTYPE = 'C' AND T0.CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T0.CARDCODE
) CUST
ON AR.[ShortName] = CUST.CARDCODE AND CUST.CARDNAME BETWEEN @CARDNAMEFM AND @CARDNAMETO
LEFT OUTER JOIN
( SELECT DOCNUM, OBJTYPE, NUMATCARD, T0.Project FROM OINV WHERE CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO
UNION
SELECT DOCNUM, OBJTYPE, NUMATCARD, T0.Project FROM ORIN WHERE CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO
) AS DOC
ON AR.BASEREF = DOC.DOCNUM AND AR.TRANSTYPE = DOC.OBJTYPE
LEFT OUTER JOIN
Select T0.ClgCode as 'ActNo', T0.CardCode, T0.EndDate as 'ActDate',
T0.EndTime as 'ActTime', T0.Details as 'Remarks'
From OCLG T0
INNER JOIN
(SELECT CardCode, MAX(EndDate) AS EndDate FROM OCLG WHERE ENDDATE < = @DATETO
GROUP BY CardCode HAVING MAX(EndDate) = MAX(EndDate)) T1
ON T0.CARDCODE = T1.CARDCODE AND T0.ENDDATE = T1.ENDDATE
) AS ACT
ON CUST.CARDCODE = ACT.CARDCODE
INNER JOIN
(SELECT * FROM OSLP) OSLP
ON CUST.SLPCODE = OSLP.SLPCODE
LEFT OUTER JOIN
(SELECT T0.F_REFDATE, T0.T_REFDATE, T1.CURRENCY, T1.RATE FROM OFPR T0 INNER JOIN ORTT T1 ON T0.T_REFDATE = T1.RATEDATE) RATE
ON AR.FCCurrency = RATE.CURRENCY AND AR.REFDATE BETWEEN RATE.F_REFDATE AND RATE.T_REFDATE
WHERE OSLP.SLPNAME BETWEEN @SLPNAMEFM AND @SLPNAMETO
ORDER BY CUST.CARDNAME, CUST.CARDCODE, convert(varchar(10),AR.REFDATE,112)Highlighted below, is it working or not...
declare @DATETO DATETIME,
@CARDCODEFM NVARCHAR(15),
@CARDCODETO NVARCHAR(15),
@CARDNAMEFM NVARCHAR(15),
@CARDNAMETO NVARCHAR(15),
@SLPNAMEFM NVARCHAR(15),
@SLPNAMETO NVARCHAR(15)
DECLARE @ISCREDIT NVARCHAR(2),
@ISDEDIT NVARCHAR(2)
SET @ISCREDIT = 'C'
SET @ISDEDIT = 'D'
SELECT CUST.CARDCODE,
CUST.CARDNAME,
OSLP.SLPCODE,
OSLP.SLPNAME,
CUST.ADDID,
CUST.CreditLine,
CUST.Balance,
CUST.[GroupNum],
CUST.PYMNTGROUP,
'1' AS SECTION,
Convert(varchar(12),@DATETO,101) AS AGINGDATE,
CASE ISNULL(AR.FCCurrency,'')
WHEN '' THEN 'SGD'
ELSE AR.FCCurrency
END AS DOCCUR,
CASE TRANSTYPE
WHEN '13' THEN 'Inv'
WHEN '14' THEN 'CN'
WHEN '18' THEN 'AP Inv'
WHEN '19' THEN 'AP CN'
WHEN '30' THEN 'JE'
WHEN '46' THEN 'Pym'
WHEN '24' THEN 'Rcp'
ELSE TRANSTYPE
END AS DOCTYPE,
CASE
WHEN ISNULL(REF2,'') <> '' THEN REF2
ELSE BASEREF
END AS DOCNUM,
doc.Project,
REF2,
Convert(varchar(12),REFDATE,101) AS REFDATE,
Convert(varchar(12),DUEDATE,101) AS DUEDATE,
/* USE MONTH END RATE FOR AMOUNT IN SGD */
CASE ISNULL(RATE.RATE,0)
WHEN 0 THEN AR.TOTAL * -1
ELSE RATE.RATE * AR.TOTALFC * -1
END AS DOCAMOUNT,
0 AS INVOICENO,
0 AS AMTAPPLIED,
CASE ISNULL(AR.FCCurrency,'')
WHEN '' THEN 0
ELSE TOTALFC * -1
END AS DOCAMOUNTFC,
(SELECT MAX(COMPNYNAME)
FROM OADM) AS COMPANYNAME,
RATE.RATE --AR.* , CUST.*, DOC.NUMATCARD, ACT.* 3
FROM (
SELECT T1.[TransId], T0.[Ref2],T1.[TransRowId], MAX(T0.[ShortName]) AS [ShortName], MAX(T0.[TransType]) AS [TransType], MAX(T0.[CreatedBy]) AS [CreatedBy], MAX(T0.[BaseRef]) AS [BaseRef],
MAX(T0.[SourceLine]) AS [SourceLine], MAX(T0.[RefDate]) AS [RefDate], MAX(T0.[DueDate]) AS [DueDate], MAX(T0.[TaxDate]) AS [TaxDate], MAX(T0.[BalDueCred]) + SUM(T1.[ReconSum]) AS TOTAL,
MAX(T0.[BalFcCred]) + SUM(T1.[ReconSumFC]) AS TOTALFC, MAX(T0.[BalScCred]) + SUM(T1.[ReconSumSC]) AS TOTALSC, MAX(T0.[LineMemo]) AS [LineMemo], MAX(T3.[FolioPref]) AS [FolioPref],
MAX(T3.[FolioNum]) AS [FolioNum], MAX(T0.[Indicator]) AS [Indicator], MAX(T0.[Account]) AS [Account], MAX(T0.FCCurrency) AS [FCCurrency],t0.Project
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[ITR1] T1 ON T1.[TransId] = T0.[TransId] AND T1.[TransRowId] = T0.[Line_ID]
INNER JOIN [dbo].[OITR] T2 ON T2.[ReconNum] = T1.[ReconNum]
INNER JOIN [dbo].[OJDT] T3 ON T3.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C'
AND T0.[RefDate] <= @DATETO AND T2.[ReconDate] > @DATETO AND T1.[IsCredit] = @ISCREDIT AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T1.[TransId],T0.[Ref2],T1.[TransRowId],t0.Project HAVING MAX(T0.[BalFcCred]) <>- SUM(T1.ReconSumFC) OR MAX(T0.[BalDueCred]) <>- SUM(T1.ReconSum)
UNION
SELECT T1.[TransId],T0.[Ref2],T1.[TransRowId], MAX(T0.[ShortName]), MAX(T0.[TransType]),
MAX(T0.[CreatedBy]), MAX(T0.[BaseRef]), MAX(T0.[SourceLine]), MAX(T0.[RefDate]),
MAX(T0.[DueDate]), MAX(T0.[TaxDate]), - MAX(T0.[BalDueDeb]) - SUM(T1.[ReconSum]), - MAX(T0.[BalFcDeb])
- SUM(T1.[ReconSumFC]), - MAX(T0.[BalScDeb]) - SUM(T1.[ReconSumSC]), MAX(T0.[LineMemo]), MAX(T3.[FolioPref]),
MAX(T3.[FolioNum]), MAX(T0.[Indicator]), MAX(T0.[Account]) , MAX(T0.FCCurrency) AS [FCCurrency],t0.Project
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[ITR1] T1 ON T1.[TransId] = T0.[TransId] AND T1.[TransRowId] = T0.[Line_ID]
INNER JOIN [dbo].[OITR] T2 ON T2.[ReconNum] = T1.[ReconNum]
INNER JOIN [dbo].[OJDT] T3 ON T3.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C'
AND T0.[RefDate] <= @DATETO AND T2.[ReconDate] > @DATETO AND T1.[IsCredit] = @ISDEDIT AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T1.[TransId],T0.[Ref2],T3.[Ref2],T1.[TransRowId] ,t0.Project HAVING MAX(T0.[BalFcDeb]) <>- SUM(T1.ReconSumFC) OR MAX(T0.[BalDueDeb]) <>- SUM(T1.ReconSum)
UNION
SELECT T0.[TransId],T0.[Ref2],T0.[Line_ID], MAX(T0.[ShortName]), MAX(T0.[TransType]), MAX(T0.[CreatedBy]),
MAX(T0.[BaseRef]), MAX(T0.[SourceLine]), MAX(T0.[RefDate]), MAX(T0.[DueDate]), MAX(T0.[TaxDate]), MAX(T0.[BalDueCred]) - MAX(T0.[BalDueDeb]), MAX(T0.[BalFcCred]) - MAX(T0.[BalFcDeb]), MAX(T0.[BalScCred]) - MAX(T0.[BalScDeb]), MAX(T0.[LineMemo]), MAX(T1.[FolioPref]), MAX(T1.[FolioNum]), MAX(T0.[Indicator]), MAX(T0.[Account]) ,
MAX(T0.FCCurrency) AS [FCCurrency],t0.Project
FROM [dbo].[JDT1] T0 INNER JOIN [dbo].[OJDT] T1 ON T1.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OCRD] T4 ON T0.[ShortName] = T4.CARDCODE
WHERE T4.CARDTYPE = 'C'
AND T0.[RefDate] <= @DATETO
AND NOT EXISTS
(SELECT U0.[TransId], U0.[TransRowId] FROM [dbo].[ITR1] U0 INNER JOIN [dbo].[OITR] U1 ON U0.[ReconNum] = U1.[ReconNum] WHERE T0.[TransId] = U0.[TransId]
AND T0.[Line_ID] = U0.[TransRowId] AND U1.[ReconDate] > @DATETO GROUP BY U0.[TransId], U0.[TransRowId]) AND T0.[ShortName] BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T0.[TransId],T0.[Ref2], T0.[Line_ID],t0.Project HAVING MAX(T0.[BalFcCred]) <> MAX(T0.BalFcDeb) OR MAX(T0.[BalDueCred]) <> MAX(T0.BalDueDeb)) AS AR
INNER JOIN (
SELECT T0.CARDCODE,
MAX(T0.CARDNAME) AS CARDNAME,
MAX(T0.CURRENCY) AS CURRENCY,
MAX(T3.PYMNTGROUP) AS PYMNTGROUP,
MAX(T1.STREET) AS STREET,
MAX(T1.BLOCK) AS BLOCK,
MAX(T1.CITY) AS CITY,
MAX(T1.ZIPCODE) AS ZIPCODE,
MAX(T1.COUNTY) AS COUNTY,
MAX(T2.CNTCTCODE) AS CNTCTCODE,
MAX(T2.NAME) AS 'ContactPerson',
MAX(T2.TEL1) AS TEL1,
MAX(T2.FAX) AS FAX,
MAX(T4.GroupName) AS BPGROUP,
MAX(T0.SLPCODE) AS SLPCODE,
MAX(T0.ADDID) AS ADDID,
MAX(T0.CreditLine) AS CreditLine,
MAX(T0.[Balance]) AS [Balance], MAX(T0.[GroupNum]) AS [GroupNum]
FROM OCRD T0
LEFT OUTER JOIN CRD1 T1 ON T0.CARDCODE = T1.CARDCODE
AND T0.BILLTODEF = T1.ADDRESS
LEFT OUTER JOIN OCPR T2 ON T0.CARDCODE = T2.CARDCODE
AND T0.CNTCTPRSN = T2.NAME
LEFT OUTER JOIN OCTG T3 ON T0.GROUPNUM = T3.GROUPNUM
LEFT OUTER JOIN OCRG T4 ON T0.GroupCode = T4.GroupCode
WHERE T0.CARDTYPE = 'C'
AND T0.CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO
GROUP BY T0.CARDCODE) CUST ON AR.[ShortName] = CUST.CARDCODE
AND CUST.CARDNAME BETWEEN @CARDNAMEFM AND @CARDNAMETO
LEFT OUTER JOIN
(SELECT DOCNUM,
OBJTYPE,
NUMATCARD,Project
FROM OINV
WHERE CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO
UNION SELECT DOCNUM,
OBJTYPE,
NUMATCARD,Project
FROM ORIN
WHERE CARDCODE BETWEEN @CARDCODEFM AND @CARDCODETO) AS DOC ON AR.BASEREF = DOC.DOCNUM
AND AR.TRANSTYPE = DOC.OBJTYPE
LEFT OUTER JOIN
(SELECT T0.ClgCode AS 'ActNo',
T0.CardCode,
T0.EndDate AS 'ActDate',
T0.EndTime AS 'ActTime',
T0.Details AS 'Remarks'
FROM OCLG T0
INNER JOIN
(SELECT CardCode,
MAX(EndDate) AS EndDate
FROM OCLG
WHERE ENDDATE < = @DATETO
GROUP BY CardCode HAVING MAX(EndDate) = MAX(EndDate)) T1 ON T0.CARDCODE = T1.CARDCODE
AND T0.ENDDATE = T1.ENDDATE) AS ACT ON CUST.CARDCODE = ACT.CARDCODE
INNER JOIN
(SELECT *
FROM OSLP) OSLP ON CUST.SLPCODE = OSLP.SLPCODE
LEFT OUTER JOIN
(SELECT T0.F_REFDATE,
T0.T_REFDATE,
T1.CURRENCY,
T1.RATE
FROM OFPR T0
INNER JOIN ORTT T1 ON T0.T_REFDATE = T1.RATEDATE) RATE ON AR.FCCurrency = RATE.CURRENCY
AND AR.REFDATE BETWEEN RATE.F_REFDATE AND RATE.T_REFDATE WHERE OSLP.SLPNAME BETWEEN @SLPNAMEFM AND @SLPNAMETO
ORDER BY CUST.CARDNAME,
CUST.CARDCODE,
convert(varchar(10),AR.REFDATE,112)
Regards
Kennedy -
dear expert all
parameter from date to to date , project code
one of my client requriment i have need project code wise aging report .
send me the query.Hi Zal....
Very Good Afternoon.........
The question was simple. Sinha was simply asking about the Project code wise aging report. If I'm not wrong then for every marketing document level, on header level as well as on row level the project code field is there with the help of which we can categorise the transactions. So if sinha is doing billing as per the project code then he can get the project code wise aging report.
Even you can get the project code wise trial balance sheet also............
Regards,
Rahul -
Revision: 2514
Author: [email protected]
Date: 2008-07-16 14:38:06 -0700 (Wed, 16 Jul 2008)
Log Message:
frameworks: Fixing injection I made ages ago in build.xmls for framework projects
* all the projects should have been building against player 9's playerglobal.swc, not player 10's (except for flex4.swc)
* this might fix compiling problems that developed in tests for air
* problem was that s in ant are immutable and don't fire a warning if you redeclare them with a different value. I thought I was overriding the global ${playerglobal.version} property in files that needed to make it 9 instead of 10
* solution: created global.playerglobal.version (which is 10) and in files that need to "override" it, I declare local.playerglobal.version locally.
Reviewer: Pete
Bugs: n/a
QA: Please retest air compiling problems. We should probably re-run everything, since we're going back to the correct playerglobal, stuff might get fixed, stuff shouldn't (but could) get broken.
Doc: No
Modified Paths:
flex/sdk/trunk/build.properties
flex/sdk/trunk/frameworks/build_framework.xml
flex/sdk/trunk/frameworks/projects/airframework/build.xml
flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
flex/sdk/trunk/frameworks/projects/flex/build.xml
flex/sdk/trunk/frameworks/projects/flex4/build.xml
flex/sdk/trunk/frameworks/projects/framework/build.xml
flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
flex/sdk/trunk/frameworks/projects/rpc/build.xml
flex/sdk/trunk/frameworks/projects/utilities/build.xmlRevision: 2514
Author: [email protected]
Date: 2008-07-16 14:38:06 -0700 (Wed, 16 Jul 2008)
Log Message:
frameworks: Fixing injection I made ages ago in build.xmls for framework projects
* all the projects should have been building against player 9's playerglobal.swc, not player 10's (except for flex4.swc)
* this might fix compiling problems that developed in tests for air
* problem was that s in ant are immutable and don't fire a warning if you redeclare them with a different value. I thought I was overriding the global ${playerglobal.version} property in files that needed to make it 9 instead of 10
* solution: created global.playerglobal.version (which is 10) and in files that need to "override" it, I declare local.playerglobal.version locally.
Reviewer: Pete
Bugs: n/a
QA: Please retest air compiling problems. We should probably re-run everything, since we're going back to the correct playerglobal, stuff might get fixed, stuff shouldn't (but could) get broken.
Doc: No
Modified Paths:
flex/sdk/trunk/build.properties
flex/sdk/trunk/frameworks/build_framework.xml
flex/sdk/trunk/frameworks/projects/airframework/build.xml
flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
flex/sdk/trunk/frameworks/projects/flex/build.xml
flex/sdk/trunk/frameworks/projects/flex4/build.xml
flex/sdk/trunk/frameworks/projects/framework/build.xml
flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
flex/sdk/trunk/frameworks/projects/rpc/build.xml
flex/sdk/trunk/frameworks/projects/utilities/build.xml -
"Locating Media" taking AGES... can't open project (CS6)
Hello,
While I've been away at University I have been editing a film from an external hard drive on my Macbook Pro (with Windows 7 installed), the old 17" Core 2 Duo 2.4GHz Macbook Pro. While it's sometimes a struggle, it handles the editing but would no way be able to render the film in full HD in the time I need it for, and would probably catch on fire before it finished exporting it.
But anyway, at home where I am now, I have a desktop PC - Core 2 Quad, 3.00GHz, 4GB RAM, Windows 7 and when I originally began this project I used this machine and the project ran fine. I have used this machine for films in the past and never had an issue, it's been great to edit on and exporting is much quicker than my laptop.
But there's a problem. I've come back home and need to export this film for Tuesday's premiere. But the project won't open on the desktop PC. It's fine on my laptop, but when I open it in Premiere CS6 on my desktop it displays the box "Locating media..." with the bar half way across but it seems to be stuck. The program isn't frozen but it seems to just not be importing anything anymore, like it's given up. I'm not sure what to do, I can't get into this project.
What could be causing the problem?
Thanks in advance!
JackBut then why would my laptop happily open the project and run it fine? My desktop should be able to open it, given that it has better specs.
I have nothing better to work with at this point...
Last night I made sure the drive letter for my external was the same on my desktop as it is on my laptop and surprisingly it opened the project fine and began to load the files at the bottom inside the edit like it does normally every start-up. So I finally got into it on my desktop but then it froze when I cancelled the auto-save. -
Hi,
I have jus started a new job in a debt collection company and one of the things they said they where looking for was for me to create something that would allow them to know the probability of collecting from a debtor dependent on different dimensions i.e.
area of the UK they live in, age, gender, maital status etc. and also future projections etc.
I would like to produce an OLAP Cube to perform this because I havnt done one for a few years now and forgetting my skills.
Can anybody help me with any ideas and starting points, any direction at all would be welcomed greatly.
Thank YouHi Lrj1985,
According to your description, in order to allow users to know the probability of collecting from a debtor dependent on different dimension, you nedd to produce an OLAP cube to perform this. Since you haven't done this for a few years, now what you
are looking for is that the ideas, starting points or direction to build the OLAP cube, right?
In this case, here are some links which describe how to build a cube step by step, please see:
http://www.codeproject.com/Articles/607134/BuildingplusYourplusFirstplusAnalysisplusServicesp
http://technet.microsoft.com/en-us/magazine/ee677579.aspx
Regards,
Charlie Liao
TechNet Community Support -
Long Load Times On PSD Inclusive Projects
Ive concluded premeiere doesnt crash, it cant just take hours to load project which includes large PSD files, this has only happened since CS3, i used to bring in Big PSD Projects and they would load fine but something to do with implmentation photoshopserver.exe has made prem take ages to load, can anyone try this and confirm ?
Define large.
Frame size and number of layers? -
Removing an item from the Project list
When I open PP, it gives me a list of projects I worked on.
I know that if I go and delete the project file, it will disappear from the list. If I want to keep the actual file, though, is there any way to remove it from that list?I help people with their projects now and then, and on occasion the people I am helping are creating something a lot worse than "naughty". Even at my advanced age some of this stuff makes me blush.
More often than not the project names are cryptic or innocuous. Every now and then they are explicit. There is no need for me to open Premiere Pro with someone looking over my shoulder, and have them see some of those names. -
Premiere Elements 12 wont open project
Hi, have been using PRE 12 for a year or so with no problems, about a month a go whilst using the programme I received a virus which was cleaned but since then I only get the sign on screen and when I choose new project I get the purple and black line for ages then it just sits there, my PC spec is good, Nvidea GTS 450, 6 Gig ram plenty of HHD as I said have had no previous problems I have googled every Q & A and tried everything as follows:-
Scanned with AV from AVG, Avast, Win Defender, Windows essentials all clean no problems, then uninstalled them as not wanting a conflict, tried running with no AV no joy
loaded PRE 12, 5 times now, un installed using windows control panel and Tune up utilities cleaning the registry every time before re installing with fire wall and AV off, found and deleted baddrivers.txt (just the once) disabled the GTS 450 still no joy, rolled it back and tried a previous version, tried loading with diagnostic start up ie nothing else loaded no joy, scandisk, chkdsk, scannow, every type of Windows check I can throw at it, had PRE10 loaded and had the same problem so un installed that, still no joy, ran a Win 7 repair disc (the one you can burn from your own PC) my PC was built professionally (DinoPC) but didn't come with a win 7 disc.
All other programmes run fine, internet fine, it will open the organiser where I down loaded the latest PRE 12 update I am just so frustrated can any one shed some light? Regards Clive.nookie1050
Thanks for the follow up.
With regard to the hosts file, are you just looking at everything below the line of the hosts file's default text # ::1 localhost, not above that line to # 127.0.0.1 localhost? As I mentioned in the blog post
The Windows 7 64 bit default hosts file is shown in Figure 1. Look for any entries below the line
# ::1 localhost
If any found, such as, 127.0.0.1 activate.adobe.com, delete them only after a backup of the hosts file is made and saved to the computer desktop for safe keeping.
If you have not already, you may want to consider
a. uninstall the program
b. update the Adobe Application Manager
c. reinstall Premiere Elements 12 with antivirus and firewalls disabled.
What you might want to consider also is getting Adobe involved via its Adobe Chat. To do that you could click on the following link. When it opens, click on the statement "Still Need Help? Contact Us." to bring up the Adobe Chat on the topic of Downloading, Installing, and Setting Up.
Contact Customer Care
I suggest this since it might have some undocumented troubleshooting that might pin point the issue in your situation.
Please review the above and then let us know how you are progressing.
Do not give up.
Thanks.
ATR -
Dear Experts
can anybody please help me in getting ageing report project wise . We already have the ageing report Debtors or Creditors wise
in the system but i want the ageing report project wise
warm regards
anandHi Rajshree
Try this One for customers, hopefully you should then be able to amend it to the Supplier Version
select T0.shortname,T2.cardcode 'Customer Code',T2.cardname 'Name', sysdeb 'Debit Amount',syscred 'Credit Amount',
case T0.transtype
when '13' then 'INV'
when '14' then 'AR CN'
when '24' then 'INCOMING'
else 'Other'
end 'Type',
T1.BaseRef'Trans #',
case T0.transtype
when '13' then
(Select Comments from OINV where OINV.Transid=T1.Transid)
else '-'
end 'Inv.Rem.',
(Select SeriesName From NNM1 Where Series=T1.DocSeries and ObjectCode=T0.TransType)'Series',
T0.Ref1,
fccurrency 'BP Currency',
CONVERT(VARCHAR(10), T0.refdate, 103)'Posting Date' ,
CONVERT(VARCHAR(10), T0.duedate, 103) 'Due Date',
CONVERT(VARCHAR(10), T0.taxdate, 103) 'Doc Date' ,
CASE
when (DATEDIFF(dd,T0.refdate,current_timestamp))+1 < 31
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "0-30 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 30
and (datediff(dd,T0.refdate,current_timestamp))+1< 61)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "31 to 60 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 60
and (datediff(dd,T0.refdate,current_timestamp))+1< 91)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "60 to 90 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 90
and (datediff(dd,T0.refdate,current_timestamp))+1< 121)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "91 to 120 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 120
and (datediff(dd,T0.refdate,current_timestamp))+1< 151)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "121 to 150 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 150
and (datediff(dd,T0.refdate,current_timestamp))+1< 181)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "151 to 180 days",
case when ((datediff(dd,T0.refdate,current_timestamp))+1 > 180
and (datediff(dd,T0.refdate,current_timestamp))+1< 221)
then
case
when syscred <> 0 then syscred * - 1
else sysdeb
end
end "181 to 220 days",
CASE
when (DATEDIFF(dd,T0.refdate,current_timestamp))+1 > 220
then
case
when syscred= 0 then sysdeb
when sysdeb= 0 then syscred * - 1
end
end "220 + days"
from JDT1 T0
Inner Join OJDT T1 On T1.TransId=T0.TransId
left outer join
OCRD T2 ON T2.cardcode =T0.shortname where
T2.cardtype = 'c' and T0.intrnmatch = '0'
and (T0.BalDueCred + T0.BalDueDeb) > 0
ORDER BY T2.CARDCODE, T0.taxdate
Kind regards
Sean
Maybe you are looking for
-
Hi, Whenever I start safari, the application icon just bounces in the dock continuously and doesnt go any further. When I bring up the force quit window, it just says that the application is not responding. How do I sort this out? I searched through
-
Help! DW8 won't load after Windows reinstall
A couple of days ago I was obliged to to reinstall Windows XP Pro and all of my applications, including Dreamweaver 8. There have been no other problems, and DW worked fine as usual just after the reinstall, but since then it has refused to load - th
-
The "System Hardware Update - 27/03/2015" is stuck in an "Installing updates..." state It stays in this state, even as I have rebooted many times. There's no install activity happening in the background. There's nothing I can see in the event log. I
-
Cfheader /CFcontent producing inconsistent results
Hi all I am using cf header to display a dynically generated report as a word doc. At least this is my goal i'm using mx7 on appache 2.0 and Firefox 2.0.0.16 [i can not update this] and ie 6 sp 3 for browsers. no matter how a set this up i don't get
-
Strange business model.
I have been with LMI since the beginning and find it a very useful tool, However these yearly price hikes have forced me to go elsewhere, just spoke to sales they couldn't even give me a figure for my renewal (Central 100, backup and cuddy) the lady