Dear ,
I am getting an error after i change the posting date of Purchase Invoice
"No. Series Code does Not Exist"
I ran the debugger it breaks at on validate of Posting date .
TestNoSeriesDate(
"Posting No.","Posting No. Series",
FIELDCAPTION("Posting No."),FIELDCAPTION("Posting No. Series"));
TestNoSeriesDate(
"Prepayment No.","Prepayment No. Series",
FIELDCAPTION("Prepayment No."),FIELDCAPTION("Prepayment No. Series"));
TestNoSeriesDate(
"Prepmt. Cr. Memo No.","Prepmt. Cr. Memo No. Series",
FIELDCAPTION("Prepmt. Cr. Memo No."),FIELDCAPTION("Prepmt. Cr. Memo No. Series"));
NoSeries.GET("No. Series");
NoseriesMgnt.SetNoSeriesLineFilter(NoSeriesLine,"No. Series",TODAY);
IF NoSeries."Date Order" AND ("Posting Date" < NoSeriesLine."Last Date Used") THEN
ERROR(
Text0006,
NoSeries.Code,NoSeriesLine."Last Date Used");
VALIDATE("Document Date","Posting Date");
IF ("Document Type" IN ["Document Type"::Invoice,"Document Type"::"Credit Memo"]) AND
NOT ("Posting Date" = xRec."Posting Date")
THEN
PriceMessageIfPurchLinesExist(FIELDCAPTION("Posting Date"));
IF "Currency Code" <> '' THEN BEGIN
UpdateCurrencyFactor;
IF "Currency Factor" <> xRec."Currency Factor" THEN
ConfirmUpdateCurrencyFactor;
END;
IF PurchLinesExist THEN
JobUpdatePurchLines;
UpdatePurchLines(FIELDCAPTION("Posting Date"));
thanks If any one can suggest the reason for error..
0
Comments
If yes, then check whether you have same "No. Series" in "No. Series" table.
which version are you using?
I didnt find above code in NAV2009R2 standard database.
is it customization?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
nav 2009 R2 .It's customized..the problem came since i had to use manual no. for a invoice no. which was accidentally deleted from table.
the problem does not come for other invoice nos..
Thanks