Logga in med Microsoft
Logga in eller skapa ett konto.
Hej,
Välj ett annat konto.
Du har flera konton
Välj det konto som du vill logga in med.

Den här artikeln gäller för Microsoft Dynamics NAV för alla länder och språkversioner.

Symptom

När du anger ett värde för Adress Leveransadresskod på en försäljningsorder i Microsoft Dynamics NAV 2013, Postnr, ort och delstat värden inte överförs från kortet Leveransadress till fältet Leverera till postnumret , fältet Leveransort och fältet Leveransdelstat på försäljningsordern. Det här problemet uppstår bara om Fartyg till land/Region-kod -värdet har redan angetts på försäljningsordern och värdet skiljer sig från värdet på ny leveransadress Landskod .

Lösning

Information om snabbkorrigeringen

En snabbkorrigering är nu tillgänglig från Microsoft. Den är endast avsedd att åtgärda det problem som beskrivs i denna artikel. Använd den bara på datorer där detta problem uppstår. Snabbkorrigeringen kan komma att testas igen. Om inte störs alltför mycket av detta problem rekommenderar vi att du väntar på Nästa service pack-versionen för Microsoft Dynamics NAV 2013 eller den nästa version av Microsoft Dynamics NAV som innehåller den här snabbkorrigeringen.

Obs! I särskilda fall, de avgifter som är normalt för support vara avgiftsfri om en supporttekniker för Microsoft Dynamics och relaterade produkter som bestämmer att en särskild uppdatering kan lösa ditt problem. De vanliga supportkostnaderna gäller för övriga supportfrågor och problem som inte berör den särskilda uppdateringen.


Installationsinformation

Microsoft tillhandahåller programmeringsexempel endast utan garanti varken uttryckliga eller underförstådda. Detta inkluderar men är inte begränsat till, underförstådda garantier om säljbarhet eller lämplighet för ett särskilt ändamål. Den här artikeln förutsätter att du är bekant med det programmeringsspråk som demonstreras och de verktyg som används för att skapa och felsöka procedurer. Microsofts supporttekniker kan hjälpa till att förklara funktionen hos en viss procedur. De kommer inte ändra dessa exempel för att ge ytterligare funktioner eller skapa procedurer som motsvarar dina speciella behov.

Obs! Innan du installerar den här snabbkorrigeringen måste du kontrollera att alla användare av Microsoft Navision-klient har loggat ut. Detta inkluderar Microsoft Navision Application Services (NAS) klientanvändare. Du ska endast klientanvändare som är inloggad när du implementerar den här snabbkorrigeringen.

Om du vill genomföra den här snabbkorrigeringen måste du ha en utvecklarlicens.

Vi rekommenderar att tilldelas användarkontot i fönstret Windows-inloggningar eller i fönstret databasinloggningar "SUPER" roll-ID. Om användarkontot inte kan tilldelas "SUPER" roll-ID måste du kontrollera att användarkontot har följande behörigheter:

  • Ändra behörighet för objektet ändras.

  • Körbehörighet för systemet objektet ID 5210 objektet och objektet System objektet ID 9015 .



Obs! Du har inte behörighet för datalager inte data reparation.

Kod ändras

Obs! Alltid åtgärdas testa koden i en kontrollerad miljö innan du installerar korrigeringar för produktionsdatorer.
Lös problemet så här:

  1. Ändra koden i fälten i tabellen Lagerställe (14) enligt följande:
    Befintlig kod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 5715; ;County ;Text30 }
    { 5718; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 5719; ;Home Page ;Text90 ;ExtendedDatatype=URL }

    // Delete the following lines.
    { 5720; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND ("Country/Region Code" <> '') THEN
    Postcode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 5724; ;Use As In-Transit ;Boolean ;OnValidate=BEGIN
    IF "Use As In-Transit" THEN BEGIN
    TESTFIELD("Require Put-away",FALSE);
    TESTFIELD("Require Pick",FALSE);
    TESTFIELD("Use Cross-Docking",FALSE);
    ...

    Ersättningskod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 5715; ;County ;Text30 }
    { 5718; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 5719; ;Home Page ;Text90 ;ExtendedDatatype=URL }

    // Add the following line.
    { 5720; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 5724; ;Use As In-Transit ;Boolean ;OnValidate=BEGIN
    IF "Use As In-Transit" THEN BEGIN
    TESTFIELD("Require Put-away",FALSE);
    TESTFIELD("Require Pick",FALSE);
    TESTFIELD("Use Cross-Docking",FALSE);
    ...

  2. Ändra koden i fält i tabellen Kund (18) enligt följande:
    Befintlig kod

    ...      { 32  ;   ;Place of Export     ;Code20         }
    { 33 ; ;Invoice Disc. Code ;Code20 ;TableRelation=Customer;
    ValidateTableRelation=No;
    TestTableRelation=No }
    { 34 ; ;Customer Disc. Group;Code20 ;TableRelation="Customer Discount Group" }

    // Delete the following lines.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 36 ; ;Collection Method ;Code20 }
    { 37 ; ;Amount ;Decimal ;AutoFormatType=1;
    AutoFormatExpr="Currency Code" }
    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Customer),
    ...

    Ersättningskod

    ...      { 32  ;   ;Place of Export     ;Code20         }
    { 33 ; ;Invoice Disc. Code ;Code20 ;TableRelation=Customer;
    ValidateTableRelation=No;
    TestTableRelation=No }
    { 34 ; ;Customer Disc. Group;Code20 ;TableRelation="Customer Discount Group" }

    // Add the following line.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 36 ; ;Collection Method ;Code20 }
    { 37 ; ;Amount ;Decimal ;AutoFormatType=1;
    AutoFormatExpr="Currency Code" }
    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Customer),
    ...

  3. Ändra koden i fält i tabellen Leverantör (23) enligt följande:
    Befintlig kod

    ...      { 30  ;   ;Shipment Method Code;Code10        ;TableRelation="Shipment Method" }
    { 31 ; ;Shipping Agent Code ;Code10 ;TableRelation="Shipping Agent" }
    { 33 ; ;Invoice Disc. Code ;Code20 ;TableRelation=Vendor;
    ValidateTableRelation=No;
    TestTableRelation=No }

    // Delete the following lines.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Vendor),
    No.=FIELD(No.)));
    Editable=No }
    { 39 ; ;Blocked ;Option ;OptionString=[ ,Payment,All] }
    ...

    Ersättningskod

    ...      { 30  ;   ;Shipment Method Code;Code10        ;TableRelation="Shipment Method" }
    { 31 ; ;Shipping Agent Code ;Code10 ;TableRelation="Shipping Agent" }
    { 33 ; ;Invoice Disc. Code ;Code20 ;TableRelation=Vendor;
    ValidateTableRelation=No;
    TestTableRelation=No }

    // Add the following line.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Vendor),
    No.=FIELD(No.)));
    Editable=No }
    { 39 ; ;Blocked ;Option ;OptionString=[ ,Payment,All] }
    ...

  4. Ändra koden i fälten i tabellen Försäljningshuvud (36) enligt följande:
    Befintlig kod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Delete the following lines.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Bill-to Country/Region Code" <> xRec."Bill-to Country/Region Code") AND (xRec."Bill-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Bill-to City","Bill-to Post Code","Bill-to County");
    END;
    }
    // End of the lines.

    { 88 ; ;Sell-to Post Code ;Code20 ;TableRelation="Post Code";
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Sell-to City","Sell-to Post Code","Sell-to County","Sell-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Ersättningskod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Add the following line.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 88 ; ;Sell-to Post Code ;Code20 ;TableRelation="Post Code";
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Sell-to City","Sell-to Post Code","Sell-to County","Sell-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Befintlig kod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Sell-to County ;Text30 }

    // Delete the following lines.
    { 90 ; ;Sell-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Sell-to Country/Region Code" <> xRec."Sell-to Country/Region Code") AND (xRec."Sell-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Sell-to City","Sell-to Post Code","Sell-to County");
    END;
    }
    // End of the lines.

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation="Post Code";
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Ersättningskod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Sell-to County ;Text30 }

    // Add the following line.
    { 90 ; ;Sell-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation="Post Code";
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Befintlig kod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Delete the following lines.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");
    END;
    }
    // End of the lines.

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 97 ; ;Exit Point ;Code10 ;TableRelation="Entry/Exit Point";
    OnValidate=BEGIN
    UpdateSalesLines(FIELDCAPTION("Exit Point"),FALSE);
    END;
    ...

    Ersättningskod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Add the following line.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 97 ; ;Exit Point ;Code10 ;TableRelation="Entry/Exit Point";
    OnValidate=BEGIN
    UpdateSalesLines(FIELDCAPTION("Exit Point"),FALSE);
    END;
    ...

  5. Ändra koden i fält i tabellen Inköpshuvud (38) enligt följande:
    Befintlig kod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Pay-to County ;Text30 }

    // Delete the following lines.
    { 87 ; ;Pay-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Pay-to Country/Region Code" <> xRec."Pay-to Country/Region Code") AND (xRec."Pay-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Pay-to City","Pay-to Post Code","Pay-to County");
    END;
    }
    // End of the lines.

    { 88 ; ;Buy-from Post Code ;Code20 ;TableRelation=IF (Buy-from Country/Region Code=CONST()) "Post Code"
    ELSE IF (Buy-from Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Buy-from Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Buy-from City","Buy-from Post Code","Buy-from County","Buy-from Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Pay-to County ;Text30 }

    // Add the following line.
    { 87 ; ;Pay-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 88 ; ;Buy-from Post Code ;Code20 ;TableRelation=IF (Buy-from Country/Region Code=CONST()) "Post Code"
    ELSE IF (Buy-from Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Buy-from Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Buy-from City","Buy-from Post Code","Buy-from County","Buy-from Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Buy-from County ;Text30 }

    // Delete the following lines.
    { 90 ; ;Buy-from Country/Region Code;Code10;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Buy-from Country/Region Code" <> xRec."Buy-from Country/Region Code") AND (xRec."Buy-from Country/Region Code" <> '') THEN
    PostCode.ClearFields("Buy-from City","Buy-from Post Code","Buy-from County");
    END;
    }
    // End of the lines.

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Buy-from County ;Text30 }

    // Add the following line.
    { 90 ; ;Buy-from Country/Region Code;Code10;TableRelation=Country/Region }

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Delete the following lines.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");
    END;
    }
    // End of the lines.

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 95 ; ;Order Address Code ;Code10 ;TableRelation="Order Address".Code WHERE (Vendor No.=FIELD(Buy-from Vendor No.));
    OnValidate=BEGIN
    IF "Order Address Code" <> '' THEN BEGIN
    OrderAddr.GET("Buy-from Vendor No.","Order Address Code");
    ...

    Ersättningskod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Add the following line.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 95 ; ;Order Address Code ;Code10 ;TableRelation="Order Address".Code WHERE (Vendor No.=FIELD(Buy-from Vendor No.));
    OnValidate=BEGIN
    IF "Order Address Code" <> '' THEN BEGIN
    OrderAddr.GET("Buy-from Vendor No.","Order Address Code");
    ...

  6. Ändra koden i fälten i tabellen Företagsinformation (79) enligt följande:
    Befintlig kod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 33 ; ;Ship-to County ;Text30 }
    { 34 ; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 35 ; ;Home Page ;Text80 ;ExtendedDatatype=URL }

    // Delete the following lines.
    { 36 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    { 37 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");
    END;
    }
    // End of the lines.

    { 38 ; ;IBAN ;Code50 ;OnValidate=BEGIN
    CheckIBAN(IBAN);
    END;
    }
    { 39 ; ;SWIFT Code ;Code20 }
    ...

    Ersättningskod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 33 ; ;Ship-to County ;Text30 }
    { 34 ; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 35 ; ;Home Page ;Text80 ;ExtendedDatatype=URL }

    // Add the following lines.
    { 36 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }
    { 37 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region }
    // End of the lines.

    { 38 ; ;IBAN ;Code50 ;OnValidate=BEGIN
    CheckIBAN(IBAN);
    END;
    }
    { 39 ; ;SWIFT Code ;Code20 }
    ...

  7. Ändra koden i fälten i tabellen resurs (156) enligt följande:
    Befintlig kod

    ...      { 55  ;   ;Automatic Ext. Texts;Boolean        }
    { 56 ; ;No. Series ;Code10 ;TableRelation="No. Series";
    Editable=No }
    { 57 ; ;Tax Group Code ;Code10 ;TableRelation="Tax Group" }
    { 58 ; ;VAT Prod. Posting Group;Code10 ;TableRelation="VAT Product Posting Group" }

    // Delete the following lines.
    { 59 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 60 ; ;IC Partner Purch. G/L Acc. No.;Code20;
    TableRelation="IC G/L Account" }
    { 900 ; ;Qty. on Assembly Order;Decimal ;FieldClass=FlowField;
    CalcFormula=Sum("Assembly Line"."Remaining Quantity (Base)" WHERE (Document Type=CONST(Order),
    Type=CONST(Resource),
    ...

    Ersättningskod

    ...      { 55  ;   ;Automatic Ext. Texts;Boolean        }
    { 56 ; ;No. Series ;Code10 ;TableRelation="No. Series";
    Editable=No }
    { 57 ; ;Tax Group Code ;Code10 ;TableRelation="Tax Group" }
    { 58 ; ;VAT Prod. Posting Group;Code10 ;TableRelation="VAT Product Posting Group" }

    // Add the following line.
    { 59 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 60 ; ;IC Partner Purch. G/L Acc. No.;Code20;
    TableRelation="IC G/L Account" }
    { 900 ; ;Qty. on Assembly Order;Decimal ;FieldClass=FlowField;
    CalcFormula=Sum("Assembly Line"."Remaining Quantity (Base)" WHERE (Document Type=CONST(Order),
    Type=CONST(Resource),
    ...

  8. Ändra koden i fälten i tabellen projekt (167) på följande sätt:
    Befintlig kod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 66 ; ;No. Series ;Code10 ;TableRelation="No. Series";
    Editable=No }
    { 67 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region;

    // Delete the following lines.
    OnValidate=BEGIN
    IF ("Bill-to Country/Region Code" <> xRec."Bill-to Country/Region Code") AND (xRec."Bill-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Bill-to City","Bill-to Post Code","Bill-to County");
    END;

    // End of the lines.

    Editable=Yes }
    { 68 ; ;Bill-to Name 2 ;Text50 }
    { 117 ; ;Reserve ;Option ;OptionString=Never,Optional,Always }
    { 1000; ;WIP Method ;Code20 ;TableRelation="Job WIP Method".Code WHERE (Valid=CONST(Yes));
    OnValidate=VAR
    ...

    Ersättningskod

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 66 ; ;No. Series ;Code10 ;TableRelation="No. Series";
    Editable=No }
    { 67 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    Editable=Yes }
    { 68 ; ;Bill-to Name 2 ;Text50 }
    { 117 ; ;Reserve ;Option ;OptionString=Never,Optional,Always }
    { 1000; ;WIP Method ;Code20 ;TableRelation="Job WIP Method".Code WHERE (Valid=CONST(Yes));
    OnValidate=VAR
    ...

  9. Ändra koden i fälten i tabellen Leveransadress (222) enligt följande:
    Befintlig kod

    ...                                                                  IF "Shipping Agent Code" <> xRec."Shipping Agent Code" THEN
    VALIDATE("Shipping Agent Service Code",'');
    END;
    }
    { 32 ; ;Place of Export ;Code20 }

    // Delete the following lines.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 54 ; ;Last Date Modified ;Date ;Editable=No }
    { 83 ; ;Location Code ;Code10 ;TableRelation=Location WHERE (Use As In-Transit=CONST(No)) }
    { 84 ; ;Fax No. ;Text30 }
    { 85 ; ;Telex Answer Back ;Text20 }
    { 91 ; ;Post Code ;Code20 ;TableRelation=IF (Country/Region Code=CONST()) "Post Code"
    ...

    Ersättningskod

    ...                                                                  IF "Shipping Agent Code" <> xRec."Shipping Agent Code" THEN
    VALIDATE("Shipping Agent Service Code",'');
    END;
    }
    { 32 ; ;Place of Export ;Code20 }

    // Add the following line.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 54 ; ;Last Date Modified ;Date ;Editable=No }
    { 83 ; ;Location Code ;Code10 ;TableRelation=Location WHERE (Use As In-Transit=CONST(No)) }
    { 84 ; ;Fax No. ;Text30 }
    { 85 ; ;Telex Answer Back ;Text20 }
    { 91 ; ;Post Code ;Code20 ;TableRelation=IF (Country/Region Code=CONST()) "Post Code"
    ...

  10. Ändra koden i funktionen ClearFields i tabellen Postnr (225) enligt följande:
    Befintlig kod

    ...          CountryCode := PostCodeRec."Country/Region Code";
    County := PostCodeRec.County;
    END;
    END;

    // Delete the following lines.
    PROCEDURE ClearFields@1(VAR City@1000 : Text[30];VAR PostCode@1001 : Code[20];VAR County@1002 : Text[30]);
    BEGIN
    City := '';
    PostCode := '';
    County := '';
    END;

    // End of the lines.

    BEGIN
    END.
    }
    }
    ...

    Ersättningskod

    ...          CountryCode := PostCodeRec."Country/Region Code";
    County := PostCodeRec.County;
    END;
    END;

    BEGIN
    END.
    }
    }
    ...

  11. Ändra koden i fälten i tabellen bankkonto (270) enligt följande:
    Befintlig kod

    ...                                                                END;
    }
    { 24 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 26 ; ;Statistics Group ;Integer }
    { 29 ; ;Our Contact Code ;Code10 ;TableRelation=Salesperson/Purchaser }

    // Delete the following lines.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 37 ; ;Amount ;Decimal ;AutoFormatType=1;
    AutoFormatExpr="Currency Code" }
    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Bank Account),
    No.=FIELD(No.)));
    ...

    Ersättningskod

    ...                                                                END;
    }
    { 24 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 26 ; ;Statistics Group ;Integer }
    { 29 ; ;Our Contact Code ;Code10 ;TableRelation=Salesperson/Purchaser }

    // Add the following line.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 37 ; ;Amount ;Decimal ;AutoFormatType=1;
    AutoFormatExpr="Currency Code" }
    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Comment Line" WHERE (Table Name=CONST(Bank Account),
    No.=FIELD(No.)));
    ...

  12. Ändra koden i fälten i tabellen betalningspåminnelsehuvud (295) enligt följande:
    Befintlig kod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Delete the following line.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 11 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 12 ; ;Currency Code ;Code10 ;TableRelation=Currency;
    OnValidate=BEGIN
    IF CurrFieldNo = FIELDNO("Currency Code") THEN
    IF Undo THEN BEGIN
    ...

    Ersättningskod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Add the following line.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 11 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 12 ; ;Currency Code ;Code10 ;TableRelation=Currency;
    OnValidate=BEGIN
    IF CurrFieldNo = FIELDNO("Currency Code") THEN
    IF Undo THEN BEGIN
    ...

  13. Ändra koden i fälten i tabellen räntefakturahuvud (302) enligt följande:
    Befintlig kod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Delete the folloiwng lines.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '')THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 11 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 12 ; ;Currency Code ;Code10 ;TableRelation=Currency;
    OnValidate=BEGIN
    IF CurrFieldNo = FIELDNO("Currency Code") THEN
    IF Undo THEN BEGIN
    ...

    Ersättningskod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Add the following line.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 11 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 12 ; ;Currency Code ;Code10 ;TableRelation=Currency;
    OnValidate=BEGIN
    IF CurrFieldNo = FIELDNO("Currency Code") THEN
    IF Undo THEN BEGIN
    ...

  14. Ändra koden i fälten i tabellen Kontakt (5050) enligt följande:
    Befintlig kod

    ...      { 10  ;   ;Telex No.           ;Text20         }
    { 15 ; ;Territory Code ;Code10 ;TableRelation=Territory }
    { 22 ; ;Currency Code ;Code10 ;TableRelation=Currency }
    { 24 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 29 ; ;Salesperson Code ;Code10 ;TableRelation=Salesperson/Purchaser }

    // Delete the following lines.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Rlshp. Mgt. Comment Line" WHERE (Table Name=CONST(Contact),
    No.=FIELD(No.),
    Sub No.=CONST(0)));
    Editable=No }
    ...

    Ersättningskod

    ...      { 10  ;   ;Telex No.           ;Text20         }
    { 15 ; ;Territory Code ;Code10 ;TableRelation=Territory }
    { 22 ; ;Currency Code ;Code10 ;TableRelation=Currency }
    { 24 ; ;Language Code ;Code10 ;TableRelation=Language }
    { 29 ; ;Salesperson Code ;Code10 ;TableRelation=Salesperson/Purchaser }

    // Add the following line.
    { 35 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 38 ; ;Comment ;Boolean ;FieldClass=FlowField;
    CalcFormula=Exist("Rlshp. Mgt. Comment Line" WHERE (Table Name=CONST(Contact),
    No.=FIELD(No.),
    Sub No.=CONST(0)));
    Editable=No }
    ...

  15. Ändra koden i fälten i tabellen Kontakt Alt. adress (5051) enligt följande:
    Befintlig kod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Delete the following lines.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 12 ; ;Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 13 ; ;Telex No. ;Text20 }
    { 14 ; ;Extension No. ;Text30 }
    { 15 ; ;Mobile Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 16 ; ;Pager ;Text30 }
    ...

    Ersättningskod

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;County ;Text30 }

    // Add the following line.
    { 10 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 12 ; ;Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 13 ; ;Telex No. ;Text20 }
    { 14 ; ;Extension No. ;Text30 }
    { 15 ; ;Mobile Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 16 ; ;Pager ;Text30 }
    ...

  16. Ändra koden i fälten i tabellen Personal (5200) enligt följande:
    Befintlig kod

    ...      { 20  ;   ;Birth Date          ;Date           }
    { 21 ; ;Social Security No. ;Text30 }
    { 22 ; ;Union Code ;Code10 ;TableRelation=Union }
    { 23 ; ;Union Membership No.;Text30 }
    { 24 ; ;Gender ;Option ;OptionString=[ ,Female,Male] }

    // Delete the following lines.
    { 25 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 26 ; ;Manager No. ;Code20 ;TableRelation=Employee }
    { 27 ; ;Emplymt. Contract Code;Code10 ;TableRelation="Employment Contract" }
    { 28 ; ;Statistics Group Code;Code10 ;TableRelation="Employee Statistics Group" }
    { 29 ; ;Employment Date ;Date }
    { 31 ; ;Status ;Option ;OnValidate=BEGIN
    ...

    Ersättningskod

    ...      { 20  ;   ;Birth Date          ;Date           }
    { 21 ; ;Social Security No. ;Text30 }
    { 22 ; ;Union Code ;Code10 ;TableRelation=Union }
    { 23 ; ;Union Membership No.;Text30 }
    { 24 ; ;Gender ;Option ;OptionString=[ ,Female,Male] }

    // Add the following line.
    { 25 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 26 ; ;Manager No. ;Code20 ;TableRelation=Employee }
    { 27 ; ;Emplymt. Contract Code;Code10 ;TableRelation="Employment Contract" }
    { 28 ; ;Statistics Group Code;Code10 ;TableRelation="Employee Statistics Group" }
    { 29 ; ;Employment Date ;Date }
    { 31 ; ;Status ;Option ;OnValidate=BEGIN
    ...

  17. Ändra koden i fälten i tabellen alternativ adress (5201) enligt följande:
    Befintlig kod

    ...      { 13  ;   ;Comment             ;Boolean       ;FieldClass=FlowField;
    CalcFormula=Exist("Human Resource Comment Line" WHERE (Table Name=CONST(Alternative Address),
    No.=FIELD(Employee No.),
    Alternative Address Code=FIELD(Code)));
    Editable=No }

    // Delete the following lines.
    { 14 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    }
    KEYS
    {
    { ;Employee No.,Code ;Clustered=Yes }
    }
    ...

    Ersättningskod

    ...      { 13  ;   ;Comment             ;Boolean       ;FieldClass=FlowField;
    CalcFormula=Exist("Human Resource Comment Line" WHERE (Table Name=CONST(Alternative Address),
    No.=FIELD(Employee No.),
    Alternative Address Code=FIELD(Code)));
    Editable=No }

    // Add the following line.
    { 14 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    }
    KEYS
    {
    { ;Employee No.,Code ;Clustered=Yes }
    }
    ...

  18. Ändra koden i fälten i tabellen Fackförening (5209) enligt följande:
    Befintlig kod

    ...      { 9   ;   ;Address 2           ;Text50         }
    { 10 ; ;County ;Text30 }
    { 11 ; ;Fax No. ;Text30 }
    { 12 ; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 13 ; ;Home Page ;Text80 ;ExtendedDatatype=URL }

    // Delete the following lines.
    { 14 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    }
    KEYS
    {
    { ;Code ;Clustered=Yes }
    }
    ...

    Ersättningskod

    ...      { 9   ;   ;Address 2           ;Text50         }
    { 10 ; ;County ;Text30 }
    { 11 ; ;Fax No. ;Text30 }
    { 12 ; ;E-Mail ;Text80 ;ExtendedDatatype=E-Mail }
    { 13 ; ;Home Page ;Text80 ;ExtendedDatatype=URL }

    // Add the following line.
    { 14 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    }
    KEYS
    {
    { ;Code ;Clustered=Yes }
    }
    ...

  19. Ändra koden i fälten i tabellen Ansvarsenhet (5714) enligt följande:
    Befintlig kod

    ...                                                                  PostCode.ValidatePostCode(City,"Post Code",County,"Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;

    ValidateTableRelation=No;
    TestTableRelation=No }

    // Delete the folloiwng lines.
    { 7 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    END;
    }
    // End of the lines.

    { 8 ; ;Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 9 ; ;Fax No. ;Text30 }
    { 10 ; ;Name 2 ;Text50 }
    { 11 ; ;Contact ;Text50 }
    { 12 ; ;Global Dimension 1 Code;Code20 ;TableRelation="Dimension Value".Code WHERE (Global Dimension No.=CONST(1));
    ...

    Ersättningskod

    ...                                                                  PostCode.ValidatePostCode(City,"Post Code",County,"Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;

    ValidateTableRelation=No;
    TestTableRelation=No }

    // Add the following line.
    { 7 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region }

    { 8 ; ;Phone No. ;Text30 ;ExtendedDatatype=Phone No. }
    { 9 ; ;Fax No. ;Text30 }
    { 10 ; ;Name 2 ;Text50 }
    { 11 ; ;Contact ;Text50 }
    { 12 ; ;Global Dimension 1 Code;Code20 ;TableRelation="Dimension Value".Code WHERE (Global Dimension No.=CONST(1));
    ...

  20. Ändra koden i fälten i tabellen Överföringshuvud (5740) enligt följande:
    Befintlig kod 1

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;Transfer-from County;Text30 }
    { 10 ; ;Trsf.-from Country/Region Code;Code10;

    // Delete the following lines.
    TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Trsf.-from Country/Region Code" <> xRec."Trsf.-from Country/Region Code") AND
    (xRec."Trsf.-from Country/Region Code" <> '')
    THEN
    PostCode.ClearFields("Transfer-from City","Transfer-from Post Code","Transfer-from County");
    END;
    }
    // End of the lines.

    { 11 ; ;Transfer-to Code ;Code10 ;TableRelation=Location WHERE (Use As In-Transit=CONST(No));
    OnValidate=VAR
    Location@1000 : Record 14;
    Confirmed@1001 : Boolean;
    BEGIN
    ...

    Ersättningskod 1

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 9 ; ;Transfer-from County;Text30 }
    { 10 ; ;Trsf.-from Country/Region Code;Code10;

    // Add the folloiwng line.
    TableRelation=Country/Region }

    { 11 ; ;Transfer-to Code ;Code10 ;TableRelation=Location WHERE (Use As In-Transit=CONST(No));
    OnValidate=VAR
    Location@1000 : Record 14;
    Confirmed@1001 : Boolean;
    BEGIN
    ...

    Befintlig kod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 18 ; ;Transfer-to County ;Text30 }

    // Delete the following lines.
    { 19 ; ;Trsf.-to Country/Region Code;Code10;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Trsf.-to Country/Region Code" <> xRec."Trsf.-to Country/Region Code") AND (xRec."Trsf.-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Transfer-to City","Transfer-to Post Code","Transfer-to County");
    END;
    }
    // End of the lines.

    { 20 ; ;Posting Date ;Date }
    { 21 ; ;Shipment Date ;Date ;OnValidate=BEGIN
    TestStatusOpen;
    TransferRoute.CalcReceiptDate(
    "Shipment Date",
    ...

    Ersättningskod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 18 ; ;Transfer-to County ;Text30 }

    // Add the following line.
    { 19 ; ;Trsf.-to Country/Region Code;Code10;TableRelation=Country/Region }

    { 20 ; ;Posting Date ;Date }
    { 21 ; ;Shipment Date ;Date ;OnValidate=BEGIN
    TestStatusOpen;
    TransferRoute.CalcReceiptDate(
    "Shipment Date",
    ...

  21. Ändra koden i fälten i tabellen Servicehuvud (5900) enligt följande:
    Befintlig kod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Delete the following lines.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Bill-to Country/Region Code" <> xRec."Bill-to Country/Region Code") AND (xRec."Bill-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Bill-to City","Bill-to Post Code","Bill-to County");
    END;
    }
    // End of the lines.

    { 88 ; ;Post Code ;Code20 ;TableRelation=IF (Country/Region Code=CONST()) "Post Code"
    ELSE IF (Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(City,"Post Code",County,"Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Ersättningskod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Add the following line.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 88 ; ;Post Code ;Code20 ;TableRelation=IF (Country/Region Code=CONST()) "Post Code"
    ELSE IF (Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(City,"Post Code",County,"Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    END;
    ...

    Befintlig kod 2

    ...                                                     TestTableRelation=No }
    { 89 ; ;County ;Text30 }
    { 90 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    VALIDATE("Ship-to Country/Region Code");

    // Delete the following lines.
    IF ("Country/Region Code" <> xRec."Country/Region Code") AND (xRec."Country/Region Code" <> '') THEN
    PostCode.ClearFields(City,"Post Code",County);
    // End of the lines.

    END;
    }
    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    ...

    Ersättningskod 2

    ...                                                     TestTableRelation=No }
    { 89 ; ;County ;Text30 }
    { 90 ; ;Country/Region Code ;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    VALIDATE("Ship-to Country/Region Code");
    END;
    }
    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    ...

    Befintlig kod 3

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN

    // Delete the following lines.
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");

    // End of the lines.

    IF "Ship-to Country/Region Code" <> '' THEN
    "VAT Country/Region Code" := "Ship-to Country/Region Code"
    ELSE
    "VAT Country/Region Code" := "Country/Region Code"
    END;
    ...

    Ersättningskod 3

    ...                                                     ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF "Ship-to Country/Region Code" <> '' THEN
    "VAT Country/Region Code" := "Ship-to Country/Region Code"
    ELSE
    "VAT Country/Region Code" := "Country/Region Code"
    END;
    ...

  22. Ändra koden i fälten i tabellen Returutleverans huvud (6650) enligt följande:
    Befintlig kod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Pay-to County ;Text30 }

    // Delete the following lines.
    { 87 ; ;Pay-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Pay-to Country/Region Code" <> xRec."Pay-to Country/Region Code") AND (xRec."Pay-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Pay-to City","Pay-to Post Code","Pay-to County");
    END;
    }
    // End of the lines.

    { 88 ; ;Buy-from Post Code ;Code20 ;TableRelation=IF (Buy-from Country/Region Code=CONST()) "Post Code"
    ELSE IF (Buy-from Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Buy-from Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Buy-from City","Buy-from Post Code","Buy-from County","Buy-from Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Pay-to County ;Text30 }

    // Add the following line.
    { 87 ; ;Pay-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 88 ; ;Buy-from Post Code ;Code20 ;TableRelation=IF (Buy-from Country/Region Code=CONST()) "Post Code"
    ELSE IF (Buy-from Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Buy-from Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Buy-from City","Buy-from Post Code","Buy-from County","Buy-from Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Buy-from County ;Text30 }

    // Delete the following lines.
    { 90 ; ;Buy-from Country/Region Code;Code10;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Buy-from Country/Region Code" <> xRec."Buy-from Country/Region Code") AND (xRec."Buy-from Country/Region Code" <> '') THEN
    PostCode.ClearFields("Buy-from City","Buy-from Post Code","Buy-from County");
    END;
    }
    // End of the lines.

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Buy-from County ;Text30 }

    // Add the following line.
    { 90 ; ;Buy-from Country/Region Code;Code10;TableRelation=Country/Region }

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Delete the following lines.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");
    END;
    }
    // End of the lines.

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 95 ; ;Order Address Code ;Code10 ;TableRelation="Order Address".Code WHERE (Vendor No.=FIELD(Buy-from Vendor No.)) }
    { 97 ; ;Entry Point ;Code10 ;TableRelation="Entry/Exit Point" }
    { 98 ; ;Correction ;Boolean }
    { 99 ; ;Document Date ;Date }
    ...

    Ersättningskod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Add the following line.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 95 ; ;Order Address Code ;Code10 ;TableRelation="Order Address".Code WHERE (Vendor No.=FIELD(Buy-from Vendor No.)) }
    { 97 ; ;Entry Point ;Code10 ;TableRelation="Entry/Exit Point" }
    { 98 ; ;Correction ;Boolean }
    { 99 ; ;Document Date ;Date }
    ...

  23. Ändra koden i fälten i tabellen Returinleveranshuvud (6660) enligt följande:
    Befintlig kod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Delete the following lines.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Bill-to Country/Region Code" <> xRec."Bill-to Country/Region Code") AND (xRec."Bill-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Bill-to City","Bill-to Post Code","Bill-to County");
    END;
    }
    // End of the lines.

    { 88 ; ;Sell-to Post Code ;Code20 ;TableRelation=IF (Sell-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Sell-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Sell-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Sell-to City","Sell-to Post Code","Sell-to County","Sell-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 1

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 86 ; ;Bill-to County ;Text30 }

    // Add the following line.
    { 87 ; ;Bill-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 88 ; ;Sell-to Post Code ;Code20 ;TableRelation=IF (Sell-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Sell-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Sell-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Sell-to City","Sell-to Post Code","Sell-to County","Sell-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Sell-to County ;Text30 }

    // Delete the following lines.
    { 90 ; ;Sell-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Sell-to Country/Region Code" <> xRec."Sell-to Country/Region Code") AND (xRec."Sell-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Sell-to City","Sell-to Post Code","Sell-to County");
    END;
    }
    // End of the lines.

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Ersättningskod 2

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 89 ; ;Sell-to County ;Text30 }

    // Add the following line.
    { 90 ; ;Sell-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 91 ; ;Ship-to Post Code ;Code20 ;TableRelation=IF (Ship-to Country/Region Code=CONST()) "Post Code"
    ELSE IF (Ship-to Country/Region Code=FILTER(<>'')) "Post Code" WHERE (Country/Region Code=FIELD(Ship-to Country/Region Code));
    OnValidate=BEGIN
    PostCode.ValidatePostCode(
    "Ship-to City","Ship-to Post Code","Ship-to County","Ship-to Country/Region Code",(CurrFieldNo <> 0) AND GUIALLOWED);
    ...

    Befintlig kod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Delete the following lines.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region;
    OnValidate=BEGIN
    IF ("Ship-to Country/Region Code" <> xRec."Ship-to Country/Region Code") AND (xRec."Ship-to Country/Region Code" <> '') THEN
    PostCode.ClearFields("Ship-to City","Ship-to Post Code","Ship-to County");
    END;
    }
    // End of the lines.

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 97 ; ;Exit Point ;Code10 ;TableRelation="Entry/Exit Point" }
    { 98 ; ;Correction ;Boolean }
    { 99 ; ;Document Date ;Date }
    { 100 ; ;External Document No.;Code35 }
    ...

    Ersättningskod 3

    ...                                                                END;

    ValidateTableRelation=No;
    TestTableRelation=No }
    { 92 ; ;Ship-to County ;Text30 }

    // Add the following line.
    { 93 ; ;Ship-to Country/Region Code;Code10 ;TableRelation=Country/Region }

    { 94 ; ;Bal. Account Type ;Option ;OptionString=G/L Account,Bank Account }
    { 97 ; ;Exit Point ;Code10 ;TableRelation="Entry/Exit Point" }
    { 98 ; ;Correction ;Boolean }
    { 99 ; ;Document Date ;Date }
    { 100 ; ;External Document No.;Code35 }
    ...

Förutsättningar

Du måste ha installerat den här snabbkorrigeringen Microsoft Dynamics NAV 2013.

Information om borttagning

Du kan inte ta bort den här snabbkorrigeringen.

Status

Microsoft har bekräftat att detta är ett problem i Microsoft-produkterna som nämns i avsnittet "Gäller".

Obs! Detta är en "SNABBPUBLICERING"-artikel skapad direkt från Microsoft support-organisationen. Informationen häri tillhandahålls i befintligt skick som svar på nya problem. Till följd av hastigheten för att göra det tillgängligt kan materialet innehålla typografiska fel och kan ändras när som helst utan föregående meddelande. Se Villkoren för användning för andra överväganden.

Behöver du mer hjälp?

Vill du ha fler alternativ?

Utforska prenumerationsförmåner, bläddra bland utbildningskurser, lär dig hur du skyddar din enhet med mera.

Communities hjälper dig att ställa och svara på frågor, ge feedback och få råd från experter med rika kunskaper.

Hade du nytta av den här informationen?

Hur nöjd är du med språkkvaliteten?
Vad påverkade din upplevelse?
Genom att trycka på skicka, kommer din feedback att användas för att förbättra Microsofts produkter och tjänster. IT-administratören kan samla in denna data. Sekretesspolicy.

Tack för din feedback!

×