Hi, I was checking some diffenences in codeunit 12 (Gen. Jnl.-Post Line) between NAV 2009 R2 and NAV 2013. Inside InsertVAT function previously there was VAT Registration No. evaluation:
VATEntry."Bill-to/Pay-to No." := "Bill-to/Pay-to No.";
IF "Bill-to/Pay-to No." <> '' THEN
CASE VATEntry.Type OF
VATEntry.Type::Purchase:
BEGIN
IF Vend."No." <> "Bill-to/Pay-to No." THEN
Vend.GET("Bill-to/Pay-to No.");
VATEntry."Country/Region Code" := Vend."Country/Region Code";
VATEntry."VAT Registration No." := Vend."VAT Registration No.";
END;
VATEntry.Type::Sale:
BEGIN
IF Cust."No." <> "Bill-to/Pay-to No." THEN
Cust.GET("Bill-to/Pay-to No.");
VATEntry."Country/Region Code" := Cust."Country/Region Code";
VATEntry."VAT Registration No." := Cust."VAT Registration No.";
END;
END;
In 2013 and 2013 R2 instead there is:
VATEntry."Bill-to/Pay-to No." := "Bill-to/Pay-to No.";
IF "Bill-to/Pay-to No." <> '' THEN
CASE VATEntry.Type OF
VATEntry.Type::Purchase:
BEGIN
IF Vend."No." <> "Bill-to/Pay-to No." THEN
Vend.GET("Bill-to/Pay-to No.");
VATEntry."Fiscal Code" := Vend."Fiscal Code";
END;
VATEntry.Type::Sale:
BEGIN
IF Cust."No." <> "Bill-to/Pay-to No." THEN
Cust.GET("Bill-to/Pay-to No.");
VATEntry."Fiscal Code" := Cust."Fiscal Code";
END;
END
ELSE
VATEntry."VAT Registration No." := "VAT Registration No.";
If I'm not wrong in invoices/credit memos posting this means VAT Registration No. is not filled anymore, isn't it? Any explanation regarding this business logic change? My plan should be to re-integrate the function with missing evaluation from customer/vendor.
Thanks
Daniele
*This post is locked for comments