Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8538

Re: How to prevent Duplicate AP Invoices ??

$
0
0

Dear AndakondaRamudu,

 

Here I would like to share my related implementation:

 

Detail:

=====

1.Create User Define Table like 'Bill_Register' 

   Fields: GRPO #, PO #, Supplier, BillNo, BillDate,Amount,Qty etc.

  

2.Make SOP that Supplier Bill must be entered in this User Define Table Then A/P Invoice.

 

3.Make SOP that user must enter 'Bill No' in  A/P Invoice's Bill No ('U_BillNo' UDF)

 

4.Add following TN that can't allow duplicate A/P Invoice against single Bill (entered in Bill Register).

 

 

IF @transaction_type IN ('A','U') AND @Object_type = '18'

  BEGIN

  declare @ChkDuplicate numeric(19,6);

  declare @BillNoC varchar(10);

 

 

  select @BillNoC = U_BillNo from opch where docentry = @list_of_cols_val_tab_del;

  select @ChkDuplicate = Count(U_BillNo) from opch where U_BillNo = @BillNoC;

 

 

        IF  (@ChkDuplicate IS NOT NULL)

           BEGIN

                IF @ChkDuplicate > 1

                   BEGIN

                     Set @error = 1;

                     Set @error_message = 'This Bill No is Already Posted, Please Check It';

                  END

             END

  END

=====================================================

 

Note: You can create more controls like A/P Invoice amount will same as Bill Amount 

 

 

I hope this will help you...

 

Regards,

 

M.Sadiq Qadri


Viewing all articles
Browse latest Browse all 8538

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>