Hello,
I get this error "Vendor Shipment No. already exist for this vendor" after i try to post purchase Invoice .I ran debugger .it breaks at below mentioned. i codeunit 90 Purch.-Post. on run trigger.I checked the table PurchRcptHeader. there is no value in Vendor Shipment No. error text 148 is the same that's cmng.any one can suggest the reason..thanks.
IF Receive THEN BEGIN
PurchRcptHeader.RESET;
PurchRcptHeader.SETRANGE("Buy-from Vendor No.","Buy-from Vendor No.");
PurchRcptHeader.SETRANGE("Vendor Shipment No.","Vendor Shipment No.");
PurchRcptHeader.SETRANGE("Gate Entry Block",FALSE);
IF PurchRcptHeader.FIND('-') THEN
ERROR(Text148,PurchRcptHeader."Vendor Shipment No.");
END;
0
Comments
I suspect its a customization
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Mohana can u please correct me when the Vendor shipment no. field is being used/Updated? At the PurchRcptHeader table this field has no values.
If i remove this code then the system gives error " actual quantity should not be zero in line. Purchase invoice line.
Please try by adding it.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav