Skip to Content

Procedimiento de Autorización

Buenas tardes, necesito crear un procedimiento de autorización basado en una consulta, por favor me pueden ayudar, la consulta es la siguiente:

SELECT

(case when sum(T0.[DocTotal])>T2.[CreditLine] then 'Y' else 'N' end)

FROM

OPOR T0

INNER JOIN POR1 T1 ON T0.[DocEntry] = T1.[DocEntry]

INNER JOIN OCRD T2 ON T0.[CardCode] = T2.[CardCode]

WHERE

datepart(wk,T0.[DocDate]) = datepart(wk,getdate()) and

datepart(yy,T0.[DocDate]) = datepart(yy,getdate())

GROUP BY

T2.[CreditLine]

Les agradezco la ayuda que me puedan brindar.

Saludos,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 04, 2015 at 05:08 PM

    Cerrado el Post

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.