on 04-10-2010 8:00 AM
Hi All,
I want an alert on the invoice if the customer payment term is 30 days then it show an alert before 1 days to collect payment.
Thanks & Regards
Shiv
Hi Shiv,
You may start from this:
SELECT T0.DocNum, T0.CardCode, T0.DocTotal, T1.PymntGroup
FROM dbo.OINV T0
INNER JOIN dbo.OCTG T1 ON T1.GroupNum = T0.GroupNum
WHERE T1.PymntGroup LIKE '%30%' AND DateDiff(DD,T0.DocDueDate,GetDate()) = 29
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT T0.[DocNum], T0.[DocDate], T0.[CardName], T0.[DocTotal] As 'Opening Amount', T0.[PaidToDate], (T0.[DocTotal]-T0.[PaidToDate]) As 'Pending Amount', T0.[DocDueDate], datediff(day,(select convert( datetime,(select T0.[DocDate]),3)),(select convert( datetime,(select T0.[DocDueDate]),3))) As 'OverDue Days' FROM OINV T0
Where
--T0.DOcDueDate<GetDate() And
datediff(day,(select convert( datetime,(select T0.[DocDate]),3)),(select convert( datetime,(select T0.[DocDueDate]),3)))>=28 and T0.DocStatus='O'
Hi.... Try the above query report........
Regards,
Rahul
HI Gordon,
Thanks for Querry but actual querry that i want is -
SELECT T0.DocNum, T0.DocDate, T0.CardName, T0.DocTotal As 'Opening Amount',
T0.PaidToDate, (T0.DocTotal-T0.PaidToDate) As 'Pending Amount',
T0.DocDueDate, datediff(day,(select convert( datetime,(select getdate()),3)),(select convert( datetime,(select T0.DocDueDate),3))) As 'OverDue Days'
FROM OINV T0
Where
datediff(day,(select convert( datetime,(select getdate()),3)),
(select convert( datetime,(select T0.DocDueDate),3)))<='2' and T0.DocStatus='O'
but when i click ok link of document it shows the closed document of last FY.
Thanks & regards
Shiv
I would suggest that you just look at the invoice due dates - 1 day regardless of the terms
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.