דלג לתוכן הראשי
היכנס דרך Microsoft
היכנס או צור חשבון.
שלום,
בחר חשבון אחר.
יש לך חשבונות מרובים
בחר את החשבון שברצונך להיכנס באמצעותו.

מאמר זה חל על Microsoft Dynamics ניווט עבור האזור שפה הונגרית (hu).

מאפייני הבעיה

נניח כי חם 2664466 הונגרית בגירסה של Microsoft Dynamics NAV 2009 R2. בעת חישוב הסטטיסטיקה חשבונית עבור חשבוניות שנרשמו, סכום מס ערך מוסף (VAT) מעוגל באופן שגוי.
לקבלת מידע נוסף אודות תיקון חם 2664466, לחץ על מספר המאמר הבא כדי להציג את המאמר הרלוונטי מתוך Microsoft Knowledge Base:

2664466 סכום מע מ שגויה בעת רישום חשבונית במטבע זר בגירסת Microsoft Dynamics ניווט 5.0 Service Pack 1 הונגרית

פתרון

מידע על תיקונים חמים

תיקון חם נתמך זמין כעת מ- Microsoft. עם זאת, הוא מיועד רק לתיקון הבעיה המתוארת במאמר זה. יש להחיל אותו רק במערכות שהתעוררה בהן בעיה ספציפית זו. תיקון חם זה עשוי לעבור בדיקות נוספות. לכן, אם המערכת שברשותך לא נפגעה באופן חמור מבעיה זו, מומלץ להמתין ל- Microsoft Dynamics NAV 2009 service pack הבאה או גירסת Microsoft Dynamics NAV הבא המכיל תיקון חם זה.

הערה במקרים מיוחדים, שהצגת עבור שיחות עשויים לבטל אם מומחה תמיכה טכנית עבור Microsoft Dynamics ומוצרים קשורים יקבע שעדכון ספציפי יפתור את הבעיה. דמי התמיכה המקובלים יחולו על נוספים שאלות וסוגיות תמיכה אשר אינן מצריכות העדכון הספציפי האמור.

מידע על ההתקנה

מיקרוסופט מציעה דוגמאות תכנות לצורך ההדגמה בלבד, ללא אחריות, בין מפורשת ובין משתמעת. זה כולל, אך אינו מוגבל ל, אחריות מכללא לגבי סחירות או התאמה למטרה מסוימת. מאמר זה מבוסס על ההנחה שאתה מכיר את שפת התכנות המודגמת ובקי בהפעלת הכלים המשמשים ליצירת פרוצדורות ולניפוי שגיאות. מהנדסי התמיכה של Microsoft יכולים לסייע בהסברת הפונקציונליות של פרוצדורה מסוימת. עם זאת, הם לא ישנו את הדוגמאות כדי לספק פונקציונליות נוספת או כדי לבנות פרוצדורות שיענו על צרכיך הספציפיים.

הערה לפני התקנת תיקון חם זה, ודא כי כל המשתמשים לקוח Microsoft Dynamics NAV אינם מחוברים למערכת. זה כולל שירותי Microsoft Dynamics NAV יישום שרת (NAS). אתה אמור להיות לקוח בלבד המשתמש המחובר כאשר ליישם תיקון חם זה.

כדי ליישם תיקון חם זה, דרוש לך רשיון מפתחים.

אנו ממליצים חשבון המשתמש בחלון כניסות Windows או בחלון מסד הנתונים כניסות יוקצו את מזהה תפקיד "סופר". אם חשבון המשתמש אין אפשרות להקצות מזהה תפקיד של "עילי", עליך לוודא כי חשבון משתמש בעל ההרשאות הבאות:

  • שנה את ההרשאה עבור האובייקט שינוי.

  • הרשאת Execute עבור האובייקט 5210 מזהה אובייקט מערכת ועבור 9015 מזהה אובייקט מערכת

    אובייקט.

הערה אין לך הרשאות למאגרי נתונים אלא אם כן יש לך לבצע תיקון נתונים.

שינויי קוד

הערה תמיד קוד מחשב פותר בסביבה מבוקרת לפני החלת התיקונים למחשבים הייצור שלך.

כדי לפתור בעיה זו, בצע את הפעולות הבאות:

  1. שנה את הקוד בשדות בטבלה קו מכירות (37) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה 1

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד קיים 2

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה 2

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  2. שנה את הקוד בפונקציה UpdateVATAmounts בטבלה קו מכירות (37) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  3. שנה את הקוד בפונקציה UpdateVATOnLines בטבלה קו מכירות (37) כדלקמן:
    קוד קיים

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  4. שנה את הקוד בפונקציה CalcVATAmountLines בטבלה קו מכירות (37) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.CalcVATToReport(SalesHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  5. שינוי הקוד ב CalcVATToReportלפעול בטבלה קו מכירות (37) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following line.
    PROCEDURE CalcVATToReport@1360001(SalesHeader@1360000 : Record 36;VATBaseAmount@1360001 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal);
    // End of the deleted line.

    BEGIN
    ...

    קוד החלפה 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360001(SalesHeader@1360000 : Record 36;VATBaseAmount@1360001 : Decimal;AmtInclVAT@1360005 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal);
    VAR
    AmountLCY@1360006 : Decimal;
    AmtInclVATLCY@1360007 : Decimal;
    // End of the added lines.

    BEGIN
    ...

    קוד קיים 2

    ...ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND(VATAmount / SalesHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := VATAmount;
    // End of the deleted lines.

    END;
    ...

    קוד החלפה 2

    ...ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / SalesHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY;
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := AmtInclVAT - VATBaseAmount;
    // End of the added lines.

    END;
    ...
  6. שנה את הקוד בשדות בטבלה שורת הרכישה (39) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד החלפה 1

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד קיים 2

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד החלפה 2

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.
    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  7. שנה את הקוד בפונקציה UpdateVATAmounts בטבלה שורת הרכישה (39) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד החלפה

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  8. שנה את הקוד בפונקציה UpdateVATOnLines בטבלה שורת הרכישה (39) כדלקמן:
    קוד קיים

    ...END;

    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד החלפה

    ...END;

    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  9. שינוי הקוד ב CalcVATAmountLines בטבלה שורת הרכישה (39) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    קוד החלפה

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  10. שנה את הקוד בפונקציה CalcVATToReport בטבלה שורת הרכישה (39) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following lines.
    PROCEDURE CalcVATToReport@1360000(PurchHeader@1360000 : Record 38;VATBaseAmount@1360001 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal;NonDeductableVATPct@1360005 : Decimal);
    VAR
    NonDeductableVATAmount@1360006 : Decimal;
    BEGIN
    NonDeductableVATAmount := VATAmount * NonDeductableVATPct / 100;
    // End of the deleted lines.

    IF PurchHeader."Currency Code" <> '' THEN BEGIN
    ...

    קוד החלפה 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360000(PurchHeader@1360000 : Record 38;VATBaseAmount@1360001 : Decimal;AmtInclVAT@1360007 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal;NonDeductableVATPct@1360005 : Decimal);
    VAR
    NonDeductableVATAmount@1360006 : Decimal;
    AmountLCY@1360008 : Decimal;
    AmtInclVATLCY@1360009 : Decimal;
    BEGIN
    NonDeductableVATAmount := (AmtInclVAT - VATBaseAmount) * NonDeductableVATPct / 100;
    // End of the added lines.

    IF PurchHeader."Currency Code" <> '' THEN BEGIN
    ...

    קוד קיים 2

    ...ROUND((VATBaseAmount + NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND((VATAmount - NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount + ROUND(NonDeductableVATAmount);
    VATAmountToReport := VATAmount - ROUND(NonDeductableVATAmount);
    // End of the deleted lines.

    END
    ...

    קוד החלפה 2

    ...ROUND((VATBaseAmount + NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / PurchHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / PurchHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY - ROUND(NonDeductableVATAmount / PurchHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount + ROUND(NonDeductableVATAmount);
    VATAmountToReport := AmtInclVAT - VATBaseAmount - ROUND(NonDeductableVATAmount);
    // End of the added lines.

    END
    ...
  11. שנה את הקוד בשדות בטבלה שורת שירות (5902) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה 1

    ...
    // Add the following line.CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד קיים 2

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה 2

    ...
    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  12. שנה את הקוד בפונקציה UpdateVATAmounts בטבלה שורת שירות (5902) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ...
    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  13. שנה את הקוד בפונקציה CalcVATAmountLines בטבלה שורת שירות (5902) כדלקמן:
    קוד קיים

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ...
    // Add the following line.CalcVATToReport(ServHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  14. שנה את הקוד בפונקציה UpdateVATOnLines בטבלה שורת שירות (5902) כדלקמן:
    קוד קיים

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    קוד החלפה

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  15. שנה את הקוד בפונקציה CalcVATToReport בטבלה שורת שירות (5902) כדלקמן:
    קוד קיים 1

    ...
    // Delete the following line.
    PROCEDURE CalcVATToReport@1360000(ServHeader@1360004 : Record 5900;VATBaseAmount@1360003 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360001 : Decimal;VAR VATAmountToReport@1360000 : Decimal);
    // End of the deleted line.

    BEGIN
    ...

    קוד החלפה 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360000(ServHeader@1360004 : Record 5900;VATBaseAmount@1360003 : Decimal;AmtInclVAT@1360007 : Decimal;VAR VATBaseAmountToReport@1360001 : Decimal;VAR VATAmountToReport@1360000 : Decimal);
    VAR
    AmountLCY@1360005 : Decimal;
    AmtInclVATLCY@1360006 : Decimal;
    // End of the added lines.

    BEGIN
    ...

    קוד קיים 2

    ...ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND(VATAmount / ServHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := VATAmount;
    // End of the deleted lines.

    END;
    ...

    קוד החלפה 2

    ...ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / ServHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY;
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := AmtInclVAT - VATBaseAmount;
    // End of the added lines.

    END;
    ...
  16. שנה את הקוד בפונקציה DivideAmount ב Codeunit מכירות עמדות (80) כדלקמן:
    קוד קיים 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';SalesLineQty@1001 : Decimal);

    // Delete the following lines.
    VAR
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    קוד החלפה 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';SalesLineQty@1001 : Decimal);
    BEGIN
    ...

    קוד קיים 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    CalcVATToReport(SalesHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    קוד החלפה 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(SalesLine,SalesHeader);
    // End of the added line.

    ...
  17. צור פונקציה ב- Codeunit מכירות עמדות (80) כדלקמן:

    LOCAL PROCEDURE CalcRoundedVATToReport@1360026(VAR SalesLine@1360002 : Record 37;SalesHeader@1360003 : Record 36);VAR
    TotalVATBaseAmtLCY@1360005 : Decimal;
    TotalVATAmountLCY@1360004 : Decimal;
    BEGIN
    WITH SalesLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(SalesHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;
  18. לשנות את הקוד בפונקציה DivideAmount ורכישה.-Post Codeunit (90) כפי שמוצג להלן:
    קוד קיים 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';PurchLineQty@1001 : Decimal);

    // Delete the following lines.
    VAR
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    קוד החלפה 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';PurchLineQty@1001 : Decimal);
    BEGIN
    ...

    קוד קיים 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    PurchLine.CalcVATToReport(PurchHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY,"VAT % (Non Deductible)");
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    קוד החלפה 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(PurchLine,PurchHeader);
    // End of the added line.
    ...
  19. צור פונקציה ב- ורכישה.-Post Codeunit (90) כפי שמוצג להלן:

    LOCAL PROCEDURE CalcRoundedVATToReport@1360026(VAR PurchLine@1360002 : Record 39;PurchHeader@1360003 : Record 38);VAR
    TotalVATBaseAmtLCY@1360005 : Decimal;
    TotalVATAmountLCY@1360004 : Decimal;
    BEGIN
    WITH PurchLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(PurchHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY,"VAT % (Non Deductible)");
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;
  20. שנה את הקוד בפונקציה DivideAmount ב Mgt. Codeunit (5986) של כמויות Serv כדלקמן:
    קוד קיים 1

    ...ChargeableQty@1006 : Decimal;

    // Delete the following lines.
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    קוד החלפה 1

    ...ChargeableQty@1006 : Decimal;
    BEGIN
    ...

    קוד קיים 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    CalcVATToReport(ServiceHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    קוד החלפה 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(ServiceLine,TempVATAmountLineRemainder,ServHeader);
    // End of the added line.
    ...
  21. צור פונקציה ב ה ב Mgt. Codeunit כמויות Serv (5986) כפי שמוצג להלן:

    LOCAL PROCEDURE CalcRoundedVATToReport@1360001(VAR ServiceLine@1360002 : Record 5902;VAR TempVATAmountLineRemainder@1360004 : Record 290;ServHeader@1360003 : Record 5900);VAR
    TotalVATBaseAmtLCY@1360006 : Decimal;
    TotalVATAmountLCY@1360005 : Decimal;
    BEGIN
    WITH ServiceLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(ServHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;


דרישות מוקדמות

דרושה לך הגירסה ההונגרית של Microsoft Dynamics NAV 2009 R2 מותקן כדי להחיל תיקון חם זה.

מידע בדבר הסרת ההתקנה

אין אפשרות להסיר את התיקון החם.

מצב

Microsoft אישרה כי מדובר בבעיה במוצרי Microsoft הרשומים במקטע 'חל על'.

הערה זהו מאמר "פרסום מהיר" שנוצר ישירות בתוך ארגון התמיכה של Microsoft. המידע הכלול במסמך זה מסופק כמו שהוא כתגובה לבעיות המתעוררות. כתוצאה מהמהירות בביצוע כדי להפוך אותו לזמין, החומרים עשויים לכלול שגיאות טיפוגרפיות וייתכן שיבוצעו בהם שינויים בכל עת ללא הודעה מוקדמת. ראה תנאי השימוששיקולים נוספים.

זקוק לעזרה נוספת?

מעוניין באפשרויות נוספות?

גלה את יתרונות המנוי, עיין בקורסי הדרכה, למד כיצד לאבטח את המכשיר שלך ועוד.

קהילות עוזרות לך לשאול שאלות ולהשיב עליהן, לתת משוב ולשמוע ממומחים בעלי ידע עשיר.

האם מידע זה היה שימושי?

עד כמה אתם מרוצים מאיכות השפה?
מה השפיע על החוויה שלך?
בלחיצה על 'שלח', אתה מאפשר למשוב שלך לשפר מוצרים ושירותים של Microsoft. מנהל ה-IT שלך יוכל לאסוף נתונים אלה. הצהרת הפרטיות.

תודה על המשוב!

×