Skip to Content
author's profile photo Former Member
Former Member

Transaction Notification

Hi All

I want a transaction notification on A/R invoice. Requirement is numbering series always be manual if user select any other series then massage should be come "please choose manual Series.

Thanks & Regard

Areeba Ali

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2011 at 01:43 PM

    Hi Areeba Ali

    Try this:

    IF @transaction_type='A' AND @Object_type = '13'

    BEGIN

    IF EXISTS (SELECT T0.DocEntry FROM dbo.OINV T0 WHERE T0.series != 100

    AND T0.DocEntry = @list_of_cols_val_tab_del)

    Begin

    SET @Error = 13

    SET @error_message = 'The series has to be Manual.'

    End

    END

    You need to find out what is the manual series number for your A/R Invoice to replace 100

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2011 at 03:02 PM

    Hi Areeba........

    Try this.........

    If @object_type='13' and @transaction_type='A'
    BEGIN 
    If Exists (Select * from [dbo].[OINV] T0 
    Where T0.DocEntry = @list_of_cols_val_tab_del and T0.Series>0 And T0.Handwrtten='N' )
    BEGIN
    Select @error = -1,
    @error_message = 'Please Select Appropriate Form Category'
    End
    End

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 11:09 AM

    Thanks

    Gordon and Rahul

    solved

    Thanks & Regard

    Areeba Ali

    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.