on 10-13-2009 7:36 AM
Hi guys,
Is there a way to prevent the repetition or duplication of reference number manually entered by the user? Do you have a script or a stored procedure for this?
Thanks,
Yvette
Choose Administration -> System Initialization -> Document Settings-> Per Document Tab.
Select a document, for example Sales order,
Now, in "When duplicated Customer Reference No. occurs", choose, "Block Release"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use this Stored Procedure for A/P Invoice
Try in Test Environment and then in Live Database.
if @object_type = '18'
and (@transaction_type = 'A' or @transaction_type = 'U')
begin
declare @venno as varchar (100)
declare @vennam as varchar (100)
if (@object_type = '18')
begin
select @venno = NumAtCard, @vennam = CardCode from OPCH T0 where docentry = @list_of_cols_Val_tab_del
begin
if (@venno is not null)
begin
if 1!= (select count (docentry) from OPCH with (nolock)where (NumatCard = @venno) and (cardcode = @vennam))
begin
select @error = 10
select @error_message = 'Duplicate Vendor Ref Number!'
End
End
End
End
End
Regards,
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..........
Use Stored Procedure Transnotification.
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.